Douglas Mayne *nix forums Guru
Joined: 23 Feb 2005
Posts: 378
|
Posted: Thu Jul 13, 2006 1:41 pm Post subject:
Re: install (fd0)/stage1 d (hd0) (fd0)/stage2
|
|
|
On Thu, 13 Jul 2006 02:09:34 -0700, xkarl wrote:
| Quote: | My hd0 is fat,
hd0 is 512 bytes, the MBR. It doesn't use FAT. |
| Quote: | my floppy is fat too, and there are stage1 stage2 and
menu.lst on floppy. I use floppy booting PC, i want to install Grub on
(hd0) ,but there is no stage1 and stage2 on (hd0), I use this command:
grub>install (fd0)/stage1 d (hd0) (fd0)/stage2 p (fd0)/menu.lst
grub>reboot
But when booting from (hd0) only load stage1(because it stoped on
"Grub",no"stage2 loading .......") Obviously stage2 and menu.lst is not
loaded correctly. I want to kown what show i do to install Grub on
(hd0) when there is no stage2 on hd0?
THanks!
Note: comment inline. |
You have identified the problem:
The grub stage files are not installed on the hard disk.
Solution: Install the grub stage files, and the grub application on your
hard disk before installing it as the loader.
How: ?
You can install the grub application using whatever method you would
normally use to install software on your system. You don't say which
GNU/Linux distro you are using, so I can only tell you in general
terms. When the application have been installed, then you should verify
the grub stage files are present at /boot/grub. Also, make a menu.lst (or
grub.conf) at that location, too.
Once grub is installed (the application), then launch it from a _bash_
shell:
root@somebox# grub --no-floppy
grub>root (hdx,y)
grub>setup (hdx)
grub>quit
Watch for errors after each command. I have substituted x and y for
numeric values which are system dependant. For example, if you have
installed grub on your primary hard disk at partition 1, then x=0 and y=0.
(remember: grub counts starting at zero.) Also, the root command in this
context tells grub where it should look for its stage files.
There may be some other ways around this problem because grub is
a flexible loader, but I have explained the standard procedure. You
should study of the grub manual until you understand what you are doing
before you break something. Making a mistake when installing the loader
can leave your system unbootable, or worse.
http://www.gnu.org/software/grub/manual/grub.html
--
Douglas Mayne |
|
karl121212@163.com *nix forums beginner
Joined: 12 Jun 2006
Posts: 5
|
Posted: Thu Jul 13, 2006 9:09 am Post subject:
install (fd0)/stage1 d (hd0) (fd0)/stage2
|
|
|
My hd0 is fat, my floppy is fat too, and there are stage1 stage2 and
menu.lst on floppy. I use floppy booting PC, i want to install Grub on
(hd0) ,but there is no stage1 and stage2 on (hd0), I use this command:
grub>install (fd0)/stage1 d (hd0) (fd0)/stage2 p (fd0)/menu.lst
grub>reboot
But when booting from (hd0) only load stage1(because it stoped on
"Grub",no"stage2 loading .......") Obviously stage2 and menu.lst is not
loaded correctly. I want to kown what show i do to install Grub on
(hd0) when there is no stage2 on hd0?
THanks! |
|