Trouble installing Slackware 13.37 x64 to a USB drive
I'm attempting to install Slackware to a USB to use in a home server. I've encrypted the root partition (separate /boot, unencrypted), built my initrd.gz using the mkinitrd_command_generator.sh script provided by AlienBOB, and tried my best at configuring Lilo, but it failing. From what I can tell, all the modules start loading as normal, it panics:
Code:
mount: mounting ServerRoot on /mnt failed: no such file or directory After this 7 or 8 more kernel messages appear and appears as though it finishes initializing all the USB stuff and correctly stating that it has found sda1 and sda2 (/boot and / partition, respectively). Because I don't know how to have Slackware copy all the boot messages and I'm too lazy to type, here's a picture of what I'm getting. So it looks to be a timing issue to me since sda is being correctly read, just after the kernel tries to mount it. After searching a little bit, I tried using the rootdelay=[some number] in my lilo.conf, both in the global append section and appending to a particular entry, but it doesn't appear to affect the boot process at all (last number I tried was 500). Any suggestions would be welcome. Edit for a little clarity: regardless of what number I set for "rootdelay=", the system takes the same time to boot. |
|
Interesting article, I never knew that you could "test" lilo, that would have definitely saved me some time. One thing I noticed from that is that "rootdelay=" is supposed to be in seconds (which is what I thought, so that is confirmed) but my system seems to not be waiting according to that. On my system, a delay of 500 takes the same amount of time as if it were set to 10.
|
So I reinstalled Slackware to the thumb drive without encryption (to remove some variables) and tried it out again, without luck. After some more internet searches, I found a solution that someone used for GRUB where they added in an extra script with a sleep command and it worked out for them, and it got me thinking. So I rebooted with the install media, mounted my USB drive and started poking around in /boot. Found a file called "wait-for-root' under /boot/initrd-tree/, the contents of this file are below:
Code:
1 So I'm calling this problem 99% solved because I'm not sure how it will act with encryption. I'll have that tested by the end of the weekend. |
Update: problem is basically solved now, although apparently I'm missing the module needed to use my USB keyboard to input the password for the encrypted drive (that should be a little easier to solve).
A note to anyone else that may have a problem similar to this in the future: If rootdeley has no effect (or rootdelay doesn't work), use mkinitrd with the -w [time in seconds] option, works like a charm! |
All times are GMT -5. The time now is 12:31 PM. |