need help with disklabel, "expected rawoffset 0, found 32"

Per olof Ljungmark peo at intersonic.se
Tue Oct 21 10:21:10 PDT 2008


Jerry McAllister wrote:
> On Tue, Oct 21, 2008 at 09:53:52AM +0200, Per olof Ljungmark wrote:
> 
>> Hi,
>>
>> I think sysinstall? got it wrong here and I get the complaint in the
>> subject line on boot. This is amd64 if that matters. Nothing edited by hand.
>>
>> I must admit I don't fully understand what is going on here, "found 32"
>> but the offsets are 63...
>>
<snip>

> I do not know what is causing this, but I think the offset of the 'c'
> partition (and the first real partition (a in this case)) should be 0
> I have seen this a couple of times a long time ago and don't remember
> what happened other than I think I just arbitrarily set those offsets 
> to 0 and it worked.
> 
> Can you try booting up the fixit shell and hitting the disk with
> a manual fdisk and bsdlabel to see what happens.  
> 
> Also, you might try doing the dd(1) thing  
>   dd if=/dev/zero of=/dev/amrd0 bs=512 count=1000
> before the fdisk and then another one after creating the slices manually
>   dd if=/dev/zero of=/dev/amrd0s1 bs=512 count=1000
> Note, that count value is arbitrary.
> 
> That should clean up any junk on the drive.
> 
> Also, I haven't seen/dealt with a disk device called amrd0 before.  It 
> appears to be something from one of the raid setups?  So, maybe doing 
> the dd thing might mangle that although, once it is a device, it 
> should work the same as a drive.   I ain't rich enough to have one of
> those raids to play with, though, so if someone else says otherwise,
> believe them.

This is a backup server that uses da0 as a spool disk, we recreated that 
one so it looks ok. However, we still see "expected rawoffset 0, found 
32" when booting and shutdown. It appears to me that sysinstall rewrote 
the MBR for amrd0 even if to my best knowledge it was not touched by us.

Below is some information in case someone with insight might see the 
issue. Please let me know what more I can provide, thanks!


camcontrol devlist -v
scbus0 on ciss0 bus 0:
<COMPAQ RAID 5  VOLUME OK>         at scbus0 target 0 lun 0 (pass0,da0)
scbus1 on ciss0 bus 32:
scbus2 on mpt0 bus 0:
<HP UHDL-LTO 0014>                 at scbus2 target 0 lun 0 (pass1,ch0)
<HP Ultrium 2-SCSI F68W>           at scbus2 target 5 lun 0 (sa0,pass2)
<  >                               at scbus2 target -1 lun -1 ()
scbus3 on mpt1 bus 0:
<QUANTUM DLT VS160 2200>           at scbus3 target 2 lun 0 (sa1,pass3)
<QUANTUM DLT VS160 2200>           at scbus3 target 3 lun 0 (sa2,pass4)
<  >                               at scbus3 target -1 lun -1 ()
scbus4 on amr0 bus 0:
<SEAGATE ST3300655LC 0003>         at scbus4 target 0 lun 0 (pass5)
<SEAGATE ST3300655LC 0003>         at scbus4 target 1 lun 0 (pass6)
<SEAGATE ST3300655LC 0003>         at scbus4 target 2 lun 0 (pass7)
<SEAGATE ST3300655LC 0003>         at scbus4 target 3 lun 0 (pass8)
<SEAGATE ST3300655LC 0003>         at scbus4 target 4 lun 0 (pass9)
<SEAGATE ST3300655LC 0003>         at scbus4 target 5 lun 0 (pass10)
scbus-1 on xpt0 bus 0:
<  >                               at scbus-1 target -1 lun -1 (xpt0)

disklabel -A amrd0s1:

# /dev/amrd0s1:
type: ESDI
disk: amrd0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 65535
sectors/unit: 2929674240
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 28528
   b:  8388608  4194304      swap
   c: 2929661532        0    unused        0     0         # "raw" part, 
don't edit
   d: 31457280 12582912    4.2BSD     2048 16384 28528
   e:  2097152 44040192    4.2BSD     2048 16384 28528
   f: 41943040 46137344    4.2BSD     2048 16384 28528
   g: 2841581148 88080384    4.2BSD     2048 16384 28528
disklabel: partition c doesn't cover the whole unit!
disklabel: An incorrect partition c may cause problems for standard 
system utilities

disklabel -A da0s1
# /dev/da0s1:
type: unknown
disk: amnesiac
label:
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 255
sectors/cylinder: 8160
cylinders: 105414
sectors/unit: 860184297
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]
   c: 860184297        0    unused        0     0         # "raw" part, 
don't edit
   d: 860184233       63    4.2BSD     2048 16384 28528

fdisk -tv
******* Working on device /dev/amrd0 *******
parameters extracted from in-core disklabel are:
cylinders=182363 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=182363 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 2929661532 (1430498 Meg), flag 80 (active)
         beg: cyl 0/ head 1/ sector 1;
         end: cyl 1023/ 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>




More information about the freebsd-questions mailing list