Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2002 21:56:27 +0200
From:      Vallo Kallaste <kalts@estpak.ee>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Warning messages emitted by disklabel -r
Message-ID:  <20021118195627.GA3309@tiiu.internal>
In-Reply-To: <Pine.BSF.4.21.0211181122520.74299-100000@InterJet.elischer.org>
References:  <20021118100324.GA35314@myhakas.internal> <Pine.BSF.4.21.0211181122520.74299-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 18, 2002 at 11:23:14AM -0800, Julian Elischer
<julian@elischer.org> 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:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
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




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