LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-2004, 07:43 PM   #1
Kayaker
LQ Newbie
 
Registered: Mar 2003
Posts: 21

Rep: Reputation: 15
booting s10 from usb hd, anybody?


hi,

happy july 4th! land of the free and the brave - that's why we use slackware, isn't it!

let's get it started before firework runs out!

i pulled the hard disk out and hooked up the cd rom and a portable usb hard disk (western digital 80 g) to a desktop pc and booted the machine up with s10 iso cd. why? i plan to get s10 installed on the usb hd and then move the usb hd to a vpr matrix laptop which supports booting from usb hd and i will be able to boot the laptop into s10 (with usb hd as the 1st booting hd) or boot into m$ XP as shipped.

it all goes well, s10 has no problem in finding the usb hd, cfdisk - /sda1 for root (/) and a bunch partitions, then setup and everything works.

time to move the hd to the laptop and F2 into bios setting to set boot from the usb hd - bios identifies the usb hd correctly. even get as fas as bringing up the lovely linux penguin log. s10 find the REGULAR hd BUT NOT the usb hd. it goes on to display
kenel panic unable to mount root fs ...

try again at boot prompt using
"Linux root=/dev/sda1"
get the same error

recompile the kernel with a bunch of try-and-error and end up the same error.

i suspect all is fine - even the out-of box s10 installation and the problem PROBABLY is that s10 DOES NOT reconganize usb hd at boot - maybe it will take a while to probe (is SLEEP a solution) or has to LOAD some modules before hand - ie before the os kicks in (catch 22, isn't it? os has to be up running before it can load modules - right?, but os is on the usb hd that requires modules to be loaded first). since i really don't know how os and loader work there is a good chance that i am all wrong. nevertheless could you tell me what to do to get s10 boot from an usb hd.

thank you very much!

kayaker
 
Old 07-03-2004, 11:11 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You should compile the drivers directly into the kernel and not as modules, i guess that should do the trick.
 
Old 07-04-2004, 02:33 PM   #3
Kayaker
LQ Newbie
 
Registered: Mar 2003
Posts: 21

Original Poster
Rep: Reputation: 15
thanks.

u r probably right. once the usb support is compiled into kernel 2.6 and after lilo lilo.conf, the entire booting process seems to move a step forward! now the system hangs at probing the usb hd and since the usb hd disk did not get reconganized in time before root=/dev/sda1 was executed so the booting was never completed.

is there anything i can put in lilo.conf (or anthing else i can do) to make sure the usb hd is reconganized before root=/dev/sda1 was executed?

it looks like i am getting very close to the door of a truly portable slackware installation - not the live CD nor the "mini" one. many thanks in advance.

kayaker
 
Old 07-05-2004, 12:07 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Sounds like you still didn't get all the usb support compiled in. Have you tried using the ZipSlack kernel? It has support for usb and scsi compiled in and may just work for you.
You could also use a RUNT Linux(Slackware9.1) bootdisk to get into your machine.
 
Old 07-05-2004, 09:19 PM   #5
Kayaker
LQ Newbie
 
Registered: Mar 2003
Posts: 21

Original Poster
Rep: Reputation: 15
you might be right.

i have enabled all the options for usb storage and i still have the same problem. there must be some other modules i missed out.

what puzzles me is the initrd.img from s10 is ABLE to detect the usb hd and allows me to mount the disk. that leads me thinking that the problem will be solved if there is a way to find out what was "compiled" into s10's initrd.img. how do i do that?

kayaker

ps, the laptop actually boots up with initrd.img but then s10 goes on into installing the system. perhaps another way to boot from the usb hd is to build an initrd.img that is CAPABLE of reconganizing the usb hd and loading the root=/dev/sda1. although i still need to know what is in s10's initrd.img - please help.
 
Old 07-06-2004, 01:40 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
The initrd is only the file system.
USB support can be loaded as a module, but that won't work if you want to boot from USB or mount your root file system on USB. The USB support must be compiled INTO the kernel and not as a module.
You also need to compile in SCSI support and initial usbfs support, uhci, ohci
The RUNT bootdisk does exactly what you suggest. it mounts an initrd which loads the modules for USB and continues functioning as a regular Slack boot disk. But REAL SLackware bootdisks do NOT do this.
Have you tried the ZipSlack kernel?
 
Old 07-06-2004, 02:01 AM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Some mentioned RUNT so i went to see what i was. I found that it has a very good explanation on how to make your own initrd so you can load the USB device and the lilo can boot from it:
http://www.ncsu.edu/resnet/runt/source.html
It's not hard to make and i'm sure it'll work
 
Old 07-06-2004, 05:14 AM   #8
malo_umoran
Member
 
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
i have a laptop without floppy or cdrom (ibm x31) ... and i had to install everything over an usb drive.

this is how i did it: http://www.php.co.ba/X31/slackkernel.html

M.
 
Old 07-07-2004, 11:37 PM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
I've just realized that SystemRescue CD allows you to boot from a usb hd, the link to their homepage: http://www.sysresccd.org/
 
  


Reply



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
USB Controller usb-uhci hangs while booting taptamus Linux - Software 2 10-28-2005 03:02 AM
booting from usb poiuytrewq Linux - General 5 12-29-2004 03:16 AM
Canon Powershot S10: remote capture linux nyk Linux - Hardware 0 10-25-2004 11:39 AM
Initializing USB Controller (usb-uhci) booting mandy 9.2 austinjreid Mandriva 1 11-10-2003 12:55 PM
Booting from a USB HDD - HOW DO I m.westwood-hill Linux - General 2 05-01-2003 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration