LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-21-2018, 10:29 PM   #1
xlu2000
Member
 
Registered: Aug 2010
Posts: 56

Rep: Reputation: 1
How to replace the initrd and vmliuz in the capser folder?


I recompiled the kenerl4.16.4 on Ubuntu16.4.05. Is there an easy method to replace the initrd and vmliuz in the capser folder so I can install it to other harddrives as a live Ubuntu16.4.05? Thank you!

Last edited by xlu2000; 10-21-2018 at 11:50 PM.
 
Old 10-22-2018, 12:37 AM   #2
mrmazda
Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 752

Rep: Reputation: 232Reputation: 232Reputation: 232
My 16.0.5 has no capser folder I can find. Where is yours located? What does it have to do with initrd and vmlinuz or a rebuilt kernel? Making initrd and vmlinuz symlinks is a rather simple matter of using the ln command.
 
Old 10-23-2018, 05:22 AM   #3
xlu2000
Member
 
Registered: Aug 2010
Posts: 56

Original Poster
Rep: Reputation: 1
The capser folder is only in the livecd. An installed system does no longer have it.
 
Old 10-23-2018, 09:15 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,106

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
The Live CD is read only and any changes you would make to it would be lost on reboot. You can boot into another Linux system, put the Live CD in the drive, access it from your other Linux system, verify the Live CD is mounted, create another directory for the Live CD and copy the entire contents of the Live CD to the newly created directory and put the new Kernel in Casper. The kernel in Casper is simply name vmlinuz so either change the name of the new kernel to that or go into the grub.cfg file and put the correct kernel name ther. After that, you would need to entirely rebuild the iso in the new directory you copied file to using mkisofs, genisoimage or xorriso. Good luck.
 
  


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
[SOLVED] Find replace on a folder of files using a list of items? ampapa Programming 2 02-07-2016 10:36 AM
How to replace or remove some lines recusively in all files in a folder chinabenjamin66 General 2 01-16-2014 10:15 AM
multi file recursive folder search and replace pellicle Programming 10 08-03-2010 08:12 PM
Is there a way to replace/rebuild a folder? nomb Fedora 8 05-02-2007 12:02 AM
How to move a folder and replace files RAdams Linux - Newbie 2 06-24-2006 01:11 AM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration