*BSD News Article 72544


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!news.mathworks.com!uunet!inXS.uu.net!nntp.inet.fi!news.funet.fi!news.cs.hut.fi!news.clinet.fi!usenet
From: mickey@cantina.clinet.fi (Mika Ruohotie)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Tranfer of system
Date: 28 Jun 1996 18:17:52 GMT
Organization: Clinet, Espoo, Finland
Lines: 30
Message-ID: <4r17kg$ecr@news.clinet.fi>
References: <4qh8i6$ot3@ustsu10.ust.hk> <31CCE7E3.41C6@onthenet.com.au> <4qqlkf$10p@anorak.coverform.lan>
NNTP-Posting-Host: cantina.clinet.fi

Brian Somers <brian@awfulhak.demon.co.uk> wrote:
>Tony Griffiths (tonyg@onthenet.com.au) wrote:

[ways to do change harddisks under freebsd]

i always do it like this:

i use the boot.flp to partition/disklabel the new harddisk (booting only with
it)

then i boot the priginal machine with the new harddisk, then i mount all
the new filesystems under /mnt /mnt1 /mnt2 and so on (i usually have atleast
/ swap /usr /var and maybe /home /www /ftp /scratch)

then i cd to the root of the filesystem i want to transfer and am using
find and cpio:

find listing files and directories -print | cpio -pdmv /mnt

/mnt being whatever mountpoint i want it to end... "listing files and dirs"
means in that place i have everything separated by a space what i want to
move

i find it efficient enough, comments?

after all is done, i can easily boot from the new hd (after checking /etc/fstab
looks right)


mickey