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 07-11-2012, 05:05 AM   #1
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Rep: Reputation: 49
A couple of noob-ish questions


Hi

I want to switch to the generic kernel from huge and I'd like to confirm my understanding of what to do before I do so.

grub2 is currently the bootloader (dual boot with Debian) on my MBR but don't want to have to boot to Debian every time I make a change on slackware.

So;

Is it OK to run liloconfig from a running Slackware installation? Since it'll just install LILO to the MBR, I guess it is.

For the switch to the generic kernel, I ran mkinitrd_command_generator.sh to generate a mkinitrd command.

If I generate the initrd first then install LILO, I should have a generic kernel ready to boot and can safely reboot?

Any problems with that or have I missed something?

Thanks in advance
 
Old 07-11-2012, 05:12 AM   #2
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 435

Rep: Reputation: Disabled
liloconfig sets up /etc/lilo.conf too, but if you have it set up the way you want then all you have to do is run "lilo." Don't forget to make sure that the /etc/lilo.conf file also has the Debian installation in there too so you can boot to that as well.

Yes it's fine to run lilo(config) from a Slackware installation. Although I can't say for sure what errors (if any) you'll run into with GRUB2. Also, make sure that the generic kernel exists in your /boot. Otherwise if there is no generic kernel, obviously you won't be able to boot the generic kernel. If it's not there, just use slackpkg to install the generic kernel.

If you don't create the initrd and run lilo, then lilo can't pick up the initrd anyways since it doesn't exist. Create the initrd first, then edit /etc/lilo.conf to pick it up and run "lilo" to apply the changes.

I also like to use "mkinitrd_command_generator.sh -i" for interactive mode (that's just a personal preference). Maybe you'll like it too? I don't know.
 
1 members found this post helpful.
Old 07-11-2012, 05:31 AM   #3
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Original Poster
Rep: Reputation: 49
Thanks for the reply.

Slackpkg tells me that kernel-generic is installed. I'd expect that to be vmlinuz-generic-x in /boot - is that the case?

Thanks again.
 
Old 07-11-2012, 06:20 AM   #4
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.1
Posts: 467

Rep: Reputation: 87
You can either boot from GRUB2 or LILO. You cannot boot from both. As far as I know booting into more than one Linux installation with LILO is nearly (if not totally) impossible.

If you would like to stick to GRUB2 (on Debian) than forget LILO - you don't need it. You can always try to chroot into your Debian installation and update-grub from there.

GRUB2 is available from slackbuilds.org for Slackware.

If you follow a default installation then Slackware comes also with the generic kernel, which is the one you indicated. You just need the initrd.
 
1 members found this post helpful.
Old 07-11-2012, 08:48 AM   #5
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 324

Original Poster
Rep: Reputation: 49
I installed LILO and all went well with the initrd.

Thanks for the help/comments both of you, much appreciated.
 
Old 07-11-2012, 10:48 AM   #6
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,244

Rep: Reputation: 621Reputation: 621Reputation: 621Reputation: 621Reputation: 621Reputation: 621
Quote:
Originally Posted by ChrisAbela View Post
You can either boot from GRUB2 or LILO. You cannot boot from both. As far as I know booting into more than one Linux installation with LILO is nearly (if not totally) impossible.
That is absolute garbage. First, it is my advice in these situations to just install lilo to the superblock of Slackware's root partition instead of to the MBR and then chainload from GRUB2. This way GRUB2 manages Debian's booting and LILO manages Slackware's. Second, LILO can boot multiple Linux installations just fine if desired -- but the other /boot partition (or / if /boot is on the same partition) must be mounted on the system containing LILO. Then locations to the mount point are specified in lilo.conf instead of what they would be upon booting. Each kernel stanza in LILO can have its own append line if needed and the root partition can be specified via "root=". If you're using btrfs or your system has UEFI then LILO may have legitimate difficulties.
 
  


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
A couple of noob questions... vik Slackware 5 04-22-2008 06:45 PM
A Couple Of Questions From A Noob... tharse Linux - Newbie 3 06-25-2006 04:23 AM
A Couple Of Questions From A Noob... tharse Linux - Newbie 1 06-25-2006 03:30 AM
A couple of really really noob questions (about FC4 and some in general) Navyblue Linux - Newbie 3 07-20-2005 02:13 AM
couple questions from a NOOB! The Brain Linux - Newbie 5 10-12-2003 07:45 AM


All times are GMT -5. The time now is 12:03 PM.

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