How to read a Win95-partition with partition table with errors.

How to read a Win95-partition with partition table with errors.

Post by johan gori » Mon, 11 Jun 2001 01:39:56



I've got the following problem:

I have a disk (16 heads, 63 sectors, 25288 cyl) which is partitionned :

(with fdisk :)

Device        Boot    Start            End                Blocks
id            System                                   Remarks
/dev/hda1    *          1                  18117            9130936+       c
Win95FAT32 (LBA)              This partition is OK (contains Win98 OS)
/dev/hda2                1025            5088             2048251         f
Win95Ext'd (LBA)                This is the partition I want to read, but I
cannot

access anymore
/dev/hda3                22182         24967            1404144        83
Linux                                       This partition is OK (contains
Linux Redhat 6.0
/dev/hda4                24968         25288            131544           82
Linux Swap                            This partition is OK
/dev/hda5                2160734    715730          1419201560+   6
FAT16                                    ???

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.

 
 
 

How to read a Win95-partition with partition table with errors.

Post by Dances With Cro » Mon, 11 Jun 2001 02:32:00


On Sat, 9 Jun 2001 18:39:56 +0200, johan goris staggered into the Black
Sun and said:

Quote:>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
so:

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

 
 
 

How to read a Win95-partition with partition table with errors.

Post by Charles E. Kinne » Mon, 11 Jun 2001 13:12:09




> 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)

Bummer.  If you MUST have Windows, you have to install it first.  Windows
inisists on overwriting the MBR info, which is a real pain.  So load up
Windows first, then do your Lnux install.  You can safely let LILO (or
your choice of loader) install itself on the MBR, and it will happily
recognize your Windows installation(s).  Just make sure you add the
Windows info to you /etc/lilo.conf file, then run lilo.

As far as recovery, if the previous respondents suggestions don't work,
you're probably hosed.

Good luck,
  Chuck Kinney

 
 
 

1. How to read a Win95-partition with partition table with errors.

I've got the following problem:

I have a disk (16 heads, 63 sectors, 25288 cyl) which is partitionned :

(with fdisk :)

Device        Boot    Start            End                Blocks
id            System                                   Remarks
/dev/hda1    *          1                  18117            9130936+       c
Win95FAT32 (LBA)              This partition is OK (contains Win98 OS)
/dev/hda2                1025            5088             2048251         f
Win95Ext'd (LBA)                This is the partition I want to read, but I
cannot

access anymore
/dev/hda3                22182         24967            1404144        83
Linux                                       This partition is OK (contains
Linux Redhat 6.0
/dev/hda4                24968         25288            131544           82
Linux Swap                            This partition is OK
/dev/hda5                2160734    715730          1419201560+   6
FAT16                                    ???

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.

2. COLA FAQ 7 of 7 16-Aug-2002

3. bad partition table error during Partition Check

4. /dev contains countless unused devices

5. ISDN on 4.3.1?

6. Strange 'unable to read partition table of device 0300' error

7. Where is the SCO system ID held?

8. Harddisk I/O Error Reading Partition Table

9. SCSI Error: Can't read partition table /dev/sda (what?, how fix?)

10. problems installing rh7.0: error reading partition table

11. Error reading partition table in Redhat 5.0 installation

12. RH6.1 I/O error reading IDE drive partition table