CentOS 7 /boot Location

Home » CentOS » CentOS 7 /boot Location
CentOS 2 Comments

I noticed that (in a case with a two disk md mirror and lvm), the CentOS 7 installer is now placing /boot as the *last* partition on the disk.

I’m assuming that others are seeing this behavior. Does anyone know why it’s now the last instead of the first? (Seems to work, though.)

Devin

2 thoughts on - CentOS 7 /boot Location

  • The position doesn’t really matter. Some old bios needed the boot sector inside the LBA (first 1024 cylinders) – but the partition number doesn’t equate to the sectors/cylinders you’re assigning to them. So you may want to look at the actual addresses for each partition.

    It should work. My guess is that you may have forgotten to set “force primary” on the boot partition. Again, grub doesn’t care if it’s a primary partition but they usually are created first if that matters to you.

  • –Correct, and I wasn’t sufficiently clear. Not only did the installer put /boot on the last partition, but on the last sectors of the disk
    (which is really what caught my attention). And yes, both are forced to primary partitions:

    # fdisk -l /dev/sda
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 975749119 487873536 fd Linux raid autodetect
    /dev/sda2 * 975749120 976773119 512000 fd Linux raid autodetect

    I wasn’t so much surprised at the partition number but rather the sector offset of /boot.

    Devin