LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to replace the initrd and vmliuz in the capser folder? (https://www.linuxquestions.org/questions/ubuntu-63/how-to-replace-the-initrd-and-vmliuz-in-the-capser-folder-4175640855/)

xlu2000 10-21-2018 09:29 PM

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!

mrmazda 10-21-2018 11:37 PM

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.

xlu2000 10-23-2018 04:22 AM

The capser folder is only in the livecd. An installed system does no longer have it.

yancek 10-23-2018 08:15 AM

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.


All times are GMT -5. The time now is 01:17 PM.