Can not switch off DOS compatible mode.
I just installed CentOS 6.4 (64 bit) and I am new to LVM. I am trying to figure out how to make the LVM partitions usable.
When I do an fdisk /dev/sda I get this message: ---------------- # fdisk /dev/sda WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). ---------------- I follow the instructions, including reboot, but the next time I do an fdisk, I get the same thing. I do not really understand why the latest version of CentOS would install a deprecated mode. Or why CentOS would install unusable partitions. Any help appreciated, thanks in advance. |
fdisk is probably useful for floppy drives and USB sticks. Current large drives don't use DOS format, they use GPT, so you must use the horrible parted program. If you are ambitious get GPT Fdisk from Sourceforge.
|
This has nothing to do with LVM or GPT at all, it is a display mode of fdisk . This is what the manpage for fdisk (util-linux 2.21.2) says about that:
Quote:
By the way, fdisk has nothing at all to do with LVM and won't help you to work with or learn about LVM. |
You could follow the directions of what fdisk proposes.
You could also try cfdisk which is a more friendly interface. Not sure if cfdisk is a layer around fdisk. But I do agree that this is not fdisk default behaviour and you could be calling a script instead of fdisk. jlinkels |
Actually , at least on Centos6.4 it does seem to be hardcoded
Code:
which fdisk |
Yuk, look what Debian Squeeze says:
Code:
sudo fdisk /dev/sdb jlinkels |
Seems that Slackware is more progressive here:
Code:
root ~ ☺ # fdisk /dev/sdb |
At the end of the day, its just a display mode, so it still works just fine.
@jlinkels; you probably got so used to it you don't remember seeing it. I'd forgotten until I got into this thread. Centos/RHEL are long term products and the upstream probably hasn't made it down yet. |
|
Quote:
Quote:
I am not sure what good that would do. Quote:
|
The mode in which fdisk starts up is independent of how your disk is currently partitioned. The version of fdisk that you have (2.17.2) will, unless you include the "-c" option in the command line, always start up in DOS compatible mode and give you that warning. Older versions of fdisk always started up in DOS compatible mode (there was no "-c" command line option) and did not give that deprecation warning. Newer versions start up with DOS compatible mode turned off by default. Your version is somewhere in between. You can either live with it or keep venting about it, but it is extremely unlikely that Red Hat will change that behavior within the current OS major release.
|
As above post & see my example; its baked in but nothing to worry about.
If you really can't stand it, try parted. |
All times are GMT -5. The time now is 08:32 AM. |