Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-03-2009, 08:13 PM
|
#1
|
LQ Newbie
Registered: Aug 2008
Posts: 19
Rep:
|
installed slackware 12.2 onto a 4gig usb flashdrive. boots then stops
i took my hard drives out, and stuck a 4gig usb flash. Booted the cd. and fdisk the drive. cfdisk it to linux partition. then ran setup. everything went find. during liloconfig, added the mbr to /dev/sda then added sda1 for root.
it booted to the splash screen and then loaded "linux" but it stop at at kernel panic: Cannot open root device "sda1" or unknown-block(0,0). i guess its a renaming thing but i can't figure out how to edit lilo to get it to open the root device. anyone try this or have a suggestion "thanks"
|
|
|
01-03-2009, 10:24 PM
|
#2
|
Member
Registered: Sep 2008
Location: Paraguay
Distribution: Slackware
Posts: 31
Rep:
|
You may have to pass 'rootwait' as a kernel parameter, I had a similar problem when I installed a distro to my usb stick. If I'm correct, the kernel tries to boot from /dev/sdx, which is on an usb disk, but the kernel hasn't probed the usb subsystem yet, so with that option the kernel will wait for the root partition and then mount it.
From the kernel documentation:
Quote:
rootwait [KNL] Wait (indefinitely) for root device to show up.
|
|
|
|
01-03-2009, 11:55 PM
|
#3
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641
Rep:
|
In addition to the advise above, you might also want to check that your kernel either has the USB subsystem compiled in, or that you have the correct kernel modules on an initrd for the sda1 to be found...
|
|
|
01-04-2009, 01:34 AM
|
#4
|
LQ Newbie
Registered: Oct 2008
Posts: 28
Rep:
|
This is how I get slack to boot off the USB, though if the kernel wait option will probably work, and makes more sense...
Create a initrd.gz file with mkinitrd. Remember to add the fstab file in
/boot/initrd-tree/etc/fstab
and point /dev/sda1 ( your partition ) to mount on /mnt.
You may also need to create block devices in
/boot/initrd-tree/dev
as I had to, but in some cases it is created automatically.
mknod /boot/initrd-tree/dev/sda b 8 0
mknod /boot/initrd-tree/dev/sda1 b 8 1
Change the "wait-for-root" file to something longer than 1.
echo 10 > /boot/initrd-tree/wait-for-root
Once the initrd.gz file has been created, add a line to your lilo.conf file for the initrd.
...
image = /boot/bzImage-2.6.28
root = /dev/sda1
label = 2.6.28
initrd = /boot/initrd.gz #Add this line
read-only
...
and run lilo and reboot.
Remember to add the "compact" option in lilo.conf to speed up booting off the USB device.
|
|
|
01-04-2009, 04:53 AM
|
#5
|
LQ Newbie
Registered: Oct 2008
Posts: 28
Rep:
|
I've tried appending "rootwait". I was unable to get it to work. I found another person that stated that they used "rootwait" and "scsi_mod.scan=1" in order to get another distribution to load off a USB drive. I also tried that, as "rootwait" by itself would sit there, waiting for a device that was never going to be detected. Unfortunately neither has worked for me and I'm still using initrd to mount the root device.
|
|
|
All times are GMT -5. The time now is 03:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|