LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-24-2017, 05:26 AM   #1
amandus
Member
 
Registered: Nov 2011
Location: Sweden
Distribution: Slackware-current and Arch Linux
Posts: 56

Rep: Reputation: Disabled
Kernel


I boot vmlinuz-huge, but I have generic too.

My question are can I remove everything except *huge files?

slackware 14.2
 
Old 11-24-2017, 06:38 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
Why? They don't take up much space.
 
2 members found this post helpful.
Old 11-24-2017, 07:06 AM   #3
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,236

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Just use the command in root 'removepkg kernel-generic'
 
2 members found this post helpful.
Old 11-24-2017, 09:34 AM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,236

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Just a precision in case of your boot is on vmlinuz,

/boot/vmlinuz is symbolic link, if is linked on kernel-generic-4.4.14

to correct that, you have to recreate your symbolic link on kernel-huge-4.4.14

Last edited by gmgf; 11-24-2017 at 12:58 PM.
 
Old 11-24-2017, 12:42 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
By default, vmlinuz is a link to the huge kernel, not the generic.
 
1 members found this post helpful.
Old 11-24-2017, 12:51 PM   #6
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,236

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
It can happen if you have installed or updated generic after .
but you have right in general, i have modified my post for more for precision thanks

Last edited by gmgf; 11-24-2017 at 01:00 PM.
 
Old 11-24-2017, 03:00 PM   #7
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by brianL View Post
By default, vmlinuz is a link to the huge kernel, not the generic.
It depends.

By default /boot/vmlinuz is a symlink to kernel image from last installed kernel package (instal/doinst.sh makes this symlink).
Packages install or upgrade are in alphabetical order, kernel-huge goes after kernel-generic if both are installed.
But if you upgrade only kernel-generic /boot/vmlinuz will be generic.
Or if you rerun doinst.sh from kernel-generic package, for ex. with
Code:
# ( cd / ; var/log/scripts/kernel-generic-* )
Since 14.2 there are new symlinks /boot/vmlinuz-generic and /boot/vmlinuz-huge (and with -smp on 32 bit). They significantly helps to configure boot loader, for ex.
Code:
image = /boot/vmlinuz-generic    # vmlinuz-generic-smp for 32 bit smp
  initrd = /boot/initrd.gz
  root = /dev/sda2
  label = Linux
  read-only
image = /boot/vmlinuz-huge    # vmlinuz-huge-smp for 32 bit smp
  root = /dev/sda2
  label = Rescue
  read-only

Last edited by bormant; 11-24-2017 at 03:07 PM.
 
2 members found this post helpful.
Old 11-24-2017, 03:23 PM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled
By "by default" I meant after installation.
Code:
lrwxrwxrwx  1 root root      19 Oct 11 00:09 vmlinuz -> vmlinuz-huge-4.4.88
I always leave that link as it is, after creating an initrd to use with the generic kernel.
Relevant bits of my /etc/lilo.conf:
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-4.4.88
  initrd = /boot/initrd.gz
  root = /dev/sda1
  label = Linux_G
  read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  label = Linux_H
  read-only
# Linux bootable partition config ends
 
Old 11-24-2017, 07:47 PM   #9
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
@brianL
as for me, vmlinuz-huge looks more safe than vmlunuz, say after reinstall kernel-generic package or upgrade only kernel-generic package.

Last edited by bormant; 11-24-2017 at 07:48 PM.
 
Old 11-25-2017, 06:12 AM   #10
amandus
Member
 
Registered: Nov 2011
Location: Sweden
Distribution: Slackware-current and Arch Linux
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thank you all for your replies
 
  


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
LXer: Linux Kernel 3.19 Has Reached To End With Last Release Kernel 3.19.8, Install/Upgrade Kernel 3 LXer Syndicated Linux News 0 05-15-2015 12:03 AM
Unable to build kernel RPM with 'custom name'. (need not kernel but kernel-something) RattleSn@ke Linux - Kernel 1 01-12-2011 06:30 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM

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

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