Why I am getting an error 'Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)' when I do fdisk on /dev/device?

Solution Unverified - Updated -

Issue

Is  that the disk emcpowera lost his partition 1, and LVM couldn't find it. See below, is there a way to fix the disk format ??

    [root@localhost ~]# fdisk /dev/emcpowera
    Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel 
    Building a new DOS disklabel. Changes will remain in memory only, 
    until you decide to write them. After that, of course, the previous 
    content won't be recoverable. 

    The number of cylinders for this disk is set to 8887. 
    There is nothing wrong with that, but this is larger than 1024, 
    and could in certain setups cause problems with: 
    1) software that runs at boot time (e.g., old versions of LILO) 
    2) booting and partitioning software from other OSs 
       (e.g., DOS FDISK, OS/2 FDISK) 
    Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) 

    Command (m for help): p 

    Disk /dev/emcpowera: 73.0 GB, 73098854400 bytes 
    255 heads, 63 sectors/track, 8887 cylinders 
    Units = cylinders of 16065 * 512 = 8225280 bytes 

             Device Boot      Start         End      Blocks   Id  System 

    Command (m for help): Command (m for help): q 

Environment

  • Red Hat Enterprise Linux 4, 5, 6, 7

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