Date: Fri, 10 Mar 1995 10:42:06 -0800 (PST) From: bmk@dtr.com To: questions@FreeBSD.org Subject: shutdown & bogus disklabels Message-ID: <199503101842.KAA06402@dtr.com>
next in thread | raw e-mail | index | archive | help
I've been having an annoying problem on shutdown for awhile.. After doing a shutdown -r, on reboot the system gives me an "Invalid disklabel on sd2" (or something like that). Fsck then fails with an unexpected consistancy (naturally). I can work around this by immediately rewriting the disklabel, and fscking the filesystem on that disk. I can then bring the system up to multi-user. This happens every time I shut down - but only on sd2. sd0, sd1, and sd3 never have any problems, and I have no other problems with that disk. sd2 contains only a single ufs filesystem, no swap and no filesystems for other operating systems. It was partitioned and disklabeled in a similar manner to sd3 - using the whole disk, with the ufs filesystem starting at offset 1. Any ideas on what might be happening here? Am I suffering from brain damage? The disktab entry is as follows: cdc_94171-327|sd2|SCSI disk on sd2:\ :dt=SCSI:ty=winchester:\ :nc#312:ns#32:nt#64:\ :se#512:\ :pa#638975:oa#1:ta=4.2BSD:ba#8192:fa#1024:\ :pc#638975:oc#1:\ :pd#638976:od#0: fdisk /dev/rsd2d reports the following: ******* Working on device /dev/rsd2d ******* parameters extracted from in-core disklabel are: cylinders=312 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=312 heads=64 sectors/track=32 (2048 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 2048, size 636928 (311 Meg), flag 80 beg: cyl 1/ sector 1/ head 0; end: cyl 311/ sector 32/ head 63 The data for partition 1 is: <UNUSED> The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> and disklabel -r /dev/rsd2d reports thusly: type: SCSI disk: cdc_94171-327 label: flags: bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 312 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 4 partitions: # size offset fstype [fsize bsize bps/cpg] a: 638975 1 4.2BSD 1024 8192 0 # (Cyl. 0*-311*) c: 638975 1 unused 0 0 # (Cyl. 0*-311*) d: 638976 0 unused 0 0 # (Cyl. 0 -311)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503101842.KAA06402>