bsdlabel messages?
Jay O'Brien
jayobrien at att.net
Wed Nov 17 10:29:57 PST 2004
Trying to understand what bsdlabel is telling me, I did some
experimenting. The computer has a working installation of Vers.
4.10 on ad1, so I booted to ad1 and ran 4.10. Using 4.10 and
disklabel (replaced by bsdlabel in 5.3), I find that disklabel
seems happy with my ad0 disk, as compared to what bsdlabel says
about the same disk when running 5.3.
Perhaps this is a problem with bsdlabel? I don't know enough
about what I am seeing to suggest that, but I don't understand
what bsdlabel is reporting to me.
Below are outputs from disklabel and bsdlabel, reporting on the
same disk. I used bsdlabel -A this time to make the displays
similar. When I don't use the -A argument, I get many more
lines describing problems; please refer to my November 16
message to see those lines.
Help please?
Jay O'Brien
Rio Linda, California, USA
===========================================================================
The following output is obtained while running FreeBSD)4.10 on disk ad1 and
typing 'disklabel ad0s1a'. Note that FreeBSD 5.3 is installed on ad0, but
the 4.10 installation on ad1 was selected via boot manager.
# /dev/ad0s1a:
type: ESDI
disk: ad0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 14592
sectors/unit: 234436482
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]
a: 4194304 0 4.2BSD 2048 16384 28552 # (Cyl. 0 - 261*)
b: 6291456 4194304 swap # (Cyl. 261*- 652*)
c: 234436482 0 unused 0 0 # (Cyl. 0 - 14592*)
d: 20971520 10485760 4.2BSD 2048 16384 28552 # (Cyl. 652*- 1958*)
e: 20971520 31457280 4.2BSD 2048 16384 28552 # (Cyl. 1958*- 3263*)
f: 4194304 52428800 4.2BSD 2048 16384 28552 # (Cyl. 3263*- 3524*)
g: 83886080 56623104 4.2BSD 2048 16384 28552 # (Cyl. 3524*- 8746*)
h: 83886080 140509184 4.2BSD 2048 16384 28552 # (Cyl. 8746*- 13967*)
===========================================================================
uname-a running 4.10:
FreeBSD server1.jayobrien.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 root at perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
===========================================================================
The following output is obtained while running FreeBSD 5.3 on disk ad0 and
typing 'bsdlabel -A ad0s1a'.
# /dev/ad0s1a:
type: ESDI
disk: ad0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 14593
sectors/unit: 234441648
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]
a: 4194304 63 4.2BSD 2048 16384 28552
b: 6291456 4194367 swap
c: 234436482 63 unused 0 0 # "raw" part, don't edit
d: 20971520 10485823 4.2BSD 2048 16384 28552
e: 20971520 31457343 4.2BSD 2048 16384 28552
f: 4194304 52428863 4.2BSD 2048 16384 28552
g: 83886080 56623167 4.2BSD 2048 16384 28552
h: 83886080 140509247 4.2BSD 2048 16384 28552
bsdlabel: partition c doesn't start at 0!
bsdlabel: partition c doesn't cover the whole unit!
bsdlabel: An incorrect partition c may cause problems for standard system utilities
===========================================================================
uname -a running 5.3:
FreeBSD server1.jayobrien.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
===========================================================================
More information about the freebsd-questions
mailing list