1 |
Thanks to you and Kyle for the hint on rootdelay, I will give it a try. |
2 |
|
3 |
Regarding the performance, it should not be a real issue in my case. I |
4 |
will only use the key to boot the kernel and send a Wake-on-Lan packet |
5 |
to a file server, then I'll mount the discs over NFS. |
6 |
|
7 |
bye, |
8 |
|
9 |
raf |
10 |
|
11 |
On Wed, 2008-04-30 at 08:56 +0200, Branko Badrljica wrote: |
12 |
> I had the same two problems. |
13 |
> |
14 |
> WRT to grub, I don't remember anymore exactly what I have done, but I |
15 |
> think I have |
16 |
> copied sectors 1-62 from one conventional grub-bootable HDD to USB, |
17 |
> |
18 |
> Or maybe used some old HDD and formated it, parittioned it like the USB |
19 |
> disk, copied /boot partition on it and set up grub on it, then copied |
20 |
> sectors 1-62 back to USB disk. |
21 |
> Sector 0 is for MBR codeand last few tens of bytes contain headers for |
22 |
> first 4 partitions, so it shouldn't be touched and first partition |
23 |
> begins with sector 63. |
24 |
> |
25 |
> Something like that. |
26 |
> |
27 |
> |
28 |
> WRT to boot panics, kernel can't find USB key at boot since USB |
29 |
> initialisation code needs more time for key to stabilise. Use kernel |
30 |
> parameter rootdelay=10 for 10 second wait period for USB |
31 |
> |
32 |
> Hope this helps. |
33 |
> |
34 |
> |
35 |
> BTW: You will in all likelyhood be dissapointed with USB key |
36 |
> performance. Its R/W throughput is comparable to HDD only on paper. In |
37 |
> reality it seems that USB can't cope efficiently with small sector-sized |
38 |
> writes but also scattered reads seem to be far from optimal.Either that |
39 |
> or USB driver really sucks on Linux. |
40 |
> |
41 |
> It is very useable as fallback though. Like having one USB key soldered |
42 |
> directly on the MoBO and using it for boot if/when your HDD croaks or if |
43 |
> something eats your main boot option... |
44 |
> |
45 |
> |
46 |
> Regards, |
47 |
> |
48 |
> |
49 |
> Branko |
50 |
> |
51 |
> |
52 |
> |
53 |
> |
54 |
> Raffaele BELARDI wrote: |
55 |
> > In the process of building an amd64 diskless box, I am trying to make a |
56 |
> > bootable USB key with no success up to now. |
57 |
> > |
58 |
> > The first problem I encountered was related to ext2/vfat. I initially |
59 |
> > tried to format the key as ext2, but grub refuses to install on it. Even |
60 |
> > though I copied the /boot/grub/* directory into the key, and I see it is |
61 |
> > there, grub does not see it. The problem does not happen with vfat. |
62 |
> > |
63 |
> > So I worked around that and created two partitions in the key, a small |
64 |
> > vfat for the /boot and a 2Gb ext2 for the /. I copied the stage3 into |
65 |
> > the / with no problem. In the /boot I put the kernel image which I am |
66 |
> > already using on the same box, for now with discs still connected. All |
67 |
> > the modules are compiled in. |
68 |
> > |
69 |
> > When I boot from the key, grub enters the shell (although I did create |
70 |
> > the grub.conf and menu.1st, so I don't understand why it doesn't show |
71 |
> > the menu). I manually specify the kernel file location and root |
72 |
> > parameter: |
73 |
> > |
74 |
> > |
75 |
> >> kernel /linux-2.6.24-gentoo-r4 root=/dev/sdg1 |
76 |
> >> boot |
77 |
> >> |
78 |
> > |
79 |
> > The kernel starts to load, but panics because it is unable to find the |
80 |
> > root partition. When it stops it shows the available partitions, these |
81 |
> > include all the hard disk partitions but no USB key partition. In fact, |
82 |
> > if I omit the 'root' parameter from the grub shell the boot works fine |
83 |
> > but it uses the hard disk root partition instead of the USB one. |
84 |
> > |
85 |
> > >From the log on the screen the USB controller seems correctly detected, |
86 |
> > so I don't understand why it is not finding the root. While writing this |
87 |
> > one idea comes to my mind, maybe it is failing because I attach the key |
88 |
> > to a SDC/MMC/USB card reader? This evening I'll try to plug it into a |
89 |
> > different USB slot. |
90 |
> > |
91 |
> > Any other ideas welcome. |
92 |
> > |
93 |
> > raffaele |
94 |
> > |
95 |
> > |
96 |
> |
97 |
|
98 |
-- |
99 |
gentoo-amd64@l.g.o mailing list |