From owner-freebsd-questions@FreeBSD.ORG Sun Dec 12 18:38:22 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 7C5A716A4CE for ; Sun, 12 Dec 2004 18:38:22 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 075FA43D5D for ; Sun, 12 Dec 2004 18:38:21 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b205.otenet.gr [212.205.244.213]) iBCIcHf0011578 for ; Sun, 12 Dec 2004 20:38:18 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id iBCIcDSK029639 for ; Sun, 12 Dec 2004 20:38:13 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id iBCIcD0N029638 for freebsd-questions@freebsd.org; Sun, 12 Dec 2004 20:38:13 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 12 Dec 2004 20:38:13 +0200 From: Giorgos Keramidas To: freebsd-questions@freebsd.org Message-ID: <20041212183813.GA29603@gothmog.gr> References: <20041212141254.GA13582@saturn.pcs.ms> <20041212145845.GA50951@gothmog.gr> <20041212171932.GA267@saturn.pcs.ms> <20041212172551.GA16536@gothmog.gr> <20041212174238.GB267@saturn.pcs.ms> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041212174238.GB267@saturn.pcs.ms> Subject: Re: Replaced drive 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: Sun, 12 Dec 2004 18:38:22 -0000 On 2004-12-12 18:42, Martin Schweizer wrote: > Am Sun, Dec 12, 2004 at 07:25:51PM +0200 Giorgos Keramidas schrieb: > > On 2004-12-12 18:19, Martin Schweizer wrote: > > >Am Sun, Dec 12, 2004 at 04:58:45PM +0200 Giorgos Keramidas schrieb: > > >>On 2004-12-12 15:12, Martin Schweizer wrote: > > >>> Hello list > > >>> > > >>> After I replaced my hard drive (with a larger one) I get the following > > >>> 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-master UDMA100 > > >>> ad2: DMA limited to UDMA33, non-ATA66 cable or device > > >>> ad2: 39266MB [79780/16/63] at ata1-master UDMA33 > > >>> acd0: CDROM at ata1-slave PIO4 > > >>> Mounting root from ufs:/dev/ad0s2a > > >>> ad0s1: raw partition size != slice size > > >>> ad0s1: start 63, end 16064, size 16002 > > >>> ad0s1c: start 63, end 80405324, size 80405262 > > > > > > Hello Giorgos > > > > > > 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=5005 heads=255 sectors/track=63 (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=5005 heads=255 sectors/track=63 (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 Good, then you have a disk with 255*63*5005 = 80405325 sectors. > 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 - 5005*) 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 slice has a label, but you need to use: # disklabel ad0s2 to see that. > disklabel /dev/ad2: This is a different disk, which may have other slices too (ad2s1, ad2s2, ...)