LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-03-2012, 06:39 PM   #1
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 227

Rep: Reputation: 18
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
at which point it halts. (ServerRoot being my mapped encrypted partition)

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.

Last edited by spudgunner; 07-03-2012 at 09:33 PM.
 
Old 07-03-2012, 09:06 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,453

Rep: Reputation: Disabled
Have you read Didier Spaier's how-to?

Brian
 
Old 07-03-2012, 09:25 PM   #3
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 227

Original Poster
Rep: Reputation: 18
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.
 
Old 07-04-2012, 08:52 PM   #4
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 227

Original Poster
Rep: Reputation: 18
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
I changed it to 100 because why not, re-ran mkinitrd without the -c (clean option) and bingo, got a (somewhat long) delay!

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.
 
Old 07-05-2012, 07:38 AM   #5
spudgunner
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 227

Original Poster
Rep: Reputation: 18
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Slackware from USB Drive Cyhaxor Linux - Newbie 4 03-23-2009 09:45 PM
Trouble Installing Fedora 8 onto USB thumb drive ed_homeLinux Linux - General 6 12-17-2007 10:45 PM
Installing Slackware froma usb drive blacklabelrum Linux - Software 3 12-14-2005 05:53 AM
Installing slackware from a usb flash drive? blacklabelrum Linux - Software 1 12-13-2005 12:42 AM
Installing Slackware with USB Floppy Drive ming0 Slackware 14 01-21-2004 12:15 AM


All times are GMT -5. The time now is 12:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration