"warning: don't erase bootbits sectors on whole disk" when creating swap on a LV.

Solution Unverified - Updated -

Issue

  • When executing mkswap on a LV, it prompts below warning.
~]# mkswap /dev/vg_rhel68tpl/lvswap 
mkswap: /dev/vg_rhel68tpl/lvswap: warning: don't erase bootbits sectors
        on whole disk. Use -f to force.
Setting up swapspace version 1, size = 1048572 KiB
no label, UUID=b0b3507e-c451-433a-89ac-7ef8432a6e11

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.