1 |
On Thursday 24 December 2009 10:52:08 Alan McKinnon wrote: |
2 |
> On Thursday 24 December 2009 15:52:37 Daniel D Jones wrote: |
3 |
> > Just did a stage 3 install following a HD crash on a new HD. The initial |
4 |
> > install went without issue and I booted from the HD normally. I then |
5 |
> > went through and installed a bunch of packages - xorg, kde, etc. I |
6 |
> > installed genkernel, compiled a custom kernel, and updated |
7 |
> > /boot/grub/menu.lst. |
8 |
> > |
9 |
> > Upon rebooting, I ended up at a grub command line. I can setup the hard |
10 |
> > drive without errors: |
11 |
> > |
12 |
> > grub> root (hd0,0) |
13 |
> > Filesystem type is ext2fs, partition type 0x83 |
14 |
> > |
15 |
> > grub> setup (hd0) |
16 |
> > Checking if "/boot/grub/stage1" exists... yes |
17 |
> > Checking if "/boot/grub/stage2" exists... yes |
18 |
> > Checking if "/boot/grub/e2fs_stage1_5" exists... yes |
19 |
> > Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are |
20 |
> > embedded. succeeded |
21 |
> > Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p |
22 |
> > (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded |
23 |
> > Done. |
24 |
> > |
25 |
> > No errors, says everything's good. Reboot and I'm right back at the |
26 |
> > command line. |
27 |
> > |
28 |
> > I can do |
29 |
> > |
30 |
> > root (hd0,0) |
31 |
> > kernel = /vmlinuz-blah |
32 |
> > boot |
33 |
> > |
34 |
> > and boot into the system, so I know the system and hd0,0 is bootable. |
35 |
> > (I'm writing this message on it after doing the above.) |
36 |
> > |
37 |
> > There are three hard drives in the system. I've verified that the BIOS |
38 |
> > is set to boot from the first hard drive, which grub sees as hd0. I've |
39 |
> > also, just to test it out, setup grub on hd1 and hd2, with hd0,0 set as |
40 |
> > root. I |
41 |
> |
42 |
> ^^^^^^^^^^^^^^^^^^ |
43 |
> |
44 |
> > still get the same thing. |
45 |
> |
46 |
> Your next paragraph indicates that (hd0,0) is not in fact root, but (what |
47 |
> will eventually be) /boot. |
48 |
> |
49 |
> Your root is likely to be (hd0,2) |
50 |
|
51 |
Eh? Your grub root should be where grub is installed, shouldn't it? That's |
52 |
/dev/sda1 on my system, which grub sees as hd (0,0). When the file system is |
53 |
mounted, that partition mounted under /boot but grub still needs to know where |
54 |
to find the menu.lst and various stage files on initial boot, and that's hd |
55 |
(0,0). |
56 |
|
57 |
-- |
58 |
"Believe nothing, O monks, merely because you have been told it ... or because |
59 |
it is traditional, or because you yourselves have imagined it. Do not believe |
60 |
what your teacher tells you merely out of respect for the teacher. But |
61 |
whatsoever, after due examination and analysis, you find to be conducive to the |
62 |
good, the benefit, the welfare of all beings-that doctrine believe and cling |
63 |
to, and take it as your guide." - Gautama Buddha, Indian philosopher |
64 |
(536?-483? B.C.) |