• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 753
  • Last Modified:

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
0
kenabbott
Asked:
kenabbott
1 Solution
 
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
0
 
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
0
 
kenabbottAuthor Commented:
With the fdisk option, how do I know which of the drive name options to use?
0
 
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.
0
 
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
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now