Date: Thu, 15 Jun 1995 06:18:00 -0700 (PDT) From: bmk@dtr.com To: questions@freebsd.org Subject: Q regarding new slice code/fdisk/disklabel Message-ID: <199506151318.GAA06480@everest>
next in thread | raw e-mail | index | archive | help
I upgraded my main server to 2.0.5 last night, almost everything went well, except that I'm having a problem with the partitioning and labeling of one of my disks. The disk is an HP 97548S (630MB SCSI), which was originally partitioned and labeled under 2.0-RELEASE. While installing 2.0.5, I removed the old partition and let sysinstall create a new partition and label. The partition and label look good to me - but something is wrong, because df reports the wrong number of blocks. The partition table, disklabel, and df output are reproduced at the end of this message. I've got an identical disk that was partitioned and labeled under 2.0-950322-SNAP that reports the correct size. All of the other disks that sysinstall sliced and labeled are working correctly (sd0=maxtor 7213s, sd1=fujitsu mk2324, sd2=cdc94171-327, sd3/4=hp97548s). I'm not quite sure that I understand the new slice code. If I want to manually create the slices using fdisk, and then label the disk, what device names do I use? I didn't find this information in the current FAQs - I know there's and older FAQ that covers this, but it's out of date and doesn't cover the new slice code. The man pages were also of little help. I've been using 'fdisk {-i|-u} /dev/sd?d' and 'disklabel -e sd?'. Is this right? Another interesting thing that I noticed is that the cylinder count as reported by fdisk isn't what I specified - it's supposed to be 633. Is there a cookbook procedure someplace that shows the process from fdisk to newfs? It doesn't seem like it should be that much different from 2.0, but it's got me stumped. Thanks in advance for any help... ******* Working on device /dev/sd3 ******* parameters extracted from in-core disklabel are: cylinders=1457 heads=64 sectors/track=32 (2048 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1457 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 32, size 1296352 (632 Meg), flag 80 beg: cyl 0/ sector 1/ head 1; end: cyl 632/ 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> # /dev/rsd3c: type: SCSI disk: sd3s1 label: flags: bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 632 sectors/unit: 1296352 rpm: 0 interleave: 0 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: 1296352 0 4.2BSD 0 0 0 # (Cyl. 0 - 632*) c: 1296352 0 unused 0 0 # (Cyl. 0 - 632*) Filesystem 512-blocks Used Avail Capacity Mounted on [...] /dev/sd3s1a 1141438 542480 598958 48% /VOL4 /dev/sd4a 1254622 51958 1102294 5% /VOL5 [...]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506151318.GAA06480>