LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-04-2005, 10:12 PM   #1
rook
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Rep: Reputation: 0
Wipe partition table


I have a hard drive with a corrupt partition table. I tried to fix it with fdisk and DiskDruid, but there is still a problem. Everytime the kernel checks the partitions, it reads 16 partitions. Fdisk and DiskDruid only shows the new one I created. I have no data on the drive yet so I don't have to be careful. I just want to know how do I get a fresh start on my partition table. Can I use dd and just write all 0's? And what command would I need to do that?

Just in case anyone asks why the drive got corrupt in the first place -- it's not a bad drive, I had a bad stick of RAM which I have since removed from the system. The rest of it is running great, but I need to get this drive cleared up to get my file server back up and running.
 
Old 01-04-2005, 10:45 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
This will wipe the MBR and partition table. Just make sure you run this on the right drive.
dd if=/dev/zero of=/dev/hda bs=512 count=1
 
  


Reply



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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
did GRUB wipe my W2K partition; won't boot? graywave Linux - General 7 11-26-2005 07:55 PM
Use 'dd' to wipe only partition table linuxchump Linux - General 4 08-20-2005 11:03 AM
How do I wipe my windows partition, and keep my Linux? walterbyrd Debian 1 07-21-2005 10:46 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM

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

All times are GMT -5. The time now is 09:54 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