From owner-freebsd-questions@FreeBSD.ORG Sat Dec 30 23:38:36 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A5B516A500 for ; Sat, 30 Dec 2006 23:38:36 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id 01E8113C448 for ; Sat, 30 Dec 2006 23:38:35 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so5966599nfc for ; Sat, 30 Dec 2006 15:38:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N+umZs+gAKoA05JrsBPpHMOCGIGx8fNrqwyEOViV6ynfvyUBDvW0FwcSrlWaJKO698njlV4X9Vkp9eoWq1j8aW0yIG2eMehFAqPiRVQacsR5orTISL2rsR8i9rW4G+kWuEgDvxdWd1wArPAnvioV/DhiGQVLxqZKaqEXBQhsirs= Received: by 10.78.81.20 with SMTP id e20mr4927728hub.1167521914863; Sat, 30 Dec 2006 15:38:34 -0800 (PST) Received: by 10.78.167.16 with HTTP; Sat, 30 Dec 2006 15:38:34 -0800 (PST) Message-ID: Date: Sun, 31 Dec 2006 02:38:34 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: Steve In-Reply-To: <6.2.1.2.0.20061230160735.0203a008@mail.digitalbluesky.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6.2.1.2.0.20061230160735.0203a008@mail.digitalbluesky.net> X-Google-Sender-Auth: e7c604de8de3dc02 Cc: questions@freebsd.org Subject: Re: how to mount an already freebsd paritioned external usb drive onto a new freebsd install X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Dec 2006 23:38:36 -0000 On 12/31/06, Steve wrote: > Hi, > > I was running FreebBSD 5.x until a few days ago at home on a little shuttle > cube server with a celeron processor when my hard drive appeared to develop > multiple problems and finally died. I had a western digital external usb > hard drive attached to the server that I used for daily backups. So I got > a new hard drive and installeed FreeBSD 6.1 on it. I have plugged in the > WD external usb drive and ran: > > dmesg > camcontrol devlist > > And the WD usb drive seems to recognized by the system and all is > well. The WD usb drive has a freebsd partition on it already. I want to > mount this drive so I can start to move backed up data to the new box, but > reading through the handbook and doing a google search, I'm still not clear > exactly how to do it. I don't remember how I had setup the old box to > mount the drive as I had done it almost two years ago. > > If someone can tell me what to do or point me in the right direction it > would be appreciated. I really don't want to mess this up. Assuming the drive you want to mount is /dev/da0, you should first determine what slices and partitions it has. It's very easy, just "ls /dev/da0*" for that. Let's pretend you see something like this: /dev/da0 /dev/da0s1 /dev/da0s1a /dev/da0s1b /dev/da0s1c /dev/da0s1d /dev/da0s1e It might be a lot simpler or a lot more complicated. This exact result means you have one slice (s1) and several partitions (a-e). "b" is a swap partition, "c" represents the whole slice, you only have to mount "a", "d" and "e". mkdir -p /mnt/a /mnt/d /mnt/e mount /dev/da0s1a /mnt/a mount /dev/da0s1d /mnt/d mount /dev/da0s1e /mnt/e Use "mount -r" instead of just "mount" to make them read- only (for safety). Good luck!