From owner-freebsd-questions@FreeBSD.ORG Sun Dec 12 19:04:46 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 B392D16A4CE for ; Sun, 12 Dec 2004 19:04:46 +0000 (GMT) Received: from mail3.bluewin.ch (mail3.bluewin.ch [195.186.1.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A9EB43D54 for ; Sun, 12 Dec 2004 19:04:46 +0000 (GMT) (envelope-from martin@saturn.pcs.ms) Received: from saturn.pcs.ms (83.78.27.27) by mail3.bluewin.ch (Bluewin AG 7.0.030.2) id 41B44BDF00075F66; Sun, 12 Dec 2004 19:04:43 +0000 Received: from saturn.pcs.ms (localhost [127.0.0.1]) by saturn.pcs.ms (8.12.11/8.12.11) with ESMTP id iBCJ5hP4000345; Sun, 12 Dec 2004 20:05:43 +0100 (CET) (envelope-from martin@saturn.pcs.ms) Received: (from martin@localhost) by saturn.pcs.ms (8.12.11/8.12.11/Submit) id iBCJ5hLv000344; Sun, 12 Dec 2004 20:05:43 +0100 (CET) (envelope-from martin) Date: Sun, 12 Dec 2004 20:05:43 +0100 From: Martin Schweizer To: Giorgos Keramidas Message-ID: <20041212190542.GA296@saturn.pcs.ms> Mail-Followup-To: Giorgos Keramidas , freebsd-questions@freebsd.org References: <20041212141254.GA13582@saturn.pcs.ms> <20041212145845.GA50951@gothmog.gr> <20041212171932.GA267@saturn.pcs.ms> <20041212172551.GA16536@gothmog.gr> <20041212174238.GB267@saturn.pcs.ms> <20041212183813.GA29603@gothmog.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <20041212183813.GA29603@gothmog.gr> User-Agent: Mutt/1.4i Organization: PC-Service M. Schweizer GmbH, CH-8608 Bubikon, Switzerland X-PGP-Key: http://www.pc-service.ch/pgp/public_key.asc X-Fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239 cc: freebsd-questions@freebsd.org Subject: Re: Replaced drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Martin Schweizer List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 19:04:46 -0000 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am Sun, Dec 12, 2004 at 08:38:13PM +0200 Giorgos Keramidas schrieb: > > > >>> messages in dmeg.boot after reboot. Probably it's only a hint and= not an > > > >>> error. How I can resolve this issue? I use FreeBSD 4.10. > > > >> > > > >> Did you use dd(1) to move over the existing partitions and data? > > > >> Judging from the following, it seems you _did_. > > > >> > > > >>> ad0: 39266MB [79780/16/63] at ata0-ma= ster UDMA100 > > > >>> ad2: DMA limited to UDMA33, non-ATA66 cable or device > > > >>> ad2: 39266MB [79780/16/63] at ata1-ma= ster UDMA33 > > > >>> acd0: CDROM at ata1-slave PIO4 > > > >>> Mounting root from ufs:/dev/ad0s2a > > > >>> ad0s1: raw partition size !=3D slice size > > > >>> ad0s1: start 63, end 16064, size 16002 > > > >>> ad0s1c: start 63, end 80405324, size 80405262 > > > > > > > > No, I used dump. > > > > > > Weird. Can I see the output of fdisk and disklabel for that disk? > > > > Here they are: > > > > fdisk: > > > > ******* Working on device /dev/ad0 ******* > > parameters extracted from in-core disklabel are: > > cylinders=3D5005 heads=3D255 sectors/track=3D63 (16065 blks/cyl) > > > > Figures below won't work with BIOS for partitions not in cyl 1 > > parameters to be used for BIOS calculations are: > > cylinders=3D5005 heads=3D255 sectors/track=3D63 (16065 blks/cyl) > > > > Media sector size is 512 > > Warning: BIOS sector numbering starts with sector 1 > > Information from DOS bootblock is: > > The data for partition 1 is: > > sysid 6,(Primary 'big' DOS (> 32MB)) > > start 63, size 16002 (7 Meg), flag 0 > > beg: cyl 0/ head 1/ sector 1; > > end: cyl 0/ head 254/ sector 63 > > The data for partition 2 is: > > sysid 165,(FreeBSD/NetBSD/386BSD) > > start 16065, size 80389260 (39252 Meg), flag 80 (active) > > beg: cyl 1/ head 0/ sector 1; > > end: cyl 1023/ head 254/ sector 63 >=20 > Good, then you have a disk with 255*63*5005 =3D 80405325 sectors. >=20 > > disklabel /dev/ad0: > > # /dev/ad0: > > type: unknown > > disk: amnesiac > > label: fictitious > > flags: > > bytes/sector: 512 > > sectors/track: 63 > > tracks/cylinder: 255 > > sectors/cylinder: 16065 > > cylinders: 5005 > > sectors/unit: 80418240 > > rpm: 3600 > > interleave: 1 > > trackskew: 0 > > cylinderskew: 0 > > headswitch: 0 # milliseconds > > track-to-track seek: 0 # milliseconds > > drivedata: 0 > > > > 8 partitions: > > # size offset fstype [fsize bsize bps/cpg] > > c: 80418240 0 unused 0 0 # (Cyl. 0 - 5= 005*) >=20 > Err, this is not right. The ad0 disk has two slices, ad0s1 and ad0s2. > The ad0s1 slice is DOS, so it doesn't have a disk label. The ad0s2 ^^^ This is correct. But is no longer in use. > slice has a label, but you need to use: >=20 > # disklabel ad0s2 >=20 > to see that. # /dev/ad0s2c: type: ESDI disk: ad0s2 label:=20 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 5004 sectors/unit: 80389260 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0=20 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524288 0 4.2BSD 2048 16384 94 # (Cyl. 0 - 32*) b: 491520 524288 swap # (Cyl. 32*- 63*) c: 80389260 0 unused 0 0 # (Cyl. 0 - 5003) e: 524288 1015808 4.2BSD 2048 16384 94 # (Cyl. 63*- 95*) f: 78849164 1540096 4.2BSD 2048 16384 89 # (Cyl. 95*- 5003*) =20 > > disklabel /dev/ad2: =20 > This is a different disk, which may have other slices too (ad2s1, ad2s2, = ...) ad2 is my backup drive where I dump ad0 regulary. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" --=20 Regards Gruss Mit freundlichen Gr=FCssen Martin Schweizer PC-Service M. Schweizer GmbH; Gewerbehaus Schwarz; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc;=20 fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQFBvJaGwa4WkdMP0jkRAuQOAJ4o4lpS0nC6XYesoTWBq9zXfj0hiQCg4J6b Kl+3omvsh5zqlgbAvMqsExY= =8MwZ -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--