Migrating a Linux installation from SATA drive to CD-ROM
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Migrating a Linux installation from SATA drive to CD-ROM
Hi,
I have a Linux installation that's installed on a SATA drive that works sort of like a boot disk, in that it boots up a customized Linux kernel on a large variety of x86 PCs and runs a specific program once booted up. The Linux installation is text based and the file system is ext2.
Currently I'm using LILO boot loader as its simple and serves its purpose.
However, I need to port this boot disk over to a CD-ROM. I'm not sure what I need to do for this migration to work, but I suppose I would at least need to migrate from LILO to something like ISOLINUX?
How would I go about such a migration? Would it actually be easier to create a generic Live-CD and add in my boot up program and associated drivers required that are required? If so, how?
Hi,
How would I go about such a migration? Would it actually be easier to create a generic Live-CD and add in my boot up program and associated drivers required that are required? If so, how?
Thanks.
If possible that seems like it would be the easiest way.
The other method that might work is using dd.
Without knowing exactly where this "boot disk" resides it's difficult to be explicit.
Is this program somewhere on your root partition?
Yes currently it exists as /dev/sda1. I don't think a dd to an image file and then burning the image to the CD-ROM would work right? Was LILO ever meant for ISO9660? I also have to build in ISO9660 support in the kernel as it now only supports ext2.
Anyway, my intention is to have a very lightweight, small, LiveCD that runs without initrd (all required device drivers built into the kernel, all unnecessary kernel options disabled) and doesn't have a GUI (boots either directly to the program, or into a busybox shell).
My current SATA drive image already does all of this, but I'm wondering if it's easier to migrate from it to a LiveCD, or create a LiveCD from scratch and copy the program over and also install the necessary libraries required for the program.
The program resides in the root partition /dev/sda1.
I would like to keep to my own custom build as I do not want the overhead of a specific distro. I need my entire image to be very small(<64MB), run from a read-only root partition, boot up from the majority of x86 systems, and extremely quick to boot(<5s).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.