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 06-18-2021, 06:19 PM   #1
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Rep: Reputation: 114Reputation: 114
Removing ititrd files


I'm just checking to make sure I don't shoot myself in the foot!

I recently got a new hard drive. Of course I had to reinstall Slackware from an ISO. In doing so I think I must have selected a generic kernel when I normally use the huge.

I have blocked the generic kernel in the /etc/slackpkg/blacklist file so I only get the huge kernel when I update. The generic kernel that was initially loaded was 5.12.10. I'm now on 5.12.12.

When the slackpkg upgrade-all is done loading the packages it tells me that I have more than one kernel. I read the /boot/README.initrd file and it says that you should have an entry initrd=/boot/initrd.gz in the /etc/lilo.conf file. I don't have this entry.

Anyway, I see in the /boot directory the following files:
System.map-generic-5.12.10
config-generic-5.12.10
initrd.gz
vmlinuz-generic-5.12.10

Just to tidy things up is it safe to remove those files?

Thanks.
 
Old 06-18-2021, 11:53 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
Yes, if you use huge kernels, the initrd is not really needed
 
Old 06-19-2021, 12:36 AM   #3
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by NakedRider View Post
Of course I had to reinstall Slackware from an ISO.
Hallo,
In future you might try this nifty method of migrating your currently installed
system to a new HDD. I found it years ago and it's really slick!
(Might need to boot with install disk and chroot into the 'cloned' system and re-install lilo, but it still saves a lot of time depending on how your system is set up).

https://www.linuxjournal.com/magazin...new-hard-drive
 
1 members found this post helpful.
Old 06-19-2021, 10:51 AM   #4
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by willysr View Post
Yes, if you use huge kernels, the initrd is not really needed
Thanks.

I thought that would be the case, just wanted to check.

I removed the files and rebooted. Everything is working fine.

Marking this as solved.
 
Old 07-01-2021, 12:22 PM   #5
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
Quote:
Originally Posted by NakedRider View Post
In doing so I think I must have selected a generic kernel when I normally use the huge.
Just so you know, this wasn't something you chose. Pat made the switch a few years back to default to the generic kernel and autogen an initrd during the installation process. You're of course welcome to switch back to the huge kernel.
 
Old 07-02-2021, 10:20 AM   #6
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by bassmadrigal View Post
Just so you know, this wasn't something you chose. Pat made the switch a few years back to default to the generic kernel and autogen an initrd during the installation process. You're of course welcome to switch back to the huge kernel.
Thanks for that. I thought I wasn't paying enough attention.
 
  


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
manually removing the .vdi files left over after removing VirtualBox adityavpratap Linux - General 2 10-24-2010 12:04 PM
Removing Gnome apps without removing gnome desktop? 449 Linux - Newbie 1 01-29-2008 10:40 PM
Removing KDE apps, without removing kde? Proszbje Debian 2 12-22-2007 08:42 PM
removing text shadows in kde; removing taskbar color gradient webazoid Linux - Software 1 04-11-2006 02:56 AM
Removing files wihtout removing containing Direcotry caps_phisto Linux - General 2 10-07-2004 08:16 AM

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

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