dd booboo

Daniel teletautala at gmail.com
Sat Feb 17 21:16:48 MST 2007

I thank you all for your help.  I can see the disk now that I
restarted the computer.  I feel it's safe to give the hard drive to


On 2/17/07, Charles Curley <charlescurley at charlescurley.com> wrote:
> On Sat, Feb 17, 2007 at 06:23:27PM -0700, Daniel wrote:
> > FYI when I finished the dd booboo I did "df -h" it showed /dev/sdb1 as
> > having -XXX used space.  It also said that dd ran out of space.  after
> > all this I unplugged it.  I was trying to wipe out the drive so I
> > could give it away.  I will try plugging it back in and see if I can
> > see it.
> Ah. In that case, run
> dd if=/dev/zero of=/dev/sdb
> (Note the lack of a 1 in the device name.) That's the command I
> thought you had run earlier. In addition to getting the first
> partition (sdb1), you will also get the partition table and the rest
> of the gap between the first sector on the drive (the partition table)
> and the beginning of the first partition.
> Running out of drive space was perfectly reasonable. You didn't give
> dd a count, so normally it would go until it exhausted the input
> file. Since your input file has an infinite supply of zeros, dd filled
> up the partition. Other than clobbering the file system, the command
> is harmless. The OS won't let you write beyond the end of a partition.
> --
> Charles Curley                  /"\    ASCII Ribbon Campaign
> Looking for fine software       \ /    Respect for open standards
> and/or writing?                  X     No HTML/RTF in email
> http://www.charlescurley.com    / \    No M$ Word docs in email
> Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */

More information about the PLUG mailing list