Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 May 2004 13:56:07 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        jason-dusek@uiowa.edu
Cc:        "Questions@BSD" <freebsd-questions@freebsd.org>
Subject:   Re: Broken Disk
Message-ID:  <20040521125607.GH31695@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <40ADF7BB.8050403@cs.uiowa.edu>
References:  <40ADF7BB.8050403@cs.uiowa.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040521125607.GH31695>