On Wednesday 14 March 2012 11.50.37 Philippe Naudin wrote:
Thanks all for your answers.
Actually, my problem concern lvm, not mkswap.
Thanks all for your answers.
Actually, my problem concern lvm, not mkswap.
mkswap prints our an incorrect or at least pointless warning.
I can confirm that mkswap on an lv on one of my test machines also says
"warning: don't erase bootbits...". It also says this when running against a
file full of zeroes...
Regarding fdisks complaints about "doesn't contain a valid partition
table...", this is normal (and may be considered a bug in the "-l" option, it
could have excluded lvm-devices from its list...).
If you want to get to the bottom of this I suspect the easiest way is to look
at the mkswap source code (under which circumstances it prints that message).
/Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.centos.org/pipermail/centos/attachments/20120314/1674967c/attachment.bin
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.centos.org/pipermail/centos/attachments/20120314/1674967c/attachment.bin