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

Bug#474698: partman-base: Inconsistent output if sector size != 512 bytes

Package: partman-base
Severity: normal

Issue the following commands in the D-I shell:

~ # modprobe raid1
~ # mdadm --create /dev/md0 --auto=yes -l1 -n2 /dev/ram0 /dev/ram1
mdadm: array /dev/md0 started.

Then restart partman.  With the text backend it says:

  6. RAID1 device #0 - 8.3 MB Software RAID device     
  7. >      #1   4.2 MB      

Note the inconsistent size report.  This is probably caused by
the ramdisks having sector size of 1024 bytes, as per:

~ # fdisk -l /dev/md0
Note: sector size is 1024 (not 512)

Disk /dev/md0: 8 MB, 8323072 bytes
2 heads, 4 sectors/track, 1016 cylinders
Units = cylinders of 8 * 1024 = 8192 bytes

As persistent storage devices can also have non 512 byte sectors,
this issue can have real impact on the installer, at least by
confusing users.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (50, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Reply to: