Re: boot linux from cd and copy files to hd
From: Douglas Mayne (doug_at_SLACKWARE-3.localnet)
Date: Sun, 02 May 2004 09:59:00 -0600
On Sun, 02 May 2004 04:38:44 -0700, frank wrote:
> Hello everyone,
> I would like to create a linux bootcd that will when booted from,
> automatically mount an existing harddrive and copy files from the cd to
> the hardrive.
> I think I am on the right way using isolinux though i cannot get figured
> how to include a script that will while booting, automatically mount the
> harddrive and copy my files from cd to the harddrive. Does anybody have
> more information on how to accomplish this or is there a better method
> than using isolinux.
> Thanky for any help
> Greetings from Germany
> Frank Wallace
Knoppix (or another run-from-cd linux) may do exactly what you want. Take
a look at this: http://www.knoppix.net/
If you want to roll your own distribution, I think it would be possible.
I did some experimenting with building a "loopback linux," and I think
those techniques could work to build an "in place" linux- using a free
hard disk partition. The general procedure would be as follows:
0. Load the kernel and initial ramdisk (isolinux).
1. From linuxrc do prep work:
a. Format partition where your new root is going to be built.
b. Add tmp and proc directories to the new root.
c. Fill partition with a pre-configured installation (similar to a
backup restore operation).
d. Use pivot_root to start using the built-in-place linux.
2. Normal startup scripts execute (i.e. /sbin/init)
I documented what I did here:
-- Iris: So, what are you doing in Las Vegas? Raymond: We're counting cards. http://us.imdb.com/title/tt0095953/quotes