Linux reformat hard disk

Hi

I have a PC with Suse Linux 9.3 installed on it.  I want to reformat the hard drive so I can install windows ( I don't want a dual boot).  What is the best way of going about this.

Many thanks

Ken
kenabbottAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ridCommented:
Get the ultimate boot CD ( http://ubcd.sourceforge.net/download.html ) and use one utility to wipe the HD. Then install windows in the normal fashion. The UBCD is a good thing to have handy anyway.
/RID
crazee64Commented:
If you just want to install windows with nothing else on the machine you can do that from the XP install process by erasing all the partitions on the hard drive when promted for a drive to install XP onto. Alternatively you can just do this in Suse:

fdisk /dev/[name of drive to erase] ie. hda, hdb etc for IDE, sda, sdb etc for scsi or sata
press d to delete each partition
w to write changes
put XP boot CD in drive and reboot

or even dd if=/dev/null of=/dev/hda ???
put in cd and reboot
kenabbottAuthor Commented:
With the fdisk option, how do I know which of the drive name options to use?
RiDo78Commented:
with 'mount' you can find out what partitions are currently used. Forget the last digit (for example take /dev/hda instead of /dev/hda1) to get to the right drive.

Btw: the namingconvention is pretty easy:
/dev/hda = IDE primary master
/dev/hdb = IDE primary slave
/dev/hdc = IDE secondary master
/dev/hdd = IDE secondary slave
/dev/hde = (extra) IDE master (on first channel)
and so on. If you are using SCSI or hardwareraid, the devices are /dev/sd? where ? is the number of the device.


One last thing, the most common pitfall is that people leave some primary partitions on the disk instead of removing them all. Windows Setup will not always recognise this correctly and does not mark the newly created NTFS partition as active. As a result, Windows is unable to boot properly. So the best way to go is to ensure that the partition-table is completely empty.

If you want to keep certain partitions, ensure that none of them are active and keep an bootdisk with FDISK (MS-DOS, Win9x or Linux) ready. If Windows fails to start, boot from the bootdisk and mark the NON-DOS or NTFS partition active.

The Rescue-mode of XP setup is not of much use as I found that FIXMBR and FIXBOOT are also not aware of an incorrectly marked partition.
ridCommented:
If the drive is to be wiped for a clean install of windows, the easiest  and fastest method is to use "zap". It used to be available on the IBM hard disk web site. It fits easily on a DOS bootable floppy and flushes the partition table in about 0.1 sec and then you're good to go with whatever O/S you choose on a "new" hard drive. Unless I totally misunderstand the question, I find it a bit unnecessary to identify the partitions etc. Clean out the HD. Windows setup can handle an empty drive.
/RID

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.