Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!corolla.OntheNet.com.au!news From: Tony Griffiths <tonyg@OntheNet.com.au> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: copy os to a news hardisk? Date: Thu, 12 Sep 1996 11:47:05 +1000 Organization: On the Net (ISP on the Cold Coast, Australia) Lines: 26 Message-ID: <32376B99.B1D@OntheNet.com.au> References: <3236319a.8713416@news.resolink.com> Reply-To: tonyg@OntheNet.com.au NNTP-Posting-Host: swanee.nt.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 3.0 (WinNT; I) To: Kinson Chan ³¯ «e <kinson@resolink.com> Kinson Chan ³¯ «e wrote: > > Hi, > > I want to change my original 1G hardisk to a new 4G hardisk. How can > I copy the whold FreeBSD to the new hardisk? > > Pls mail to me. Thank you very much for you help. > > Kinson You will need to label (fdisk) and partition (disklabel) your new 4G drive and initialise (newfs) the soon-to-be / and /usr partitions. Then to copy the existing ones do- # cd / # mount /dev/sd1a /mnt (assuming existing drive is sd0) # dump 0f - /dev/rsd0a |(cd /mnt; restore xf -) # umount /mnt then do the same for sd0e (or where your /usr lives). Man on dump give an example on how to copy an entire file-system. Of course the above is best done in single-user mode. Either boot using "-s" or "shutdown now" to single-user and do the xfer then! Tony