General discussion

Locked

linux uninstallation help!!

By vis_us_01 ·
I have installed mandrake linux 9.2 on my drive and accidently I made the whole of my disk available to linux.
Now i want to install Win98se on it ...but the windows bootable floppy doesnt recognize the partitions ....it only gives a message that No.of drives present:1 when i run the fdisk command.

help me please to recover my hard drive!!

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by ysamala In reply to linux uninstallation help ...

Use windows 98 bootup disk and run fdisk and delete all non-dos partitions and then create a FAT32 partition and install win 98 on it.Also if u want to install linux after installing win98 then u also need to create a partition but it should be unallocated, I mean do not format it.Then install win98 and then u can install linux if u want to on the unallocated partition.
Good Luck

Collapse -

by dmiles In reply to linux uninstallation help ...

Assuming that you want to clear off the entire drive and have no concerns about losing any of the data that is on it, boot Linux and enter
dd if=/dev/zero of=/dev/hda bs=512 count=1

NOTE: this will completely wipe your entire Master boot Record! Not only will you not be able to boot from this drive, you will not even be able to read it once you've rebooted: it will require partitioning (via fdisk) and formatting. Be sure that you have your new OSs boot floppy close to hand!
If you wish, you can partition the disk while still in Linux (wiping out the MBR only makes itself felt after you reboot); "fdisk" and "cfdisk" will happily write DOS partitions to your drive.
If you have to do this from DOS, try entering the following commands:
lock c:
fdisk/mbr

Several folks have reported having no luck with "fdisk /mbr" - which, in my long experience with it (I discovered it by reading the strings in "command.com" in DOS5.0 well before someone documented it as an "undocumented feature") both succeeds and fails silently. I believe that in the case of Windows-based installs, this is due to the fact that Windows disallows "raw writes" to the disk: a useful thing to prevent a certain percentage of viruses, but a hindrance when you need to fix something. "lock c:", above, "locks" the drive to allow them, and should make "fdisk/mbr" effective.

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums