From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 03:57:26 2003 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 2EF6916A4CE for ; Mon, 29 Dec 2003 03:57:26 -0800 (PST) Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 8C48743D4C for ; Mon, 29 Dec 2003 03:57:22 -0800 (PST) (envelope-from doublef@tele-kom.ru) Received: (qmail 30254 invoked by uid 555); 29 Dec 2003 14:57:20 +0300 Received: from hal.localdomain (213.80.149.187) by t-k.ru with TeleMail/2 id 1072699038-30238 for malcolm.kay@internode.on.net; Mon, 29 Dec 14:57:18 2003 +0300 (MSK) Date: Mon, 29 Dec 2003 15:00:16 +0300 From: Sergey 'DoubleF' Zaharchenko To: Malcolm Kay Message-Id: <20031229150016.797c4aef.doublef@tele-kom.ru> In-Reply-To: <200312291457.13426.malcolm.kay@internode.on.net> References: <200312290405.hBT455U6021275@mail1.acecape.com> <200312291457.13426.malcolm.kay@internode.on.net> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Mon__29_Dec_2003_15_00_16_+0300_fEV4hNdkP1k7bjvN" cc: Francisco Reyes cc: FreeBSD questions Subject: Re: Fwd: Re: Please help. Can't see HD 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: Mon, 29 Dec 2003 11:57:26 -0000 --Signature=_Mon__29_Dec_2003_15_00_16_+0300_fEV4hNdkP1k7bjvN Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Mon, 29 Dec 2003 14:57:13 +1030 Malcolm Kay probably wrote: > On Mon, 29 Dec 2003 14:39, Francisco Reyes wrote: > > On Mon, 29 Dec 2003 14:27:01 +1030, Malcolm Kay wrote: > > >This is likely your problem source!!! > > > > > >/dev/rad[n] is an alias of /dev/ad[n]; that is it refers to IDE drive n. > > >(Historically they had somewhat different meanings but even then still > > >refered to the same physical device -- the 'r' means raw) > > > > > >If n was 2 you have over written the beginning of ad2. > > > > Well I guess the good news is that the HD is probably ok then. > > > > :-) > > Yes; should be. > > > > In FAT I seem to recall there are two copies of the boot sector. > > Does FreeBSD has anything like that? > > > > I seem to recall some options or utilities under MS-DOS that did > something like that, but think this was mainly for floppies. > Certainly there are duplicate copies of the FAT allocation tables, > but these are next to one another on the disk so don't really protect > against this sort of calamity. > > I guess the nearest thing in FreeBSD is mutiple copies of the > superblocks within the file system, but unless you can reconstruct > the slice table(partition in MS terms) I don't believe it will help. > > > If what I did trashed the first sectors would that have affected > > all mount points? > > How big was the image you copied to the disk? -- that should tell > you how much of your drive is overwritten. > > It is probable your disklabel has also disappeared, so you And the superblock, and some large piece of data. > probably need to reconstruct both the slice table in the MBR and > the disklabel in the first slice. With some vague recollections of > what you did originally to install FBSD it is possible that some > lucky guesses might work. For the `slice table' (MBR) sysutils/gpart could be of some help. Not sure about the disklabel, though. > If you can find the first sector of a slice carrying an installed file Where `find' might mean # hd < /dev/ad6s1 | grep "54 19 01 00" if looking for a ufs1 filesystem or # hd < /dev/ad6s1 | grep "19 01 54 19" for ufs2. (see the archive for details; in the discussion the method seemed to work) > system then this might hold a copy of the slice table allowing > reconstruction of the original MBR with some confidence. > > Malcolm Kay > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- DoubleF Vote for ME -- I'm well-tapered, half-cocked, ill-conceived and TAX-DEFERRED! --Signature=_Mon__29_Dec_2003_15_00_16_+0300_fEV4hNdkP1k7bjvN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/8Bdcwo7hT/9lVdwRAlaNAJoC45+aP/gpNeECwbThcTZsKryXDwCePvhb hzY7USFwAopSOz8KvzH4VTQ= =udLt -----END PGP SIGNATURE----- --Signature=_Mon__29_Dec_2003_15_00_16_+0300_fEV4hNdkP1k7bjvN--