[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What does grub-install do?
From: |
Dennis Cao |
Subject: |
What does grub-install do? |
Date: |
Fri, 1 Oct 2010 12:23:38 +0800 |
Hi buddies,
I want to install GRUB2 on my USB disk, so that I can boot my computer
if my system crashes.
I read manual of GRUB2 and tried to understand what grub-install did,
especially the '--root-directory' parameter. The manual says:
"... .... If you want GRUB to use images under a directory other
than the root directory, you need to specify the option
--root-directory .... ...."
I think grub-install first creates and installs 'boot.img' to MBR. And
it hardcodes the location of core.img inside boot.img. So, does
'--root-directory' tells grub-install to use core.img in the specific
directory?
Another question. I use the following command to try to install grub
to my usb disk.
grub-install --root-directory=/boot /dev/hdb
But when I boot my computer from USB disk, my computer just stops
after printing 'GRUB' on the left-top conner of the screen :(
Can anybody explain the details and usage of grub-install command?
What does it do? Which images are used and where are they copied to on
the hard or usb disk?
Thanks in advence:)
--
---------------------------------
曹贵林 ( Dennis Cao )
- What does grub-install do?,
Dennis Cao <=
- Re: What does grub-install do?, Goh Lip, 2010/10/01
- Message not available
- Re: What does grub-install do?, Goh Lip, 2010/10/01
- Re: What does grub-install do?, Dennis Cao, 2010/10/01
- Re: What does grub-install do?, Dennis Cao, 2010/10/01
- Re: What does grub-install do?, Goh Lip, 2010/10/01
- Re: What does grub-install do?, Dennis Cao, 2010/10/01
- Re: What does grub-install do?, lee, 2010/10/02
- Re: What does grub-install do?, Goh Lip, 2010/10/02
- Re: What does grub-install do?, lee, 2010/10/02
- Re: What does grub-install do?, Goh Lip, 2010/10/02