[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: ext3 data recovery in RH9, help please



On Jun 15, 2004  11:33 +0900, Vinu K V wrote:
> 	I was working with GNU parted and got some changes in the partition and
> the system crashed. I had to freshly install RH Linux 9 again as it
> didn't detect the linux installation. Now the problem
> is /dev/hda is mounted but not showing any data files. It has
> full of data originally. Anyhow Can i recover those data.
> I didnt format any of the hard drive expect the root 
> partition for fresh installation. Any hope left with me?
> /dev/hdb had two partitions and it is mounted and detected
> all files well. The problem is with /dev/hda which has two
> major partitions /home and /user2. The df commands gives as follows
> 
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda1              3020140   1675368   1191356  59% /
> /dev/hda3             50394996     32856  47802184   1% /home
> none                    515096         0    515096   0% /dev/shm
> /dev/hda4             64191716     32856  60898068   1% /user2
> /dev/hdb1             60476036  46272440  11131568  81% /user3
> /dev/hdb2             48172868  41662356   4063412  92% /user4

It would appear that your reinstall, or parted, reformatted your filesystems.
The usage "32856" is almost certainly only the journal file.  In situations
like this it is much better to boot from a rescue CD (or a floppy even, like
Tom's Root Boot disk) and do the recovery before something so dangerous as
installing a new operating system.

If you are looking for text files, you might try:

	strings -n 20 -t d /dev/hda3 | grep "important data"

and then use dd to copy the data from the offset reported by strings:

	dd if=/dev/hda3 of=/user3/file bs=4k skip=<offset in blocks> count=N

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://members.shaw.ca/adilger/                 http://members.shaw.ca/golinux/

Attachment: pgp00000.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]