From owner-freebsd-current Mon Nov 18 11:56:35 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8C2137B401 for ; Mon, 18 Nov 2002 11:56:31 -0800 (PST) Received: from MX2.estpak.ee (ld1.estpak.ee [194.126.101.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FB4743E42 for ; Mon, 18 Nov 2002 11:56:30 -0800 (PST) (envelope-from kalts@estpak.ee) Received: from tiiu.internal (80-235-44-30-dsl.mus.estpak.ee [80.235.44.30]) by MX2.estpak.ee (Postfix) with ESMTP id 08CCB735BF; Mon, 18 Nov 2002 21:55:30 +0200 (EET) Received: from tiiu.internal (localhost [127.0.0.1]) by tiiu.internal (8.12.6/8.12.6) with ESMTP id gAIJuRWA003506; Mon, 18 Nov 2002 21:56:27 +0200 (EET) (envelope-from vallo@tiiu.internal) Received: (from vallo@localhost) by tiiu.internal (8.12.6/8.12.6/Submit) id gAIJuRKA003505; Mon, 18 Nov 2002 21:56:27 +0200 (EET) (envelope-from vallo) Date: Mon, 18 Nov 2002 21:56:27 +0200 From: Vallo Kallaste To: Julian Elischer Cc: freebsd-current@freebsd.org Subject: Re: Warning messages emitted by disklabel -r Message-ID: <20021118195627.GA3309@tiiu.internal> Reply-To: kalts@estpak.ee References: <20021118100324.GA35314@myhakas.internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Nov 18, 2002 at 11:23:14AM -0800, Julian Elischer wrote: > what are the warnings? > what version of disklabel.c? Here's script output: Script started on Mon Nov 18 21:46:07 2002 bash-2.05b# dd if=/dev/zero of=/dev/da1 bs=1k count=512 512+0 records in 512+0 records out 524288 bytes transferred in 0.532715 secs (984181 bytes/sec) bash-2.05b# fdisk -I da1 ******* Working on device /dev/da1 ******* fdisk: invalid fdisk partition table found bash-2.05b# fdisk da1 ******* Working on device /dev/da1 ******* parameters extracted from in-core disklabel are: cylinders=554 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=554 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 8899947 (4345 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 553/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: bash-2.05b# disklabel -rw da1s1 auto bash-2.05b# disklabel -e da1s1 [output stripped intentionally] bash-2.05b# disklabel da1s1 # /dev/da1s1c: type: SCSI disk: da1s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 553 sectors/unit: 8899947 rpm: 7200 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: 8899947 0 unused 0 0 # (Cyl. 0 - 553*) e: 8899947 0 4.2BSD 0 0 0 # (Cyl. 0 - 553*) bash-2.05b# disklabel -r da1s1 # /dev/da1s1c: type: SCSI disk: da1s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 553 sectors/unit: 8899947 rpm: 7200 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: 8899947 63 unused 0 0 # (Cyl. 0*- 553*) e: 8899947 63 4.2BSD 0 0 0 # (Cyl. 0*- 553*) partition c: partition extends past end of unit Warning, partition c doesn't start at 0! Warning, An incorrect partition c may cause problems for standard system utilities partition e: partition extends past end of unit bash-2.05b# ident /usr/src/lib/libc/gen/disklabel.c /usr/src/lib/libc/gen/disklabel.c: $FreeBSD: src/lib/libc/gen/disklabel.c,v 1.16 2002/08/16 15:33:20 bmilekic Exp $ bash-2.05b# ident /usr/src/sbin/disklabel/disklabel.c /usr/src/sbin/disklabel/disklabel.c: $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk $ $FreeBSD: src/sbin/disklabel/disklabel.c,v 1.63 2002/11/18 04:58:11 julian Exp $ bash-2.05b# exit exit Script done on Mon Nov 18 21:49:08 2002 -- Vallo Kallaste kalts@estpak.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message