Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
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.
I installed Slackware 12.0 with the default 2.6.21-SMP Kernel on my USB hard drive. It starts loading the kernel and then I get a Kernel Panic (8,3). It can't load partition 3 of my USB drive as root.
I found a thread for a similar problem using Slackware 10.1. It says to recompile the Kernel including certain modules:
Then it goes on with other instructions. Now I've never had any good luck compiling a kernel, and those instructions are for 2.4.29(? if memory serves me) and I'm using 2.6. So is there anything I should do different?
I say try making an initrd instead, it'll be easier, especially if you don't have luck with compiling kernels. Looks like you'll need the right USB related modules to allow it to boot from a USB HDD. Those are approximately the ones, but try the initrd first.
Make an initrd? .... Initial RamDisk? How do I do that?
As stated you need to make a initrd!
The easiest way would be to use the Slackware install cd1 to boot the system as if you were going to install.
After you get to the login then from the cli (command line);
Code:
~#mkdir /slacktemp #temporary mount point
~#mount /dev/your_device /slacktemp #this is the device you
#installed to
~#chroot /slacktemp #change to yours
~#cd /boot #you can now create your
#initrd via instruction in
#README.initrd
~#cd /slacktemp/etc #change to directory with lilo.conf
~#vi lilo.conf #edit lilo.conf,add the
#initrd = /boot/initrd.gz
#to proper stanza then;
~#lilo -v -t -b /dev/your_device #sda, hda this will only test
~#lilo -v -b /dev/your_device #this will write MBR to your_device
If you create the initrd with the proper modules then you should now be able to boot your system.
There is probably one additional step, which is to write a script to re-scan the usb bus
or panics will continue for lack of an init.
If the initrd and proper modules are setup then the scan should be handled via the boot session. If the udev is working then the scan should be done by the device mapper.
I installed Slackware64-current as of 4.4.2018 with vmlinuz-huge-4.14.32
After kernel panic, I've created initrd.gz e.t.c.
Boot device is /dev/sdb1, that might change in other USB port.
/boot contains initrd.gz and initrd-tree with subdirectories
fstab line to mount root:
Code:
PARTUUID="b46f731b-01" / ext4 defaults 1 1
important lilo.conf lines:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sdb
# Append any additional kernel parameters:
append=" "
prompt
timeout = 50
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd=/boot/initrd.gz
root = /dev/sdb1
label = Slack_cur
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
The system boots initram and stops after loading modules from initram and prompt
Prompt is linux default, env returns only a few lines (mybe 5), no path.. Looks that boot did not finished - no profile loaded. I can write commands, but system can not find any to execute.
Looks like you've got most of the steps done, but your lilo.conf still needs some tweaking. Remove the root= option in your Slack_cur stanza (since it was included in your initrd), and you'll need to update the boot= option in the global config to point to the persistent name of the device. See this for more details (and check out the ID section for an explanation of the drive ID.
BTW, it would've been better for you to create a new thread rather than revive a decade plus old thread.
Last edited by bassmadrigal; 04-11-2018 at 12:10 PM.
Reason: Fixed link
Looks like you've got most of the steps done, but your lilo.conf still needs some tweaking. Remove the root= option in your Slack_cur stanza (since it was included in your initrd), and you'll need to update the boot= option in the global config to point to the persistent name of the device. See this for more details (and check out the [url=https://docs.slackware.com/howtos:slackware_admin:how_to_configure_fstab_and_lilo.conf_with_persistent_naming#id]ID section['/url] for an explanation of the drive ID.
BTW, it would've been better for you to create a new thread rather than revive a decade plus old thread.
Thank you, will try it.
Was me yesterday, ask you to reply on the page you mentioned.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.