Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2003 11:52:54 -0700
From:      Avleen Vig <lists-freebsd@silverwraith.com>
To:        Charles Howse <chowse@charter.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Looking for detailed documentation: Install to existing filesystem
Message-ID:  <20030825185254.GF558@silverwraith.com>
In-Reply-To: <001c01c36a7f$7856a140$04fea8c0@moe>
References:  <001c01c36a7f$7856a140$04fea8c0@moe>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 24, 2003 at 03:36:41PM -0500, Charles Howse wrote:
> Hi,
> I've posted this request to 'questions' with no response, so now I'll
> ask 'hackers'.
> 
> I'm a hobbyist, and for my personal education, I would like to learn how
> to install FBSD from an existing filesystem, rather than from FTP or CD.
> 
> My intention is to copy the files to a directory on the second HDD of my
> present FBSD system, and point sysinstall to that partition/directory
> during the install.

This may not answer the questions you posed, but it may be a good start
for you.

You have two options i can think of, if you want to mimic a traditional
/stand/sysinstall installation process.
1) install an FTP server, and choose an FTP install.
2) export the hard drive over NFS, and use that.

Or, a better way which I would recommend:
download the source code, and put if on the second drive. We'll assume
/usr/src and /usr/obj are mounted on the *second* hard drive.

Run something like this:
cd /usr/src
make buildworld <a flag>*
  * the '<a flag>' is a flag I don't recall off the top of my head, but
  * it lets you change which drive / other mounted location, the new
  * build is installed to. Maybe someone else can help here?
make buildkernel

then when you want to install to a third hard drive, mount it as the
location give in '<a flag>' to make on the previous step, then run:
make 
make installkernel
make installworld
mergemaster

that should isntall the compiled sources to the new drive pretty
quickly.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030825185254.GF558>