From: Ralf Thiele (thiele@MB3.TU-Chemnitz.DE)
Date: 07/29/93


From: thiele@MB3.TU-Chemnitz.DE (Ralf Thiele)
Subject: Re: DOS FDISK trashed my partition table, can I save my Linux on /dev/hda3
Date: Thu, 29 Jul 1993 08:21:13 GMT

You wrote:

>I have a 210 meg HD on a Gateway 2000 (486/33) and the lilo install was
>having problems. I decided to check the partition table because lilo
>was giving some error about the cylindes being too high...

>Fdisk (linux) said that there were all manner of erors/problems with my
>partition table. So I decided that in the interest of getting things
>done right I would just reinstall the SLS distribution...WRONG!

>I went to DOS, did teh DOS fdisk thing (removed partitions) then when I
>tried to repartition the drive it told me that I had only 41 Megs of
>available disk space...I thought perhaps the Linux partition table was
>still there and not letting DOS see all the disk space...nope after
>removing what was left of the linux partition table (nothing BTW) I
>tried again...only 41 megs available...anyone see this before? Anyone
>know how to fix the problem?
>--Chris

>*************************************************************************
>school: 362-5487 Home: 703-264-0058
>cm43@andrew.cmu.edu Chem E and hoping to survive!!!
>Student Senator CIT Chair Funding and Recognition
> Committee Student Senate
>Co-President CMU Explorers Club
> Listen to the NEW WRCT Radio Show!!!
> 5:00 Tuesdays
> "DEAL WITH IT!!"
> Two non-PC guys tell it like it is!
> We're Straight-White-Christian Males
> And PROUD of it!!
> (...Courtesy of Chris Morrow and Greg Haverkamp...)
>**************************************************************************

I had this problem with another program under DOS. fdisk said, there were
a dos partition but a try to delete it, didn't work.
My Help:
I wrote a little program, that clears the Partition Table via BIOS-Int 13h
here the main part:
        mov ah,03h ;write Sector
        mov al,1 ;1 sector
        mov cx,1 ;cyl.0, sector 1 (this is first sector=Part.-Table)
        mov dh,0 ;Head 0
        mov dl,80h+drive_number ;f.e. dl=80h--> first Harddisk...
        mov bx,segment buffer ;buffer is a 512-Byte-Block
        mov es,bx ;filled with 00
        mov bx,offset buffer ;
        int 13h
after running this, i was able to reorganice my harddisk with fdisk(DOS)
!!! Be carefully, this little program !! CLEARes !! the partition-table.

I hope, this helps you !
ralf.thiele@mb3.tu-chemnitz.de