Lucas C. Villa Real wrote: > On Sat, Aug 30, 2008 at 7:06 PM, Jonatan Liljedahl <[EMAIL PROTECTED]> wrote: >> Jonatan Liljedahl wrote: >>> Jonatan Liljedahl wrote: >>>> I'm trying to install GoboLinux onto a USB stick (not LiveCD on USB, but >>>> a real install). The installation goes fine, but the system kernel >>>> panics at boot. >>>> It complains that it can't mount the root fs. Right after that the >>>> console outputs info about found usb device. May it be that usb-storage >>>> is a module so that the rootfs on the stick can't be accessed before the >>>> module has loaded (which of course is impossible since it's on the >>>> rootfs)? (in case I need to replace the kernel) >>> It seems usb-storage and stuff is already compiled in. But google tells >>> me the problem is the delay before detection of usb stick, and that one >>> needs to use an initrd. >>> >>> Just for testing, I created an initramfs with an /init script like this: >>> >>> #!/bin/sh >>> echo "Starting initramfs /init script..." >>> /bin/busybox sh >>> >>> and in GRUB I say: >>> >>> title GoboLinux - Graphic Desktop >>> root (hd0,0) >>> kernel /System/Kernel/Boot/kernel root=/dev/sdb1 vt.default_utf8=0 vga=0 >>> Boot=Graphic >>> initrd /boot/initramfs.img >>> >>> the initramfs is packed with find . | cpio -o -c | gzip -9 > ~/initramfs.img >>> >>> At boot, the initrd is detected and the kernel starts booting, but then >>> it panics at "no file system could mount root". Since the point with >>> initrd is that the kernel should *not* mount the root fs, I guess it's >>> referring to the initramfs image?? Any ideas? >> I tried using old-style cramfs initrd instead of the new cpio initramfs, >> and now it works. Seems the kernel isn't configured for initramfs... >> >> If anyone is interested in an USB bootable "real" install, here's my >> initrd: http://www.bitminds.net/kymatica/uploads/Main/gobo-usb-initrd >> >> The initrd looks for a real_root kernel cmdline option, example grub entry: >> >> title GoboLinux - Graphic Desktop >> root (hd0,0) >> kernel /System/Kernel/Boot/kernel init=/init ramdisk_size=4096 >> root=/dev/ram0 real_root=/dev/sdb1 vt.default_utf8=0 vga=0 Boot=Graphic >> initrd /boot/initrd >> >> and grub/device.map: >> >> (hd0) /dev/sdb >> >> Now I have a real gobo on USB that I can boot on my EeePC while trying >> to create a nice GoboEee distro. :) > > > Oh, this is something we could add into our USB recipe. Carlo, are you > still maintaining the USB Flash scripts?
One problem is that you never really know which device your USB stick is at, a solution is to upgrade busybox in the initrd to one with CONFIG_FEATURE_MOUNT_LABEL=y and set a label on the USB stick. Then let the linuxrc script mount root by label. This is what I have done in my setup, but with an initramfs and the EeePC kernel from www.array.org/ubuntu -- /Jonatan [ http://kymatica.com ] _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel