LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-10-2005, 10:50 AM   #1
bogdanpa
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
booting from USB stick problem


I'm trying to boot from a USB stick and I'm only half way through.
I've put lilo (22.5.9), it loads the kernel, initrd and loads the modules I've put in initrd (uhci, usbcore, usb-storage, ide-scsi) but ends with this error:
"
kmod: failed to exec /sbin/modprobe -s -k block-major-8, errno=2
VFS: Cannot open root device "801" or 08:01
Please append correct "root=" boot option
"

In lilo.conf I have the following:
"
boot = /dev/sda
append="ide=nodma ramdisk_size=4000"
image = /boot/vmlinuz
initrd=/boot/initrd.gz
root = /dev/sda1
label = Linux
"

What could be the problem?

Thanks,
Bogdan
 
Old 08-10-2005, 10:55 AM   #2
bogdanpa
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
mention ...

I forgot to add I used slackware 10.0 witn 2.4.26 kernel.
 
Old 08-10-2005, 11:01 AM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Yeah, booting from USB is not easily done. The usb modules run asynchronously, so booting proceeds without it having detected the usb disk.

Essentially, the kernel loads the usb modules and probes for usb devices in the background. This generally takes from 3-10 seconds, depending on chipsets, CPU speed, etc.

Unfortunately, within (generally) 1-2 seconds of loading those usb modules, you're trying to mount the partition. Because probing for USB devices has not finished, it ends up being unable to find/mount the partition.

Long story short, you either need to hack the kernel usb modules, kernel mounting code, or modify your initrd to delay mounting of the root device.
 
Old 08-10-2005, 12:09 PM   #4
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Why not just compile USB Mass Storage support into the kernel instead of using modules for it in the first place?
 
Old 08-10-2005, 12:50 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Even with it in kernel, it still probes for devices asynchronously. There's a patch out there somewhere where the kernel loops for about 10 seconds, retrying to mount / before giving up.
 
Old 08-10-2005, 02:03 PM   #6
bogdanpa
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
A "sleep 5" in linuxrc solved the problem.

Thank you for your response,
Bogdan
 
Old 08-10-2005, 02:24 PM   #7
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
No problem. Glad you had better success than I ever did. I could do "sleep 30" and it still wouldn't work for some reason I could never figure out. *shrug* I should revisit it sometime.
 
  


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 from a USB Stick ed_homeLinux Linux - Hardware 2 08-11-2005 01:39 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
USB card reader and memory stick PROBLEM Zhenya Suse/Novell 18 02-24-2005 09:19 PM
USB Stick Problem ZooL Linux - Hardware 5 01-25-2005 04:53 AM
USB Memory Stick Problem... mac57 Mandriva 3 01-06-2005 09:48 AM


All times are GMT -5. The time now is 04:33 AM.

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