Gentoo Archives: gentoo-catalyst

From: Zac Medico <zmedico@×××××.com>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] Re: minimal install on usb key
Date: Sun, 26 Jun 2005 01:13:28
Message-Id: 42BE0125.8050000@gmail.com
In Reply to: [gentoo-catalyst] Re: minimal install on usb key by Christophe PEREZ
1 Christophe PEREZ wrote:
2 > Le Thu, 23 Jun 2005 09:14:07 -0400, Chris Gianelloni a écrit :
3 >
4 >
5 >>Copy the contents of the CD to the USB key and it'll boot. You just
6 >>have to use cdroot=/dev/sda1 (or wherever your key is).
7 >
8 >
9 > Ok, I've got it now.
10 > But I had to search a lot.
11 > First, I had of course to put a grub on the usb key.
12 > Then, to had a rootdelay= option for the boot wait to my usb key.
13 > But, it was no sufficient because, I don't know why, but udev doesn't
14 > create /dev/sda and /dev/sda1
15 > (runUdev in /linuxrc)
16 >
17 > (something strange, udevstart which is in /bin is called by
18 > /sbin/udevstart in /etc/initrd.scripts but modifying it never change for
19 > /dev/sdaX)
20 >
21 > I had to add :
22 > ################### FOR USB BOOT ###################################
23 > echo -e "${WARN}>>${NORMAL}${BOLD} We must hard create device nodes"
24 > /usr/bin/mknod /newroot/dev/sda b 8 0
25 > /usr/bin/mknod /newroot/dev/sda1 b 8 1
26 > ################### END FOR USB BOOT ###############################
27 >
28 > before bootstrapCD in /linuxrc
29 >
30 > Now it works, but no really so simple as just copying files from iso to
31 > usb key.
32 > I'll put that img on my site soon if somebody is interested...
33 >
34
35 The rootdelay parameter should work (use a 5 or 10 second delay) with root=/dev/sda1 (no initrd) and statically linked usb drivers. If the usb drivers are modular then you need to have a delay inside linuxrc between the modules loading and udevstart (again, sleep 5 or 10 should do it). A parameter like "scandelay" is useful for tuning this.
36
37 Note that if you get the 'Please specify a device to boot, or "shell" for a shell...' message then you can choose shell, run udevstart, exit, and try to specify your root device again. There is a loop there inside linuxrc that helps for troubleshooting. You should see your block device inside /sys/block if it has been detected properly.
38
39 Zac
40 --
41 gentoo-catalyst@g.o mailing list

Replies

Subject Author
[gentoo-catalyst] Re: Re: minimal install on usb key Christophe PEREZ <christophe.perez@×××××××.com>