On Tuesday 24 July 2001 09:31, Douglas J. Hunley wrote:
> I understand that 'dd if=/dev/zero of=/dev/xx bs=512k count=1'
> will zero out the MBR, but does it also get the partition table? or should
> a count of 2 (3?) be used?
> thanks!

oooh, that aint what you want at all. you specified a scribble of one single 
block of 512,000 bytes !!!!

dd if=/dev/zero of=/dev/xx bs=512 count=1

The second part of your question is that the partition info and the bios 
signature is contained in the last 64+2 bytes of the first sector. This 
means, writing zeros to the entire sector (as you intended) _also_ destroys 
the partition info. (which is what you want)

Destroying the AA55 bios signature incidentally, renders this drive as a non 
boot device from bios. The bios algorithm is, it will boot from the first 
hard drive it sees, not the first hard drive in the system.

fdisk will discover this 'fact' and consider the drive virgin (no partitions).

-- 
http://linux.nf -- [EMAIL PROTECTED]

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to