Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-21-2006, 10:35 AM   #1
LQ Newbie
Registered: Oct 2006
Distribution: Suse 10.1
Posts: 13

Rep: Reputation: 0
How to wipe drive to make it like a virgin?



I had a dualboot system with windows and suse 8.1. Then windows disappeared.
After many reinstallations, deletions and repartitions, I could manage to get Ubuntu 6.06 running - alone. All other systems seem to have been deleted, which i managed to achieve with ubuntu.


It seems to be so messed up, that I really want to start from scratch...
I want to go back to a dualboot. As I understand, I need tro install Windoze first. How can I wipe my harddrive in a way, it is like a virgin, and I can boot with windows CD and then install ubuntu? I would need to uninstall Linux, but how can I get rid of everything? Including ther MBR? I have no internet access...

Old 10-21-2006, 11:03 AM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Just boot with the windows disk and let it format the drive. Get it to create two partitions so you can install linux on the second partition.
Old 10-21-2006, 11:15 AM   #3
Registered: Mar 2004
Location: Virginia
Distribution: PacketProtector
Posts: 331

Rep: Reputation: 30
If memory serves, if you wish to start from scratch with a new windows installation (which you will later create a Linux dual boot system off of) you should be able to just kick of the Windows installation. Early in the process it will ask where you wish to install Windows, and when you select your drive, it will ask if you wish to use one of the existing partitions or to reformat the drive. At this point allow windows to reformat the drive (it will install its own boot loader and instruct the MBR to locate it).

At this point you should be set. Keep in mind that you will want to pull of any vital information that you have on this system before you kick of this process and once Windows in installed you can then move forward with your Linux install.

Happy Hunting!
Old 10-21-2006, 03:56 PM   #4
Registered: Oct 2005
Location: UK
Distribution: Mint
Posts: 249

Rep: Reputation: 37
When I needed to send a laptop back to its makers for (non-functional motherboard) repair, we decided to "virginise" the hard drive

By connecting it as a second drive to the existing Linux box, it came up as hdb and could be mounted, and the Windows directories were available so we took the opportunity to snatch back all the stuff we wanted to salvage. Then a few vicious (and unnecessary) rm commands were used to delete everything, but we went for more..

First fdisk - delete all and made 2 windows partitions, one bootable.
mkfs.ntfs /dev/hdb1
mkfs.ntfs /dev/hdb2
dd if=/dev/zero of=/dev/hda1 bs=512 count=1
The dd command zeros the first 512 bytes of the partition - where the MBR goes.

I *think* it was by leaving out the -Q (quick format) option, that it zeroed the whole volume, but I do remember the process took a while get through the whole 80Gigs because we all got bored and went off to make tea. It was not a forensic overwrite, but the drive ended up functionally "virginal" for all practical purposes. I am not sure what happens if you let Windows to do the job.
Old 10-21-2006, 04:38 PM   #5
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
There is also a bootable floppy called DBAN which does a real wipe--including some of the routines used in high-security environments.
Old 10-22-2006, 12:39 PM   #6
Registered: Feb 2006
Location: United States
Distribution: Debian Etch, Suse 10.0, Ubuntu Feisty
Posts: 37

Rep: Reputation: 15
Shred and DBAN/Wipe

I agree with pixellany
Originally Posted by pixellany
There is also a bootable floppy called DBAN which does a real wipe--including some of the routines used in high-security environments.
You can also get a program Shred.

You can get both programs and many more on live discs.
System Rescue Cd

As for partitioning both these live discs have these programs as well.
Knoppix I believe has G-Parted (Partition Magic clone).
System Rescue Cd has about four partitioning tools.

I like to use System Rescue Cd. It's a great Linux product for all your setup and recovery needs.
Old 10-28-2006, 09:51 AM   #7
LQ Newbie
Registered: Oct 2006
Distribution: Suse 10.1
Posts: 13

Original Poster
Rep: Reputation: 0

Many thanks for your numerous help(s).
I got it running now. sorry for my late response, I thought i would receive an email notification.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I wipe a couple of hard drive in an Ultra 60 scottie4442 Solaris / OpenSolaris 8 09-14-2006 02:02 PM
how to wipe off hard drive in solaris? frankie_DJ Solaris / OpenSolaris 3 06-15-2006 03:07 PM
How can I wipe the hard drive between partitions? tstrickland Mandriva 2 06-14-2005 11:00 PM
How to use virgin Lacie firewire drive nutthick Linux - Newbie 1 02-10-2005 11:57 PM
how to wipe a drive??? trey85stang Slackware 13 05-02-2004 04:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration