LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 10-19-2011, 04:51 AM   #1
galapogos
Member
 
Registered: May 2008
Posts: 227

Rep: Reputation: 30
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?

Thanks.
 
Old 10-19-2011, 05:40 AM   #2
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
Quote:
Originally Posted by galapogos View Post
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?
 
Old 10-19-2011, 08:02 AM   #3
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
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.
 
Old 10-19-2011, 11:38 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <LinGeneral> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-19-2011, 08:59 PM   #5
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
Thanks.

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.
 
Old 10-20-2011, 09:35 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I might be tempted to suggest you look at Suse Studio to make your own distro.
 
Old 10-21-2011, 03:20 AM   #7
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
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).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installation of Linux on a SATA drive newrick Linux - Software 7 03-11-2010 05:12 PM
kernel accessing pata cd rom drive instead of sata OS hard drive for filesystem elaps2007 Linux - Kernel 0 03-19-2008 09:39 AM
SATA CD-ROM installation atheist Debian 3 09-23-2007 12:32 PM
I can't acces a Mandrake Linux Installation disc in your CD-ROM drive rpigna Mandriva 5 07-03-2004 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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