From owner-freebsd-questions@FreeBSD.ORG Fri May 21 05:56:32 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50D1216A4CE for ; Fri, 21 May 2004 05:56:32 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 857D943D1F for ; Fri, 21 May 2004 05:56:31 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i4LCu7UG086676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 May 2004 13:56:07 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i4LCu7bA086675; Fri, 21 May 2004 13:56:07 +0100 (BST) (envelope-from matthew) Date: Fri, 21 May 2004 13:56:07 +0100 From: Matthew Seaman To: jason-dusek@uiowa.edu Message-ID: <20040521125607.GH31695@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , jason-dusek@uiowa.edu, "Questions@BSD" References: <40ADF7BB.8050403@cs.uiowa.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ewQ5hdP4CtoTt3oD" Content-Disposition: inline In-Reply-To: <40ADF7BB.8050403@cs.uiowa.edu> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040504, clamav-milter version 0.70u X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: "Questions@BSD" Subject: Re: Broken Disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2004 12:56:32 -0000 --ewQ5hdP4CtoTt3oD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 21, 2004 at 07:36:11AM -0500, Jason Dusek wrote: > I am trying to put a new disk on my system. I read the description of=20 > the process in FreeBSD Unleashed and apparently I misunderstood it,=20 > because I ended up installing a boot manager on the new disk. Now I can= =20 > not mount it - I get error messages like: Presence of absence of a boot manager on the drive should make any difference at all once the system is up and running. =20 > # mount /dev/ad1e /mnt/backup > operation not permitted /dev/ad1e is a very odd device name to be using. As far as I remember that's a backwards compatability thing from changes that were made somewhere around the FreeBSD-3.x timeframe. You probably want /dev/ad1s1e =20 > How do I 'start over'? I have tried to add this disk many times with=20 > /stand/sysinstall. Eventually I gave up and went to the command line=20 > utilities as outlined in the handbook. The error I got was interesting,= =20 > but I have no idea what it means: >=20 > # fdisk -BI ad1 > ******* Working on device /dev/ad1 ******* > fdisk: invalid fdisk partition table found You're going about this the right way, but you've run into a disk with a label so scrambled it's confusing fdisk(8). Old hacky trick is to zero out the first few blocks of the drive, so that fdisk(8) thinks the disk is completely virgin: # dd if=3D/dev/zero of=3D/dev/ad1 bs=3D512 count=3D10 Note that this will completely trash anything already on the drive. Then use fdisk(8), disklabel(8)/bsdlabel(8), newfs(8) to create filesystems. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --ewQ5hdP4CtoTt3oD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFArfxniD657aJF7eIRApZiAKCfCw7Jpj+T0EhBR7bnc7+MTEdXVACfS8eA mZrEyVwGOfL4NFks1kkXKK4= =4qSo -----END PGP SIGNATURE----- --ewQ5hdP4CtoTt3oD--