"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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content