Re: GRUB Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karl Larsen wrote:
Mikkel L. Ellertson wrote:
Michael Wiktowy wrote:
On 10/16/07, John Pierce <john.j35@xxxxxxxxx> wrote:
Probably the wrong list, but here goes.

All this talk about how to call a working grub on another hard drive from one now working, is a great lesson on how VERY poor the documentation is for Grub. For sure the writers of Grub tried but they know way too much to write a manual for just users of Grub.

Most of what I know about grub comes from reading its documentation. From the documentation:

The device syntax used in GRUB is a wee bit different from what you may
have seen before in your operating system(s), and you need to know it so
that you can specify a drive/partition.

   Look at the following examples and explanations:

     (fd0)

   First of all, GRUB requires that the device name be enclosed with
`(' and `)'. The `fd' part means that it is a floppy disk. The number
`0' is the drive number, which is counted from _zero_. This expression
means that GRUB will use the whole floppy disk.

     (hd0,1)

   Here, `hd' means it is a hard disk drive. The first integer `0'
indicates the drive number, that is, the first hard disk, while the
second integer, `1', indicates the partition number (or the PC slice
number in the BSD terminology). Once again, please note that the
partition numbers are counted from _zero_, not from one. This
expression means the second partition of the first hard disk drive. In
this case, GRUB uses one partition of the disk, instead of the whole
disk.



From this one might anticipate that (hd1) refers to the MBR on the second drive.

And this:
     # For booting OS/2
     title OS/2
     root  (hd0,1)
     makeactive
     # chainload OS/2 bootloader from the first sector
     chainloader +1
     # This is similar to "chainload", but loads a specific file
     #chainloader /boot/chain.os2

   This will boot OS/2, using a chain-loader (*note Chain-loading::).

(I used to use OS/2. look me up at googlism.com).

Reading this in conjunction with the previous snippet, one might conclude that if /dev/hda1 contained grub, then this would load grub.


The information is there. just take the time to read it. Preferably, with the pinfo command.





--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx

Please do not reply off-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux