Date: Sun, 27 Aug 2000 18:45:28 -0700 From: "Kevin Oberman" <oberman@es.net> To: questions@freebsd.org Subject: Problems with dd (probably a disk labeling problem) Message-ID: <200008280145.e7S1jSU08497@ptavv.es.net>
next in thread | raw e-mail | index | archive | help
I have been trying to copy my root partition between identically sized partitions on two drives. I do tried doing this "stand-alone' but got a fixlabel error: dscheck(#ad/0x20010): fixlabel: raw partition size > slice size fixlabel: raw partition offset != slice offset OK. I checked the disklabel and I had transposed two digits on the offset for one partition. (I'm glad this brought it to my attention before I destroyed something.) I fixed this and the disklabel seems to be fine. I've re-calculated several times and the numbers all add up. But I still get the same error from dd. Here is the fdisk output for the device: # fdisk ad2 ******* Working on device /dev/ad2 ******* parameters extracted from in-core disklabel are: cylinders=26473 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=26473 heads=16 sectors/track=63 (1008 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,(FreeBSD/NetBSD/386BSD) start 63, size 26684721 (13029 Meg), flag 80 (active) beg: cyl 0/ sector 1/ head 1; end: cyl 1023/ sector 63/ head 15 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> And here is the disklabel output for the slice in question: # /dev/ad2s1c: type: ESDI disk: ad2s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 26472 sectors/unit: 26684721 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: 204800 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 203*) b: 417792 204800 swap # (Cyl. 203*- 617*) c: 26684721 0 unused 0 0 # (Cyl. 0 - 26472*) e: 10204000 622592 4.2BSD 1024 8192 16 # (Cyl. 617*- 10740*) f: 15822129 10862592 4.2BSD 1024 8192 16 # (Cyl. 10776*- 26472*) It all looks perfect to me. What am I missing? FWIW, here is the partition information for the source slice: # size offset fstype [fsize bsize bps/cpg] a: 204800 0 4.2BSD 0 0 0 # (Cyl. 0 - 203*) b: 417792 204800 swap # (Cyl. 203*- 617*) c: 26687745 0 unused 0 0 # (Cyl. 0 - 26475*) e: 10240000 622592 4.2BSD 1024 8192 16 # (Cyl. 617*- 10776*) f: 15825153 10862592 4.2BSD 1024 8192 16 # (Cyl. 10776*- 26475*) Looks about the same to me. I do wonder why fsize, bsize, and bps/cpg are shown as 0 for this partition, though. I'd suspect this, but this is my root partition and the system runs just fine. fsck finds nothing wrong. Any ideas what I could have done wrong? R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008280145.e7S1jSU08497>