From owner-freebsd-questions Mon May 20 7:39:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 197A837B400 for ; Mon, 20 May 2002 07:38:59 -0700 (PDT) Received: from drweb by ns2.wananchi.com with drweb-scanned (Exim 3.36 #1 (FreeBSD)) id 179oJG-0007XV-00; Mon, 20 May 2002 17:38:50 +0300 Received: from wash by ns2.wananchi.com with local (Exim 3.36 #1 (FreeBSD)) id 179oJF-0007XI-00; Mon, 20 May 2002 17:38:49 +0300 Date: Mon, 20 May 2002 17:38:49 +0300 From: Odhiambo Washington To: freebsd-questions@freebsd.org Cc: kluckie@ihug.co.nz Subject: Re: loading file systems with vn Message-ID: <20020520143849.GE2178@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , freebsd-questions@freebsd.org, kluckie@ihug.co.nz References: <3CE8A51F.2070609@ihug.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <3CE8A51F.2070609@ihug.co.nz> User-Agent: Mutt/1.3.25i X-Disclaimer: Any views expressed in this message,where not explicitly attributed otherwise, are mine alone!. X-Fortune: Know thyself. If you need help, call the C.I.A. X-Operating-System: FreeBSD 4.5-STABLE i386 X-Best-Window-Manager: Blackbox X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 5:28PM up 8 hrs, 4 users, load averages: 0.22, 0.40, 0.39 X-Envelope-To: freebsd-questions@freebsd.org, kluckie@ihug.co.nz Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Matthew Luckie [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 "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