1 |
In the process of building an amd64 diskless box, I am trying to make a |
2 |
bootable USB key with no success up to now. |
3 |
|
4 |
The first problem I encountered was related to ext2/vfat. I initially |
5 |
tried to format the key as ext2, but grub refuses to install on it. Even |
6 |
though I copied the /boot/grub/* directory into the key, and I see it is |
7 |
there, grub does not see it. The problem does not happen with vfat. |
8 |
|
9 |
So I worked around that and created two partitions in the key, a small |
10 |
vfat for the /boot and a 2Gb ext2 for the /. I copied the stage3 into |
11 |
the / with no problem. In the /boot I put the kernel image which I am |
12 |
already using on the same box, for now with discs still connected. All |
13 |
the modules are compiled in. |
14 |
|
15 |
When I boot from the key, grub enters the shell (although I did create |
16 |
the grub.conf and menu.1st, so I don't understand why it doesn't show |
17 |
the menu). I manually specify the kernel file location and root |
18 |
parameter: |
19 |
|
20 |
> kernel /linux-2.6.24-gentoo-r4 root=/dev/sdg1 |
21 |
> boot |
22 |
|
23 |
The kernel starts to load, but panics because it is unable to find the |
24 |
root partition. When it stops it shows the available partitions, these |
25 |
include all the hard disk partitions but no USB key partition. In fact, |
26 |
if I omit the 'root' parameter from the grub shell the boot works fine |
27 |
but it uses the hard disk root partition instead of the USB one. |
28 |
|
29 |
>From the log on the screen the USB controller seems correctly detected, |
30 |
so I don't understand why it is not finding the root. While writing this |
31 |
one idea comes to my mind, maybe it is failing because I attach the key |
32 |
to a SDC/MMC/USB card reader? This evening I'll try to plug it into a |
33 |
different USB slot. |
34 |
|
35 |
Any other ideas welcome. |
36 |
|
37 |
raffaele |
38 |
|
39 |
-- |
40 |
gentoo-amd64@l.g.o mailing list |