Re: boot linux from cd and copy files to hd

From: Douglas Mayne (doug_at_SLACKWARE-3.localnet)
Date: 05/02/04


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
> out
> 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:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=pan.2003.12.06.21.09.26.152682%40SLACKWARE-2.localnet

-- 
Iris: So, what are you doing in Las Vegas?
Raymond: We're counting cards. 
http://us.imdb.com/title/tt0095953/quotes


Relevant Pages

  • Re: Undeletable file. Im stumped.
    ... and Centos Live CD's don't automatically mount, ... There were many examples in Ubuntu forums and in Ubuntu's informational ... Well I used Ubuntu Live on a Windows machine only just briefly back in 2008 when the mishap occurred. ... How To Mount Partitions Automatically On Startup In Linux ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Undeletable file. Im stumped.
    ... and Centos Live CD's don't automatically mount, ... write to, the Windows partition. ... Well I used Ubuntu Live on a Windows machine only just briefly back in 2008 when the mishap occurred. ... How To Mount Partitions Automatically On Startup In Linux ...
    (microsoft.public.windowsxp.help_and_support)
  • amd
    ... Can i use amd to automatically mount my cdroms/floppies? ... Is there any other good automounter in linux? ...
    (comp.os.linux.misc)
  • mounting windows share at boot time
    ... I wish to know how I can have my linux box automatically mount a windows ... share at boot time? ...
    (alt.os.linux)
  • Re: boot linux from cd and copy files to hd
    ... >> I would like to create a linux bootcd that will when booted from, ... >> 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 ... The systems that shall boot from the "Install-CD" already have a ...
    (comp.os.linux.setup)