Difference between revisions of "grub legacy guide"

From thelinuxwiki
Jump to: navigation, search
(Created page with "==introduction== chain-load is the mechanism for loading unsupported operating systems by loading another boot loader. It is typically used for loading DOS or Windows. ==nami...")
 
Line 8: Line 8:
 
  (hd0,1)
 
  (hd0,1)
 
`hd' means it is a hard disk drive, `0' indicates the drive number, `1', indicates the partition number
 
`hd' means it is a hard disk drive, `0' indicates the drive number, `1', indicates the partition number
 +
 +
to actually access the disks or partitions with GRUB, you need to use the device specification in a command, like `root (fd0)' or `unhide (hd0,2)'
 +
 +
for example, you only need to type
 +
 +
    root (
 +
 +
followed by a <TAB>, and GRUB will display the list of drives, partitions, or file names
 +
 +
    (hd0,0)/vmlinuz
 +
 +
This specifies the file named `vmlinuz', found on the first partition of the first hard disk drive.

Revision as of 16:17, 8 November 2017

introduction

chain-load is the mechanism for loading unsupported operating systems by loading another boot loader. It is typically used for loading DOS or Windows.

naming convention

device syntax

(hd0,1)

`hd' means it is a hard disk drive, `0' indicates the drive number, `1', indicates the partition number

to actually access the disks or partitions with GRUB, you need to use the device specification in a command, like `root (fd0)' or `unhide (hd0,2)'

for example, you only need to type

    root (

followed by a <TAB>, and GRUB will display the list of drives, partitions, or file names

    (hd0,0)/vmlinuz

This specifies the file named `vmlinuz', found on the first partition of the first hard disk drive.