LinuxQuestions.org
Visit Jeremy's Blog.
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 11-17-2006, 05:30 PM   #1
jmille34
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, 08:53 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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, 02:43 PM   #3
Fluxx
Member
 
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:

http://www.linuxquestions.org/questi...light=usb+boot

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

Fluxx.
 
  


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


All times are GMT -5. The time now is 05:03 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