NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/47670: mbrlabel's math is off



>Number:         47670
>Category:       bin
>Synopsis:       mbrlabel's math is off
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 20 01:00:00 +0000 2013
>Originator:     cagney
>Release:        6.1 beta(?)
>Organization:
>Environment:
NetBSD rpi 6.99.17 NetBSD 6.99.17 (RPI) #3: Fri Mar 15 16:35:21 EDT 2013  
cagney@tv-desktop:/home/cagney/src/NetBSD/cvs/sys/arch/evbarm/compile/obj/RPI 
evbarm


>Description:
This is from mbrlabel, the first bit is correct:

Found MSDOS partition; size 1073741824 (524288 MB), offset 2048
  skipping existing MSDOS partition at slot a.
Found 4.2BSD partition; size 524288000 (256000 MB), offset 1073743872
  adding 4.2BSD partition to slot d.

but the second bit (esp partition's b and d size), is wrong:

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 1073741824      2048      MSDOS                     # (Cyl.      1 - 524288)
 b:     16384 1073743872     4.2BSD   1024  8192    16  # (Cyl. 524289 - 524296)
 c: 1952151552         0     unused      0     0        # (Cyl.      0 - 953198)
 d:     16384 1073743872     4.2BSD   1024  8192    16  # (Cyl. 524289 - 524296)

(first time b was created, re-run and d gets created ...)
(I'm not even sure I'm ment to run mbrlabel - fdisk.8 mentions it but 
disklabel.8 does not).

>How-To-Repeat:
Run mbrlabel /dev/sd0
>Fix:



Home | Main Index | Thread Index | Old Index