Bug#610952: debian-installer: Partman can't create correct partitions
reassign 610952 util-linux
forcemerge 613589 610952
thanks
After a bit more searching I found that the partition table created by
partman is perfectly fine, but cfdisk in squeeze is just too stupid to
display it correctly.
(parted) unit s
(parted) print
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 67108864s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 2048s 2000895s 1998848s primary linux-swap(v1)
2 2000896s 67106815s 65105920s primary ext4
This bug has been fixed upstream and should be fixed in Wheezy, but the
request for backporting the fix in Bug #610952 has not brought any
result.
Bernhard
> I think this belongs to partman-partitioning, marking the version in
> Squeeze affected as I can reproduce it. And I think it should have at
> least normal severity.
> Installing 6.0.5 using pxeboot on a 35GB VMware container with the
> following recipe
>
> d-i partman-auto/expert_recipe string \
> boot-root :: \
> 768 10000 1024 linux-swap \
> $primary{ } method{ swap } format{ } \
> . \
> 2048 100000 -1 ext4 \
> $primary{ } method{ format } format{ } \
> use_filesystem{ } filesystem{ ext4 } \
> mountpoint{ / } \
> .
>
> results in the following partition table:
>
> root@debian:~# fdisk -l
>
> Disk /dev/sda: 34.4 GB, 34359738368 bytes
> 255 heads, 63 sectors/track, 4177 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x000455f5
>
> Device Boot Start End Blocks Id System
> /dev/sda1 1 125 999424 82 Linux swap /
> Solaris
> Partition 1 does not end on cylinder boundary.
> /dev/sda2 125 4178 32552960 83 Linux
>
> You cannot even display that partition table in cfdisk because it bails
> out
>
> FATAL ERROR: Bad primary partition 1:
> Partition ends in the final partial cylinder
> Press any key to exit cfdisk
>
> As described in
> https://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/551965
> adding
>
> d-i partman/alignment select cylinder
>
> fixes the issue.
>
> root@debian:~# fdisk -l
>
> Disk /dev/sda: 34.4 GB, 34359738368 bytes
> 255 heads, 63 sectors/track, 4177 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x0004c37b
>
> Device Boot Start End Blocks Id System
> /dev/sda1 1 124 995998+ 82 Linux swap /
> Solaris
> /dev/sda2 125 4177 32555722+ 83 Linux
>
> Regards,
> Bernhard
--
Reply to: