On Tuesday 18 November 2003 17:17, [EMAIL PROTECTED] wrote:
> Is there any chance that I can recover my data from /home partition?
> PS. During the installation, I did not make any changes to this partition
I had similar problem (partition table mess) a long time ago (~8 years):
* I had access to a different Linux box (different machine)
* I wrote a small program on that machine:
1. Open the raw device (e.g: /dev/hda)
2. Read it block by block
3. Search in each block the "magic number"
of the super-block. For ext2 (back than)
it was in /usr/include/linux/ext2_fs.h:
#define EXT2_SUPER_MAGIC 0xEF53
4. Print the block number if the magic number was found in it.
5. Compiled + statically linked it (gcc -static).
* I booted from floppy on the problematic machine:
1. Ran the program and wrote down few block numbers (each filesystem
has many *identical* copies spread in its cylinder groups).
2. Ignored numbers which where not in regular intervals
(false alarms)
3. Ran 'fsck -b <super_block_number>'
4. If all is good (it was in my case), than we can trust the
superblock data (start and size of partition)
5. So we can safely use them to fix the partition table
(back then I used Norton-Disk-Doctor under DOS to edit
the partition table. I think today parted would give
you better options -- but didn't check it).
Hope it helps,
--
Oron Peled Voice/Fax: +972-4-8228492
[EMAIL PROTECTED] http://www.actcom.co.il/~oron
"Normal people ... believe that if it ain't broke, don't fix it.
Engineers believe that if it ain't broke, it doesn't have enough
features ... yet." -- Scott Adams
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]