Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-15-2013, 08:38 AM   #1
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware, Mint, & random selection for VM
Posts: 244

Rep: Reputation: 28
How to manually boot kernel using Slackware disk

Hello and good day folks. I've successfully compiled a new kernel from source (3.8.2) and I am using Slackware 14. This is an EFI laptop so I'm not using lilo nor any other boot loader at the moment. I've been manually booting as such:

huge.s root=/dev/sda7 rdinit= ro
What do I need to type instead of huge.s in order to boot 3.8.2?
Old 03-15-2013, 10:15 AM   #2
Senior Member
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,226

Rep: Reputation: 233Reputation: 233Reputation: 233

What do I need to type instead of huge.s in order to boot 3.8.2?
After compiling the new kernel should be placed at /boot directory and modify the links accordingly. Remove the old kernel and old links to that old kernel. Then put your new kernel whatever name you called it then create a link to it, for example you can use "vmlinuz" as your link to the new kernel:

cd /boot
ln -s mynewkernel-3.8.2-huge vmlinuz
You can then boot like
vmlinuz root=/dev/sda7 rdinit=ro
just the same. You can even use the same link name "huge.s" instead of "vmlinuz" and speak the same sentence at boot.

ln -s mynewkernel-3.8.2-huge huge.s
then boot as usual. Note that there are usually other links that you need to recreate if needed, the '' and 'config...'.

Hope that helps. Good luck.

Last edited by malekmustaq; 03-15-2013 at 10:19 AM.
Old 03-15-2013, 11:13 AM   #3
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,821
Blog Entries: 13

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
Moderator Response

Moved: This thread is more suitable in <Slackware> and has been moved accordingly to help your thread/question get the exposure it deserves.
Old 03-15-2013, 02:55 PM   #4
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 5,378

Rep: Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495Reputation: 1495
You will have to modify the install disk to do that, as the kernels used by it are included in it.

You will need a local mirror of Slackware 14. From now I will refer to the root of that mirror as /.

In /isolinux you'll fin a file named isolinux.cfg.

When you type:
huge.s root=/dev/sda7 rdinit= ro
the isolinux program looks in that file for a line with label=huge.s. The two indented lines after that one indicate where to find the kernel and what to append to the boot command line, to which it add what you typed after the label. In your case the kernel to use is /kernels/huge.s/bzImage (first line after "label huge.s") and appends "root=/dev/sda7 rdinit= ro" to the append command of the next line which becomes:
append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=hugesmp.s root=/dev/sda7 rdinit= ro
So you could append three lines using the same template but with your own settings to /isolinux/isolinx.cfg. Of course put your kernel and initrd.img files at a location where you will refer to on the line beginning with 'kernel'.

Then make an ISO and a bootable disk as told in /isolinux/README.TXT

PS Actually you don't need to make a full install disk, only the /isolinux directory and the kernel + initd.img (that you could put directly in /isolinux) are needed , so no need for full local mirror.

Last edited by Didier Spaier; 03-15-2013 at 03:14 PM.
Old 03-16-2013, 06:00 PM   #5
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 567

Rep: Reputation: 155Reputation: 155
Instead of burning a CD, just make a USB boot image with your custom boot kernel by customizing /var/log/setup/setup.80.make-bootdisk

Then again, why not expend the same effort and use elilo because then you can just add a new kernel without making a new boot disk?
Old 03-18-2013, 08:23 PM   #6
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware, Mint, & random selection for VM
Posts: 244

Original Poster
Rep: Reputation: 28
Thank you all for the replies, haven't quite got around to it yet but gonna attempt to tackle it in the next day or so. Maybe I will give elilo a try but I think there were a few disadvantages that steered me away in the 1st place, but I can't quite remember what it was. That's why I was just manually booting until I could find the best solution for me, whether it be rEFInd, grub2, or the builtin EFI boot manager doohicky. I'll keep you posted on my endeavors. Until then happy Slacking Slackers!


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
How to manually add SATA driver manually when kernel boot? aixilin Linux - Kernel 6 08-15-2008 10:36 AM
Ide Drive Not Seen By The Kernel With Sata Disk As Boot Disk xasanchez Linux - Newbie 3 12-27-2007 12:18 PM
Manually Created Devices Disappear - Slackware 10 Kernel 2.6.9 rovitotv Slackware 1 01-01-2005 04:53 PM
Fresh Slackware 9.1 installation requires boot disk to boot smithtodda Slackware - Installation 7 06-23-2004 09:06 PM

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration