On Sat, 9 Jun 2001 18:39:56 +0200, johan goris staggered into the Black
Sun and said:
>I've got the following problem:
>Device Start End Blocks Type
>/dev/hda1 1 18117 9130936+ c
>/dev/hda2 1025 5088 2048251 f
>/dev/hda3 22182 24967 1404144 83
>/dev/hda4 24968 25288 131544 82
>/dev/hda5 2160734 715730 1419201560+ 6
>First is the Linux OS put on the computer. Win98 is put on afterwards. I
>want to save the information on hda2 (about 2 GB)
>Who can give me help to resolve this problem.
I think it's unlikely you will be able to recover the information, but
if you're willing to try, copy the information from hda2 to a file, run
dosfsck on the file, and then try to mount the file via loopback. Like
dd if=/dev/hda2 of=/path/to/somewhere bs=16k
dosfsck -a /path/to/somewhere
( many error messages will appear...)
mount -t vfat /path/to/somewhere /mnt/mountpoint -o loop,ro
Also, your partition table is seriously messed up. Take a look at it
again, and notice the following things:
0. hda2 overlaps with hda1. Partitions should *NEVER* overlap. That's a
recipe for certain data loss.
1. hda2 is of type Win95 Extended, but it doesn't contain any logical
partitions. hda5 is supposed to be the first logical partition, but it
is not contained within hda2.
2. The cylinder start+end on hda5 are completely bogus. Especially
since a FAT16 partition cannot be larger than 2G.
There's a utility called "gpart" that can attempt to fix this problem.
Check http://home.pages.de/~michab/gpart/ . Also, go to
http://freshmeat.net/ and see if you can find anything useful by
searching on the keyword "partition".
And whatever you did to cause this, don't do it again. Mangled
partition tables are *NOT* fun to fix, as you will find out....
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / Outside of a dog, a book is a man's best
http://www.brainbench.com / friend. Inside of a dog, it's too dark
-----------------------------/ to read. --Groucho Marx