It is currently Tue, 17 May 2022 03:18:08 GMT

Author Message
 Linux 'fdisk' and MS-DOS
Users are warned to use an operating system specific version of
'fdisk' when manipulating hard drive partition information. I've a
situation where this is not possible.

I have a hard drive whose primary partition #1 is a DOS partition, or
it was the last time I as able to boot Win98 from the drive. I booted
using a Win98 boot floppy and discovered using fdisk that DOS was
unaware of the partition type; it was labeled 'Unknown'. DOS fdisk
provides no mechanism for modifying the partition type to correct the

I tried several things none of which was successful and eventually
arrived at a situation where it is now impossible to boot Windows or
even DOS using a floppy as long as the hard drive is installed(single,
master, or slave). Somewhere in the boot process the system hangs.

I can boot Linux using boot and root floppies.

Choosing the print option in fdisk results in:

Disk  /dev/hda : 255 heads, 63 sectors, 1027 cylinders
Units = cylinders of 16065 * 512 bytes

      Device  Boot  Begin Start    End    Blocks      Id   System
/dev/hda1               1        1      511    4104576   66  Unknown

Linux also is having a problem with the drive since it is a 13.6 GB
Western Digital Drive.

 Is there any way from Linux to restore the hard drive to a condition
where I can at least boot using an MS-DOS boot floppy?  I'd prefer not
to reformat so I can avoid installing all my Applications. Is there
any hope?



 Wed, 01 Oct 2003 10:28:27 GMT   
 Linux 'fdisk' and MS-DOS
In article <> "James Oliver"

Then it's possible that Ranish Partition Manager can help you out.

Garry Knight

 Thu, 02 Oct 2003 08:48:12 GMT   
 Linux 'fdisk' and MS-DOS

Hi bigoli,

It looks like you have only one partition on your first HD that is cca
System ID is 66 which is not linux nor windows. For linux is 83 or 82, and
Win FAT32 few 0C ( primary in LBA mode ), 0F ( extended ), 0B ( logical ).

It is not bootable!

Yes, but as people say on your own risk. Be aware that playing with fdisk
sometimes painful. I guess this ID=66 is result of your first try.

Using fdisk, try to:
1. change windows partition ID to 0C (zero C),
2. make partition bootable,
3. write partition table to HD.

Now restart computer. If there is no other damages on /dev/hda1 file
you should be able to boot in your computer as before.
At any time if you are unsure what is fdisk command you need,
type "m" for menu with options.



 Tue, 21 Oct 2003 22:52:27 GMT   
   [ 3 post ] 

Similar Threads

1. DOS fdisk won't recognize changes made by linux fdisk

2. fdisk doesn't see MS-DOS partition...

3. Linux can't see partitions created with DOS 6.22 fdisk

4. 'more'-like util for MS-DOS?

5. Sharing Linux and MS-W swap -- Can't DOS format D:

6. MS-DOS can't connect to Linux 1.3.x FTP

7. LILO and DOS's fdisk /mbr

8. DOS won't boot despite fdisk /MBR

9. fdisk won't work, can't install Linux

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software