<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">><font size="3">Date: Mon, 12 Jan 2009 15:39:11 -0500</font><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">>From: Bill Davidsen <<a ymailto="mailto:davidsen@tmr.com" href="mailto:davidsen@tmr.com">davidsen@tmr.com</a>><br>>Subject: Re: /home directary data loss<br>>To: <a ymailto="mailto:fedora-list@redhat.com" href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>>Message-ID: <gkg9pf$dkf$<a ymailto="mailto:2@ger.gmane.org" href="mailto:2@ger.gmane.org">2@ger.gmane.org</a>><br>>Content-Type: text/plain; charset=UTF-8; format=flowed<br>><br>>Craig White wrote:<br>>> On Mon, 2009-01-12 at 12:35 +0800, 王�峰
wrote:<br>>>>> Date: Sat, 10 Jan 2009 22:09:56 -0700<br>>>>> From: Craig White <<a ymailto="mailto:craigwhite@azapple.com" href="mailto:craigwhite@azapple.com">craigwhite@azapple.com</a>><br>>>>> Subject: Re: /home directary data loss<br>>>>> To: "Community assistance, encouragement, and advice for using<br>>>>>> Fedora." <<a ymailto="mailto:fedora-list@redhat.com" href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a>><br>>>>> Message-ID: <<a ymailto="mailto:1231650596.4520.650.camel@lin-workstation.azapple.com" href="mailto:1231650596.4520.650.camel@lin-workstation.azapple.com">1231650596.4520.650.camel@lin-workstation.azapple.com</a>><br>>>>> Content-Type: text/plain; charset="UTF-8"<br>>>><br>>>> On Sun, 2009-01-11 at 12:41 +0800, 王�峰
wrote:<br>>>>> Help!<br>>>>> I used "yum update" updated my system the other day, then I<br>>> restarted<br>>>>> the computer, but it couldn't get in!<br>>>>> So I used the DVD containing Fedora ISO to rescue the system, but I<br>>>>> still saw nothing in /home/houghes which stores all my important<br>>>>> files! <br>>>>> But then my first aim was to get the system up, and I used the DVD and<br>>>>> chose "update existing sytem" hoping to get back to the point where I<br>>>>> hadn't updated Fedora using "yum update". Though this is not the<br>>>>> result, I got it!<br>>>>> But I still couldn't see anything in /home/houghes !<br>>>>> And since the system start-up process is so different from before, I<br>>>>> covered /boot/grub/grub.conf with /boot/grub/grub.conf~ , and
the<br>>>>> start-up is normal now!<br>>>>> But how Can I Get My /home/houghes data back?! Help!<br>>>> ----<br>>>> Is it possible that /home was on a separate partition and isn't mounted?<br>>>><br>>>> what do you get when run<br>>> the following commands?<br>>>> fdisk -l /dev/sda<br>>>> mount<br>>>><br>>>> Craig<br>>>><br>>>><br>>> following is got by running fdisk -l /dev/sda and mount:<br>>> [root@joggerwang ~]# fdisk -l /dev/sda<br>>><br>>> Disk /dev/sda: 160.0 GB, 160041885696 bytes<br>>> 255 heads, 63 sectors/track, 19457 cylinders<br>>> Units = cylinders of 16065 * 512 = 8225280 bytes<br>>> Disk identifier: 0x662db0cb<br>>><br>>> Device Boot Start End Blocks Id
System<br>>> /dev/sda1 * 1 25 200781 83 Linux<br>>> /dev/sda2 26 8948 71673997+ 83 Linux<br>>> /dev/sda3 8949 10860 15358140 83 Linux<br>>> /dev/sda4 10861 19457 69055402+ 5 Extended<br>>> /dev/sda5 10861 12772 15358108+ 83 Linux<br>>> /dev/sda6 12773 14684 15358108+ 83 Linux<br>>> /dev/sda7 14685 15703
8185086 83 Linux<br>>> /dev/sda8 15704 16340 5116671 83 Linux<br>>> /dev/sda9 16341 19457 25037271 8e Linux LVM<br>>> [root@joggerwang ~]# mount<br>>> /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)<br>>> /proc on /proc type proc (rw)<br>>> sysfs on /sys type sysfs (rw)<br>>> devpts on /dev/pts type devpts (rw,gid=5,mode=620)<br>>> /dev/sda6 on /usr type ext3 (rw)<br>>> /dev/sda5 on /var type ext3 (rw)<br>>> /dev/sda3 on /opt type ext3 (rw)<br>>> /dev/sda1 on /boot type ext3 (rw)<br>>> tmpfs on /dev/shm type tmpfs (rw)<br>>> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)<br>>> sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)<br>>> gvfs-fuse-daemon on /root/.gvfs type
fuse.gvfs-fuse-daemon<br>>> (rw,nosuid,nodev)<br>>><br>>><br>>> /dev/sda2 ought to be the partition I seperated for /home,<br>>> and /dev/sda7, /dev/sda8 are seperated for /usr/local and /tmp<br>>> respectively, so I tried to add three lines in /etc/mtab for them as<br>>> follows:<br>>> /dev/sda2 /home ext3 rw 0 0<br>>> /dev/sda7 /usr/local ext3 rw 0 0<br>>> /dev/sda8 /tmp ext3 rw 0 0<br>>> and in /etc/fstab as follows:<br>>> UUID=61b8990c-043e-4d1f-9a37-7f330cc49eb5 /home<br>>> ext3 defaults 1 1<br>>> UUID=0cf03423-386b-407b-a60b-54c076692d77 /usr/local<br>>> ext3 defaults 1 1<br>>> UUID=d8297ee9-bd48-4b2c-a81a-ba0afdf42d0d /tmp<br>>> ext3 defaults 1 1<br>>> but my files in /home/houghes still don't come out!<br>>>
What should I do? <br>> ----<br>> first, take a looksee at /dev/sda2 and see if that really is your<br>>> old /home...<br>>> <br>>> mkdir /home/oldhome<br>>> mount /dev/sda2 /home/oldhome<br>>> ls -l /home/oldhome<br>> <br>>> if it is, you can figure out the UUID of /dev/sda2, probably just by<br>>> doing...<br>>> <br>>> # ls -l /dev/disk/by-uuid/<br>>> <br>>> and putting that UUID into /etc/fstab for a /home mount<br>>> <br>>> I don't think that editing mtab is going to be useful.<br>>> <br>>May I suggest 'blkid' for stuff like this? Far easier to understand.<br>><br>>-- <br>>Bill Davidsen <<a ymailto="mailto:davidsen@tmr.com" href="mailto:davidsen@tmr.com">davidsen@tmr.com</a>><br>> "We have more to fear from the bungling of the incompetent than from<br>>the machinations of the wicked." - from Slashdot<br><br><br><br>Thanks
all! The problem is finally solved!<br>I add below lines in /etc/fstab, then it's OK!<br>UUID=47612fc6-286d-4c3f-b5c1-32abf7b3c9f3 /home ext3 defaults 1 2<br>UUID=07cfacc5-564d-4113-af74-eec8576bfe12 /usr/local ext3 defaults 1 2<br>UUID=1cfbb0d5-4192-468a-b6ae-f3a4603dedc8 /tmp ext3 defaults 1 2 <br>then UUID here is got from 'blkid', not /dev/disk/by-uuid/, as following:<br># blkid<br>/dev/sda2: UUID="61b8990c-043e-4d1f-9a37-7f330cc49eb5" TYPE="crypt_LUKS"<br>/dev/sda7:
UUID="0cf03423-386b-407b-a60b-54c076692d77" TYPE="crypt_LUKS" <br>/dev/sda8: UUID="d8297ee9-bd48-4b2c-a81a-ba0afdf42d0d" TYPE="crypt_LUKS" <br>/dev/mapper/luks-61b8990c-043e-4d1f-9a37-7f330cc49eb5: UUID="47612fc6-286d-4c3f-b5c1-32abf7b3c9f3" TYPE="ext3" SEC_TYPE="ext2"<br>/dev/mapper/luks-d8297ee9-bd48-4b2c-a81a-ba0afdf42d0d: UUID="1cfbb0d5-4192-468a-b6ae-f3a4603dedc8" TYPE="ext3" SEC_TYPE="ext2" <br>/dev/mapper/luks-0cf03423-386b-407b-a60b-54c076692d77: UUID="07cfacc5-564d-4113-af74-eec8576bfe12" TYPE="ext3" SEC_TYPE="ext2" <br><br><br></div></div></div><br>
<hr size=1><a href="http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/"> 好玩贺卡等你发,邮箱贺卡全新上线!</a></body></html>