Help answer threads with 0 replies.
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 11-18-2010, 01:01 PM   #1
LQ Newbie
Registered: Oct 2009
Location: The Hague, The Netherlands
Distribution: Ubuntu 10.04 LTS
Posts: 15

Rep: Reputation: 0
Writing zeroes to disk before using it?

I'm writing a script that among other things partitions and formats disks using SW RAID and LVM.

I've read somewhere that for older versions of Linux it was a good idea to use the dd command to zero the first couple of blocks od a device before partitioning it (or formatting it?)

Is this practice still recommended? To what end?

Looking forward to your reply.
Old 11-18-2010, 01:30 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
It has nothing to do with older versions of Linux - the same is true of Windows and Mac OSX. When reusing drives you want to start fresh, which means removing the MBR, partition table, LVM and RAID areas on the drive. These can confuse any OS about the state of the drive, so clearing them insures that there's nothing left that will trigger erroneous behavior.
1 members found this post helpful.


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
IP with padded zeroes in bash frater Linux - Software 7 10-29-2010 09:59 AM
Writing to tty causes writing to disk? (in ancient 2.2.x kernel) borsburn Linux - Kernel 0 12-17-2008 01:47 PM
PCI-BUG #81 [<some zeroes>] Found! What should I do? algogeek Linux - Hardware 3 04-29-2008 03:11 AM
Overwriting data with zeroes prior to deletion. Daws Linux - General 7 07-25-2007 06:23 PM
pflogsumm generates zeroes for results rioguia Linux - Software 1 09-29-2004 04:29 PM > Forums > Linux Forums > Linux - Newbie

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