View the following GRUB command or the output of fixing the GRUB boot problem:
Based on the output, which statement is true?
A.
The GRUB command sequence restores GRUB from the first partition on the second hard disk.
B.
The GRUB command sequence does not restore GRUB.
C.
GRUB command sequence restores GRUB from the second partition on the first hard disk.
D.
The GRUB command sequence verifies the stage1 on the first partition on first hard disk.
Explanation:
hd0,1 indicates the first hard drive and the second partition.
Note:
*grub – the grub shellEnter the GRand Unified Bootloader command shell.
*In the following example we assume that the boot partition is located at /dev/hda5 and that GRUB
must be installed on the first disk’s MBR.
grub> root (hd0,4)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if “/boot/grub/stage1” exists… yes
Checking if “/boot/grub/stage2” exists… yes
Checking if “/boot/grub/e2fs_stage1_5” exists… yes
Running “embed /boot/grub/e2fs_stage1_5 (hd0)”… 23 sectors are embedded.
succeeded
Running “install /boot/grub/stage1 (hd0) (hd0)1+23 p (hd0,4)/boot/grub/stage2
/boot/grub/menu.lst”… succeeded
Done.
grub> quit
The first command includes the location of the boot partition, thus indicating where the boot loader
files are located. The second command installs GRUB on the MBR. For this purpose, a file called
stage1_5 is used to grant GRUB access to the file system on the boot partition.
Although internet sites we backlink to below are considerably not associated to ours, we really feel they may be actually worth a go by, so possess a look.