In GRUB’s configuration file you find the line
Root (hd1,4)
What is corresponding device name on a Linux system?
A.
/dev/hda4
B.
/dev/hda5
C.
/dev/hdb4
D.
/dev/hdb5
In GRUB’s configuration file you find the line
Root (hd1,4)
What is corresponding device name on a Linux system?
In GRUB’s configuration file you find the line
Root (hd1,4)
What is corresponding device name on a Linux system?
A.
/dev/hda4
B.
/dev/hda5
C.
/dev/hdb4
D.
/dev/hdb5
The correct answer depends on two factors:
– The version of GRUB
– If the partition is Primary, or Logical on an Extended partition
In GRUB2 (prevalent since 2009) the partition numbers are counted from one, not from zero as was the case in GRUB version 1 (also known as GRUB Legacy and V0.97).
Partition numbers for logical partitions on extended partitions are counted from ‘5’, regardless of the actual number of primary partitions on your hard disk. The MBR is limited to four primary partitions, and a single primary partition can hold an extended partition which can then be divided into logical partitions.
Therefore:
GRUB1 GRUB2
HD0,0 /dev/hda1 Primary HD0,1 /dev/hda1
HD0,1 /dev/hda2 Primary HD0,2 /dev/hda2
HD0,2 /dev/hda3 Primary HD0,3 /dev/hda3
HD0,3 /dev/hda4 Primary HD0,4 /dev/hda4
HD0,4 /dev/hda5 Logical HD0,5 /dev/hda5
HD0,5 /dev/hda6 Logical HD0,6 /dev/hda6
…
HD1,0 /dev/hdb1 Primary HD1,1 /dev/hdb1
HD1,1 /dev/hdb2 Primary HD1,2 /dev/hdb2
HD1,2 /dev/hdb3 Primary HD1,3 /dev/hdb3
HD1,3 /dev/hdb4 Primary HD1,4 /dev/hdb4
HD1,4 /dev/hdb5 Logical HD1,5 /dev/hdb5
HD1,5 /dev/hdb6 Logical HD1,6 /dev/hdb6
Answer C is correct for a GRUB2 Primary partition
Answer D is correct for a GRUB1 Extended partition
Much of the LPI certification seems to be stuck in legacy apps such as GRUB1 and XFree86.
Comments?