Welcome to the Linux Foundation Forum!

3.4 GRUB Device Nomenclature

Options

In both GRUB versions, the first hard drive is denoted as hd0, the second as hd1, etc. However, in version 1, partitions start counting from 0 and in version 2 from 1:

sda1 is (hd0,1) in GRUB 2 but (hd0,0) in GRUB 1.

sdc4 is (hd3,4) in GRUB 2 but (hd3,3) in GRUB 1.

Wouldn't sdc by hd2?

Comments

  • coop
    coop Posts: 915
    Options
    You are absolutely correct, thanks for finding the error and we will fix in the master files!

    Jerry Cooperstein
    Training Program Director, Linux Foundation
  • adamherst
    adamherst Posts: 25
    Options
    It's ironic that the line following the example says "There is no need to emphasize that getting confused about this can be rather destructive" :-).

    Thanks,

    Adam
  • adamherst
    adamherst Posts: 25
    Options
    In the example, /boot is said to be on its own partition (/dev/sda1) but the first example stanza shows root=/dev/sda2. Should it be root=/dev/sda1?

    Thanks,

    Adam

Categories

Upcoming Training