1 |
On 8/31/06, Stephen Liu <satimis@×××××.com> wrote: |
2 |
> # grub install /dev/hda |
3 |
> df: Warning: cannot read table of mounted filesystems |
4 |
> df: Warning: cannot read table of mounted filesystems |
5 |
> Could not find device for /boot: Not found or not a block device. |
6 |
> * end * |
7 |
|
8 |
I assume you meant grub-install /dev/hda? |
9 |
|
10 |
Try instead: |
11 |
|
12 |
cat << EOF | grub |
13 |
root (hd0,0) |
14 |
setup (hd0) |
15 |
EOF |
16 |
|
17 |
You should see a line that says: |
18 |
|
19 |
Running "install /grub/stage1 (hd0) (hd0)1+18 p (hd0,0)/grub/stage2 |
20 |
/grub/menu.lst"... succeeded |
21 |
|
22 |
(It is okay if the paths above are /boot/grub/foo instead of /grub/foo) |
23 |
|
24 |
> Should I put (hd0,1) for my case? I followed the sample in the guide |
25 |
> book. |
26 |
|
27 |
No, that would be equivalent to /dev/hda2. Grub partition numbers |
28 |
start at 0. Your grub.conf is correct, although I would probably use: |
29 |
|
30 |
title=Gentoo linux 2.6.17.-r7 |
31 |
kernel (hd0,0)/kernel-2.6.17-gentoo-r7 root=/dev/hda2 |
32 |
|
33 |
> On reboot only a black screen displayed. Please advise how to fix the |
34 |
> problem. TIA |
35 |
|
36 |
What do you mean? Do you not even get the grub boot prompt? If so, |
37 |
try my grub setup instructions above... |
38 |
|
39 |
-Richard |
40 |
-- |
41 |
gentoo-user@g.o mailing list |