LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-03-2015, 04:04 AM   #1
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
how to run generic kernel?


hi
I'm not a linux guru and just installed slackware 14.0 on virtualbox to learning it. according to Slackbook after installation i tried to change my dfault kernel from huge.smp to generic.smp. I made a initrd.gz using mkinitrd and added the corresponding section to lilo.conf by vi editor and saved it. then I installed lilo again by lilo command and reboot slackware. but it seems that nothing has changed. i dont have any option in boot time for switch between huge or generic kernels. is it normal? how can i find out that my slackware is running by generic kernel?
sorry for my english
 
Old 01-03-2015, 04:33 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Can you post your /etc/lilo.conf (please wrap it in the code tags) and the output of the command 'lilo -v' as root?
 
Old 01-03-2015, 03:56 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
On top of what sycamorex wrote, keep in mind, if you do have everything set up correctly but have too short of a timeout (or removed prompt) that it won't give you the time to select a different kernel.
 
Old 01-05-2015, 11:28 PM   #4
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
I don't know how to copy shell outputs and paste to windows notepad. so I typed it
here is the final section of my lilo.conf
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  initrd = /boot/initrd.gz
  lable = linux
  read-only
# Linux bootable partition config ends
and this is the output of lilo -v command
Code:
Warning: LBA32 addressing assumed
reading boot sector from /dev/sda
using BITMAP secondary loader
Calling map_insert_data
Mapping bitmap file /boot/slack.bmp
Calling map_insert_file

boot image: /boot/vmlinuz -> vmlinuz-huge-smp-3.2.29-smp
Mapping RAM disk /boot/initrd.gz
The initial RAM disk will be loaded in the high memory above 16M.
Added linux + *

writing boot sector.
/boot/boot/.0800 exists - no boot sector backup copy made.
One warning was issued.
 
Old 01-06-2015, 01:28 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,376

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
The user friendly way to make an initrd is:
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
Quote:
/boot/vmlinuz -> vmlinuz-huge-smp-3.2.29-smp
That symlink is wrong for the generic kernel.
Code:
bash-4.3$ ls -l /boot/vmlinuz
lrwxrwxrwx 1 root root 31 Dec 26 11:28 /boot/vmlinuz -> vmlinuz-generic-smp-3.2.29-smp
Quote:
Warning: LBA32 addressing assumed
...
The initial RAM disk will be loaded in the high memory above 16M.
Those warnings can be suppressed by adding to the global section of /etc/lilo.conf
Code:
lba32
large-memory
 
1 members found this post helpful.
Old 01-06-2015, 04:27 PM   #6
_peter
Member
 
Registered: Sep 2014
Location: paris
Distribution: slackware
Posts: 314

Rep: Reputation: Disabled
as allend stated, the root cause of your problem is the symbolic link on the file /boot/vmlinuz inside your /etc/lilo.conf file
you should point (ln -s command) to the generic one vmlinuz-generic-smp-3.2.29-smp not vmlinuz-huge-smp-3.2.29-smp
or add a new *linux bootable partition config* entry in your /etc/lilo.conf file

Quote:
Originally Posted by travis82 View Post
Code:
boot image: /boot/vmlinuz -> vmlinuz-huge-smp-3.2.29-smp
if it helps here is a snippet of my /etc/lilo.conf, don't copy-n-paste blindly

Code:
image = /boot/vmlinuz-generic-smp-3.2.29-smp
  initrd = /boot/initrd.gz
  root = /dev/sda1
  label = generic
  read-only
image = /boot/vmlinuz
  root = /dev/sda1
  label = huge
  read-only
 
1 members found this post helpful.
Old 01-06-2015, 11:43 PM   #7
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
It worked, thanks to allend, I added "lba32" and "large-memory" to global section of lilo.conf and changed "image" line from /boot/vmlinuz to /boot/vmlinuz-generic-smp-3.2.29-smp and then removed all of other kernels from /boot/vmlinuz (is it safe?). now I have some questions, forgive me if they are so amateurish.
1- what is lba32?
2- in my previous installations some beautiful sentences appeared before or after login (I don't remember now) but now it just writes "you have mail" how to enable this feature by default? dose it need to instal special packages?

sorry for my english
 
Old 01-07-2015, 12:41 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,376

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
Quote:
1- what is lba32?
If you have to ask, then you do not need to know, as you have never dealt with the alternative. As you will find in 'man lilo.conf'
Quote:
Use of 'lba32' is recommended on all post-1998 systems. Beginning with LILO version 22, 'lba32' is the default disk addressing scheme
Quote:
2- in my previous installations some beautiful sentences appeared before or after login (I don't remember now) but now it just writes "you have mail" how to enable this feature by default? dose it need to instal special packages?
That sounds like MOTD (message of the day). Many people ask how to turn that off!
Actually, I do not know how you have managed to suppress it.Perhaps search this forum.
 
1 members found this post helpful.
Old 01-07-2015, 01:27 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
Quote:
Originally Posted by travis82 View Post
2- in my previous installations some beautiful sentences appeared before or after login (I don't remember now) but now it just writes "you have mail" how to enable this feature by default? dose it need to instal special packages?
You miss the package bsd-games. It's included in a full installation of Slackware, in the y series of packages. Install it or reinstall it.

Strictly speaking, you also need the package etc, but you should have it else you couldn't use your system.

Last edited by Didier Spaier; 01-07-2015 at 01:45 AM. Reason: Last sentence added.
 
1 members found this post helpful.
  


Reply



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
[SOLVED] setting up initrd / generic kernel in Grub2...can't load generic Ubunoob001 Slackware 12 03-20-2015 07:32 AM
[SOLVED] Kernel Panic with generic kernel on Dell poweredge 2850 Slackware 14.1 Dieselchair Slackware 44 08-22-2014 06:46 PM
kernel-generic and kernel-generic-smp ?? liuyug Slackware - Installation 5 06-01-2014 07:01 PM
is there a way to make a generic command run recursivley? dsollen Linux - Newbie 6 11-17-2009 01:36 PM
2.6.27.5-smp Generic + Nvidia (*.run) Driver = Failure orbit Slackware 6 11-11-2008 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration