Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-17-2006, 04:30 PM   #1
LQ Newbie
Registered: Jul 2005
Location: Tampa
Distribution: lots
Posts: 13

Rep: Reputation: 0
booting 11.0 off external usb drive

I have a dell inspiron 6400 laptop (fwiw).. I booted off the 11.0 dvd using huge26.s and did a full install onto an external usb drive, which linux identified as /dev/sdb. Installation was smooth, but it won't boot now. I don't know if this matters, but I installed lilo to the "root" (root of the usb drive, I presume) instead of MBR (to avoid touching the internal hdd), and I figured I'd just always hit f12 on post if I wanted to use Linux on it.

I know for a fact the laptop will boot from the drive no problem, because the drive I installed onto came out of a windows computer that crashed, and when I stuck it in the usb enclosure, that drive would boot via the usb right up until windows has its inevitable heart attack and blue screen. But it did start to boot, so I know it's possible.

I suspect this has to do with needing a delay, which I have seen is a part of other solutions. If I boot off the dvd again and log in as root, I run "fdisk /dev/sdb" and it says "Unable to open /dev/sdb".. then I hit the up arrow again and press enter again, and it goes into fdisk just fine the 2nd time.. this is 100% reproducible. So that's why I suspect there is some kind of initialization necessary. However, I'm not even sure that it is specifically a time delay, because if I boot off of the dvd, log in as root, let it sit for a minute, and THEN try the fdisk /dev/sdb, it still fails the first time but succeeds the second time. So maybe it doesn't need a delay, it needs some kind of poke, for lack of a better term?

Oh, one other thing I tried that doesn't work is that I can't even boot off the dvd and at the boot: prompt use "huge26.s root=/dev/sdb2 noinitrd ro" because then I get a kernel panic when it tries to mount the drive. It probably needs a poke for that too... Soooooo I dunno.. I'm a little stumped
Old 11-18-2006, 07:53 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,856

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
The default kernel doesn't have the usb mass storage drivers statically compiled so they must be either compiled in or loade with an initrd. even if you compile them into the kernel you need an initrd that conatins a 3-? second sleep. Even if the drivers are present in the kernel they are slow to register and the kernel reaches the point of trying to mount the root partition before the usb drivers have registered, hence the mount root failure. The quickest way to get such an initrd is to use or modify the one from the RUNT Linux boot floppy.
Old 11-18-2006, 01:43 PM   #3
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
Here you can find a short How-To which explains the procedure to install Slackware to an external usb drive and boot from this drive:

It works for me with external usb harddisks and usb sticks.



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
Booting Suse 10.1 From USB External Hard Drive trickster009 Linux - Newbie 2 11-12-2006 02:25 PM
Booting from external USB Hard drive? ArchAngeL13 Linux - Hardware 3 08-11-2006 03:02 PM
Booting with GRUB to external USB drive Mirag3 Linux - Hardware 3 05-18-2006 07:27 AM
booting linux from a usb external drive dr_zayus69 Linux - Hardware 4 08-18-2005 05:57 AM
booting knoppix via external usb cd drive Kirmonkey Linux - Laptop and Netbook 0 04-24-2005 06:07 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:36 AM.

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