[SOLVED] Slackware 13 on USB, kernel panic
I've always wanted to install Linux on a small USB drive and have it boot on any computer anywhere. I thought I'd give it try with Slackware, I ran through the installation process a couple of times to see that I got it right, and continued on to installing on my USB drive.
I've got a 4GB sd card + reader formatted like so: sdb1: 256M -- swap sdb2: 3.8G -- ext4 I installed a barebones Slackware 13.1 system to sdb2 (of course), downloaded and compiled grub using the LFS instructions (Never used LILO, and I don't intend on doing so now.): Code:
# ./configure --prefix=/usr \ Code:
VFS: Cannot open root device "sdb2" or unknown-block (0,0) Here's what my /boot/grub/grub.cfg looks like: http://pastebin.com/g3SqDcPs Any ideas? Because I'm out of my own, I've been messing around with it all afternoon with no avail. Maybe I need an initrd? (NOTE: I'm looking to create a persistent filesystem, not a live one. Otherwise I'd just use the Slackware cd and UNetbootin) |
You need to use the huge kernel or use an initrd.
Adam |
I made an initrd using 'mkinitrd -c -k 2.6.33.4 -m ext4' and added 'initrd /boot/initrd.gz' to each menuentry in grub's configuration file. Rebooted, and now I've got a new error:
Code:
/boot/initrd.gz: loading kernel modules from initrd image e, Forgot to mention that fstab is empty aside from the proc entry. |
Ummm... Is it possible to even get a linux installation to boot if /etc/fstab doesn't have an entry for / ?
Adam |
I actually tried that once, and well, nope. Anyway, what entries should fstab have, can I just copy the fstab I have on sdb2 over to the initrd tree?
|
Some guy on #slackware said to take a look at '/usr/share/mkinitrd/mkinitrd_command_generator.sh'. I gave it a go, and I gave me this 'mkinitrd -c -k 2.6.33.4 -f ext4 -r /dev/sdb2 -m jbd2:mbcahe:ext4 -o /boot/initrd.gz' which generated a damn fine initrd. I don't get any more crap about /mnt not being in fstab. Now I've got a new set of errors, apparently, /dev/sdb1 and 2 don't exist. I'll try and find a way to "create" them, anyone know how that's done (pretty sure udev takes care of it)?
(NOTE: /dev is populated with devices, including sda1-3.) e, Google says I need ehci_hcd and uhci_hcd, how do I add them to the initrd? ee, Nevermind that, all I had to was add them to '-m jbd2:mbcahe:ext4'. I still get nothing though, dmesg says the drive is recognized, but it doesn't show up under dev. eee, Got it working. Only me and my Google-fu. I found I needed to run the following: Code:
# make the initrd with the usb modules |
Thanks
Quote:
|
All times are GMT -5. The time now is 09:13 AM. |