LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2006, 01:48 PM   #1
tuesdays-child
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4
Posts: 6

Rep: Reputation: 0
Whats the best utility for wipping hard drive?


Well so it happens that i need to wipe my whole hard drive + MBR, so I was wondering if you more experienced guys can recommend me a tool or utility you use to perform such tasks. I run, maybe worth mentioning Fedora #4.
...
+MBR i wrote becuase thats where i see (maybe i see wrongly) my problem installing fresh win XP wich i need for one project. When i boot from cd-rom, win installation says "Setup is inspecting your configuration", and nothing happens afterwards, except black screen, and thats it. Either way i dont need to wipe my disk just for that, i just want to arrange my hard drive more efficiently then it is right now, so any help of any kind is most welcomed.


Thanks,

Joseph
 
Old 05-03-2006, 02:07 PM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
I usually do that kind of thing with one of the utilities on the ultimate boot cd

http://www.ultimatebootcd.com/

Cheers
 
Old 05-03-2006, 04:04 PM   #3
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Rep: Reputation: 30
That black screen has nothing to do with the MBR of the hard disk.

The problem is most likely with the XP CD you are using. Try a different one.

Or, verify the integrity of the hard disk with a utility from the drive manufacturers website.

Scott
 
Old 05-03-2006, 05:35 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
My favorite "wiper" is DBAN (Darik's boot and nuke) It is at sourceforge and also (I think) on the Ultimate Boot CD.
 
Old 05-03-2006, 07:58 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
You really want to wipe your drive?

OK. Open a shell. su to root.

Then enter this line (assuming your drive is hda):

dd if=/dev/zero of=/dev/hda bs=1024

This will write zeros to every byte of your HD.
 
Old 05-04-2006, 12:34 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by jiml8
You really want to wipe your drive?

OK. Open a shell. su to root.

Then enter this line (assuming your drive is hda):

dd if=/dev/zero of=/dev/hda bs=1024

This will write zeros to every byte of your HD.
I don't think you can wipe a drive from which you are running. (But--I have never tried it)
Much easier to use a floppy or CD
 
Old 05-04-2006, 12:43 AM   #7
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
If you use jiml8's suggestion, my assumption would be that you've have to have the linux kernel running off of hdb. Or else the kernel would overwrite itself... that doesn't sound possible. Not without some nasty errors.
 
Old 05-04-2006, 01:14 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,823

Rep: Reputation: 4004Reputation: 4004Reputation: 4004Reputation: 4004Reputation: 4004Reputation: 4004Reputation: 4004Reputation: 4004Reputation: 4004Reputation: 4004Reputation: 4004
Quote:
Originally Posted by tuesdays-child
...
+MBR i wrote becuase thats where i see (maybe i see wrongly) my problem installing fresh win XP wich i need for one project. When i boot from cd-rom, win installation says "Setup is inspecting your configuration", and nothing happens afterwards, except black screen, and thats it.
Why don't you show us an "fdisk -l" - probably something simple.
 
Old 05-04-2006, 01:35 AM   #9
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
I wipe/shred files on my box with bcwipe.
 
Old 05-04-2006, 04:34 PM   #10
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by pixellany
I don't think you can wipe a drive from which you are running. (But--I have never tried it)
Much easier to use a floppy or CD
Oh, yes you can.

Depending on how busy the system isn't, you might even manage to complete the job BEFORE jobs start crashing.

Actually, I have even had corrupted systems that I have overwritten on the fly using a backup disk image (I backup and restore using dd). Usually before doing this I drop to runlevel 1, but I have done it from runlevel 5 by just stopping all user apps and any services that might try to do something while the overwrite is underway.
 
Old 05-04-2006, 04:37 PM   #11
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Penguin of Wonder
If you use jiml8's suggestion, my assumption would be that you've have to have the linux kernel running off of hdb. Or else the kernel would overwrite itself... that doesn't sound possible. Not without some nasty errors.
The kernel is actually in memory. You can wipe the entire system without crashing it - IF you shut down any services and apps that might try to access the drive while you are doing this.

Actually, if you really want to be cool about it, you set up some ramdisks and move /tmp, /etc, /proc, and essentials from /lib and /bin into ram. Then, you can wipe and rebuild the whole system without rebooting.

Try THAT with Windows! LOL!
 
Old 05-04-2006, 05:03 PM   #12
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
Quote:
Originally Posted by tuesdays-child
When i boot from cd-rom, win installation says "Setup is inspecting your configuration", and nothing happens afterwards, except black screen, and thats it.

this has nothing to do with your mbr like ScottReed said. There is something else going on.
 
Old 05-05-2006, 01:54 AM   #13
hold_breal
Member
 
Registered: Dec 2005
Distribution: suse/lfs/ubuntu
Posts: 46

Rep: Reputation: 15
are you trying to install windows to a s-ata hard drive?

if you are, this could explain the problem (as far as i know, windows only supports ide hard drives)
 
Old 05-07-2006, 05:06 PM   #14
tuesdays-child
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for all your help people. I still really dont quite know what was going on, but problem i had fixed itself somehow, actually maybe it had something to with fresh installation of Fedora Core 4 and setting grub as bootloader. After setting grub as my bootloader Win XP cd and installation went smoothly, so i doubt it was win xp cd glitch.


Joseph

Last edited by tuesdays-child; 05-07-2006 at 05:08 PM.
 
Old 05-07-2006, 05:08 PM   #15
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Windows supports sata harddrives. My cousin has a sata in his. Though the drivers for them may not be on the install disk, but I doubt that as well.
 
  


Reply


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Utility for Imaging Hard Disks w/Linux Installed needed rootking Linux - Software 12 06-11-2004 10:56 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
Whats the best way to partition a hard drive? drxsmurf Linux - Newbie 19 12-10-2003 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 AM.

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