Date: Mon, 20 May 2002 17:38:49 +0300 From: Odhiambo Washington <wash@wananchi.com> To: freebsd-questions@freebsd.org Cc: kluckie@ihug.co.nz Subject: Re: loading file systems with vn Message-ID: <20020520143849.GE2178@ns2.wananchi.com> In-Reply-To: <3CE8A51F.2070609@ihug.co.nz> References: <3CE8A51F.2070609@ihug.co.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
* Matthew Luckie <kluckie@ihug.co.nz> [20020520 10:27]: wrote: > Hi > > I've got a FreeBSD 3.0-RELEASE machine with a hard disk that I am going > to do some work on to upgrade it to FreeBSD 4.5-STABLE, and i'd like to > take an image of the file systems on it. > > Is it possible for me to dd (copy) the following file systems off: > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/wd0s1a 31743 18697 10507 64% / > /dev/wd0s1f 5952717 473236 5003264 9% /usr > /dev/wd0s1e 29751 2153 25218 8% /var > > and then proceed to mount them on another machine (read only) with a vn? > > What would be the commands to do this? From the top of my head, dd if=/dev/wd0s1a of=root.iso dd if=/dev/wd0s1f of=usr.iso .... It may/(not) be necessary to specify a block size but that is for you to investigate ;-) Then ftp the .iso files to the other box and do something like vnconfig /dev/vn0c root.iso mount /dev/vn0c /usr/mnt [ yeah, the vnconfig page says a lot about these so if I make a mistake..] However, if I were you, I'd move the disk onto the other box and connect it as slave then do something like mkdir /usr/rootmnt mkdir /usr/usrmnt Then mount /dev/wd1s1a /usr/rootmnt ...something along those lines, and do what I want.. Sorry I am a bit sketch but I hope it gives you the kickstart.. -Wash -- Odhiambo Washington <wash@wananchi.com> "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) Painting, n.: The art of protecting flat surfaces from the weather, and exposing them to the critic. -- Ambrose Bierce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020520143849.GE2178>
