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 >=20 > I've got a FreeBSD 3.0-RELEASE machine with a hard disk that I am going= =20 > to do some work on to upgrade it to FreeBSD 4.5-STABLE, and i'd like to= =20 > take an image of the file systems on it. >=20 > Is it possible for me to dd (copy) the following file systems off: >=20 > 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 >=20 > and then proceed to mount them on another machine (read only) with a vn? >=20 > What would be the commands to do this? =46rom the top of my head, dd if=3D/dev/wd0s1a of=3Droot.iso dd if=3D/dev/wd0s1f of=3Dusr.iso =2E... It may/(not) be necessary to specify a block size but that is for you to in= vestigate ;-) 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 =2E..something along those lines, and do what I want.. Sorry I am a bit sketch but I hope it gives you the kickstart.. -Wash --=20 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." =20 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>