Walter Faleiro wrote:
>> Achim,
>> I want to use the drives anew.
>> I had run fdisk and deleted all the partitions on it and after rebooting
> it still shows device-mapper info.
> Will the below command clear all information on the drive if I run it
> after deleting the current partitions? Or is there more configuration
> after it.
>> Regards,
> --Walter
It should not matter if you already have removed the partitions with
fdisk. From the described the disk layout looked like one large
partition per disk - even if you delete and recreate the partition the
partition data is most likely not overwritten, so the LVM or dm label
might be intact. To make sure that the disk label, the partition table
and the partion label is blanked run for disk sdb:
# dd if=/dev/zero of=/dev/sdb bs=1M count=8
which writes 8MB of zero's over this area. After that you need to
re-label and re-partition the disk.
Regards,
Achim
--
Achim Dreyer || http://www.adreyer.com/
Senior Unix & Network Admin || RHCE, RHCA, CCNA, CCSA, CCSE, CSCE
Phone: +44 7756 948229 || CACert assurer
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!