Hi,
On 12/11/2009 08:20 PM, rahimanuddin shaik wrote:
By some mistake, my laptop loaded with ubuntu 9.10 crashed and when i try to
recognise the same from a live cd, it is showing unknown partition, i have
very important data in that partition. What can i do?
what actually happened was power went off when i was running a manual fsck.
Firstly, don't panic. A power off during a manual fsck is not half as bad as the
HDD dying and even then data is recoverable, as long as you don't *write*
anything on the disk.
Here is what I would recommend:
a. Boot using a live CD/USB
b. Do /not/ mount the hdd, just do a dd of the partitions with your data onto
some other HDD/external disk.
c. If you know/remember whether you had configured LVM on your disk (I believe
most distros use lvm as the default), try mounting your LVM volumes:
http://specialkevin.com/?p=97
http://linuxwave.blogspot.com/2007/11/mounting-lvm-disk-using-ubuntu-livecd.html
d. If 'c' was successful (which implies that the unknown partition error might
have to do with this fact), unmount the volumes and run a manual fsck on them
(the LVM volumes *not* the hard disk partition). Hopefully, the data should be
intact, worst case scenario you would have to dig through the generate
lost+found directory, trying to guess the files:
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/lostfound.html
(run a 'file' on each entry and then open it with the appropriate application,
hopefully you can recover all that you lost).
e. If you do not have LVM partitions or you partition table itself is screwed,
try using 'rescueprt' ( http://erik.mysmt.net/rescuept.html ), it is part of the
util-linux package, so it should be available on the Live CD. This command tries
to identify your partition table and output's it in a format that can be
directly sent to sfdisk to create the identified partition table.
f. If you do not have LVM partitions and but your partition table is intact. Try
running fsck on these partitions.
Let us know what happens.
In any case, it is essential that you do 'b' above so that you retain a copy of
the br0ked filesystem just in case none of the above worked and you want to keep
trying other approaches.
Hope you get your data back.
cheers,
- steve
--
random non tech spiel: http://lonetwin.blogspot.com/
tech randomness: http://lonehacks.blogspot.com/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc