LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-13-2014, 01:05 PM   #1
Xerxeslins
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Rep: Reputation: 0
How to know if my kernel is the generic?


First of all, I tried running the standard procedure to have the generic kernel, through:

/usr/share/mkinitrd/mkinitrd_command_generator.sh

But such a message appeared:

ls: can not access /sys/module/*_hcd/drivers/*: File or directory not found

I checked and this directory (drivers) does not actually exist on my computer. The script may not be able to automate the process in all situations.

Then I read the following text to create the initrd file:

http://mirrors.slackware.com/slackwa.../README.initrd

the command I used was:

mkinitrd -c -k 3.10.17 -m ext4 -f ext4 -r /dev/sda4

Finally, I got a file /boot/initrd.

I specified this file into the lilo.conf, according to the instructions. After all that I have created new links for: config, System.map and vmlinuz. I pointed to the generic options. See the output of ls -la | grep generic:


Quote:
xerxeslins @ darkstar: ~ $ ls /boot/ -la | grep generic
lrwxrwxrwx 1 root root 22 Jul 13 14:39 config -> config-generic-3:10:17
-Rw-r - r - 1 root root 137813 Feb 14 19:40 config-generic-3:10:17
lrwxrwxrwx 1 root root 26 Jul 13 14:40 System.map -> System.map-generic-3:10:17
-Rw-r - r - 1 root root 2213142 Feb 14 19:40 System.map-generic-3:10:17
lrwxrwxrwx 1 root root 23 Jul 13 14:39 vmlinuz -> vmlinuz-generic-3:10:17
-Rw-r - r - 1 root root 3450176 Feb 14 19:40 vmlinuz-generic-3:10:17
Of course I updated lilo.

Rebooted the system and everything seems to be ok.

But, since I do not follow the standard procedure, will I really am with the generic kernel? How to know?

Thank you!
 
Old 07-13-2014, 01:30 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Well, as the saying goes, there's more than one way to skin a cat
Here is one:
Code:
zcat /proc/config.gz > running_config
diff running_config /boot/config-generic-3:10:17
If the output of the last command is empty, you are running the generic kernel (assuming you have a 64 bit Slackware).

But wait a minute, something looks weird in your output of ls /boot/ -la | grep generic: I expected e.g. config-generic-3-10-17, not config-generic-3:10:17.

Last edited by Didier Spaier; 07-13-2014 at 01:34 PM.
 
Old 07-13-2014, 01:44 PM   #3
Xerxeslins
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Smile OK! Yes!

Quote:
Originally Posted by Didier Spaier View Post
Well, as the saying goes, there's more than one way to skin a cat
Here is one:
Code:
zcat /proc/config.gz > running_config
diff running_config /boot/config-generic-3:10:17
If the output of the last command is empty, you are running the generic kernel (assuming you have a 64 bit Slackware).

But wait a minute, something looks weird in your output of ls /boot/ -la | grep generic: I expected e.g. config-generic-3-10-17, not config-generic-3:10:17.
command output is empty! Yes! Thank you! (yes, slackware 64 bit)

About "3:10:17" happens that English is not my native language. I used the google translator to create this post, apparently the translator changed some words. Although I have corrected, still some left uncorrected.
 
Old 07-13-2014, 01:45 PM   #4
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Originally Posted by Didier Spaier View Post
But wait a minute, something looks weird in your output of ls /boot/ -la | grep generic: I expected e.g. config-generic-3-10-17, not config-generic-3:10:17.
The file permissions groupings are also odd. Perhaps the listing was retyped instead of copy/paste.

EDIT: OP explained the use of a translator.

Last edited by TracyTiger; 07-13-2014 at 01:49 PM.
 
  


Reply

Tags
generic, kernel, slackware



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
kernel-generic and kernel-generic-smp ?? liuyug Slackware - Installation 5 06-01-2014 07:01 PM
slackware 14.1 3.10.17 kernel question on setting up generic kernel Bertman123 Slackware 22 01-14-2014 09:47 AM
How to compile debian kernel source into a generic kernel? linus72 Debian 3 04-29-2010 08:50 PM
slack 12, switch to generic kernel from huge kernel, using grub? jaguarrh Slackware 8 09-19-2007 06:29 AM

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

All times are GMT -5. The time now is 04:40 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