Your message dated Tue, 21 Aug 2007 17:32:03 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#314413: fixed in util-linux 2.13~rc3-6 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: util-linux Version: 2.12p-4 We tried to partition a big USB drive with sfdisk. But sfdisk refused to partition it. The drive has 1.2TB capacity. It has over 2^31 sector counts. # cat /proc/scsi/scsi Attached devices: Host: scsi3 Channel: 00 Id: 00 Lun: 00 Vendor: I-O DATA Model: HDZ-UE1.2TS Rev: 5601 Type: Direct-Access ANSI SCSI revision: 02 # echo 0,,b | sfdisk /dev/sdb Checking that no-one is using this disk right now ... OK Disk /dev/sdb: 145935 cylinders, 255 heads, 63 sectors/track Old situation: Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sdb1 0+ 145934 145935- 1172222887 83 Linux /dev/sdb2 0 - 0 0 0 Empty /dev/sdb3 0 - 0 0 0 Empty /dev/sdb4 0 - 0 0 0 Empty no room for partition descriptor sfdisk: bad input So I made a patch as follows: --- util-linux-2.12.orig/fdisk/sfdisk.c +++ util-linux-2.12/fdisk/sfdisk.c @@ -1869,6 +1888,7 @@ else delta = 0; if (delta < 0) { +#if 0 /*@@@@@*/ p->start -= delta; p->size += delta; if (is_extended(p->p.sys_type) && boxes == ONESECTOR) @@ -1877,6 +1897,17 @@ warn(_("no room for partition descriptor\n")); return 0; } +#else + unsigned long old_size = p->size; + p->start -= delta; + p->size += delta; + if (is_extended(p->p.sys_type) && boxes == ONESECTOR) + p->size = inc; + else if ( old_size <= -delta ) { + warn(_("no room for partition descriptor\n")); + return 0; + } +#endif } base = (!ep ? 0 : (is_extended(p->p.sys_type) ? Here is the screenshot of pathed version of sfdisk. # echo 0,,b | ./sfdisk /dev/s db Checking that no-one is using this disk right now ... OK Disk /dev/sdb: 145935 cylinders, 255 heads, 63 sectors/track Old situation: Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sdb1 0+ 145934 145935- 1172222887 83 Linux /dev/sdb2 0 - 0 0 0 Empty /dev/sdb3 0 - 0 0 0 Empty /dev/sdb4 0 - 0 0 0 Empty New situation: Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sdb1 0+ 145934 145935- 1172222887 b W95 FAT32 /dev/sdb2 0 - 0 0 0 Empty /dev/sdb3 0 - 0 0 0 Empty /dev/sdb4 0 - 0 0 0 Empty Warning: no primary partition is marked bootable (active) This does not matter for LILO, but the DOS MBR will not boot this disk. Successfully wrote the new partition table Re-reading the partition table ... If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 (See fdisk(8).) # The environment is: CPU: IOP80219 (Xscale) Distro: Debian 3.1 (sarge) Kernel: Linux 2.6.10-iop1 ( 2.6.10 + intel patch ) libc: 2.3.2.ds1-22 This is ARM machine, but this bug affects most of 32bit architectures, I think... Thanks. -- _._. __._ _ . ... _ .___ ._. _____ _... ._ _._ _.._. .____ _ . ... _ Kunihiko IMAI
--- End Message ---
--- Begin Message ---Source: util-linux Source-Version: 2.13~rc3-6 We believe that the bug you reported is fixed in the latest version of util-linux, which is due to be installed in the Debian FTP archive: bsdutils_2.13~rc3-6_i386.deb to pool/main/u/util-linux/bsdutils_2.13~rc3-6_i386.deb cfdisk-udeb_2.13~rc3-6_i386.udeb to pool/main/u/util-linux/cfdisk-udeb_2.13~rc3-6_i386.udeb fdisk-udeb_2.13~rc3-6_i386.udeb to pool/main/u/util-linux/fdisk-udeb_2.13~rc3-6_i386.udeb mount_2.13~rc3-6_i386.deb to pool/main/u/util-linux/mount_2.13~rc3-6_i386.deb util-linux-locales_2.13~rc3-6_all.deb to pool/main/u/util-linux/util-linux-locales_2.13~rc3-6_all.deb util-linux_2.13~rc3-6.diff.gz to pool/main/u/util-linux/util-linux_2.13~rc3-6.diff.gz util-linux_2.13~rc3-6.dsc to pool/main/u/util-linux/util-linux_2.13~rc3-6.dsc util-linux_2.13~rc3-6_i386.deb to pool/main/u/util-linux/util-linux_2.13~rc3-6_i386.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. LaMont Jones <[EMAIL PROTECTED]> (supplier of updated util-linux package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Tue, 21 Aug 2007 11:10:51 -0600 Source: util-linux Binary: util-linux cfdisk-udeb fdisk-udeb util-linux-locales bsdutils mount Architecture: all i386 source Version: 2.13~rc3-6 Distribution: unstable Urgency: low Maintainer: LaMont Jones <[EMAIL PROTECTED]> Changed-By: LaMont Jones <[EMAIL PROTECTED]> Description: bsdutils - Basic utilities from 4.4BSD-Lite cfdisk-udeb - Partition a hard drive (cfdisk) fdisk-udeb - Partition a hard drive (manual) mount - Tools for mounting and manipulating filesystems util-linux - Miscellaneous system utilities util-linux-locales - Locales files for util-linux Closes: 314413 424682 435272 438668 438771 Changes: util-linux (2.13~rc3-6) unstable; urgency=low . * more upstream changes - docs: add DEPRECATED to EXTRA_DIST - docs: update AUTHORS file - docs: add note about http://translationproject.org - man-pages: cleanup of chrt.1 and taskset.1 - mount: improve error message when helper program not present - setarch: cleanup licensing note - setarch: add sparc32bash alias to keep compatibility with sparc32 - setarch: add __alpha__ support - po: update de.po, vi.po, nl.po (from translationproject.org) * drop arch.1 man page. Closes: #438668 * deliver the right file for scriptreplay. Closes: #438771 * sfdisk: Allow drives over 2^31 sectors in size. Closes: #314413 * Deliver flock and flock.1. Closes: #435272 * hwclock.sh: Correct message. Closes: #424682 * cfdisk: switch back to slang2 * setarch: add parisc/parisc64 support * deliver setarch Files: 0982a9e7b5d99c7cbdc660a1af54c718 490106 base required util-linux_2.13~rc3-6.diff.gz 22d7a83ea24b77e6113b0bba2318f5c4 57232 utils required bsdutils_2.13~rc3-6_i386.deb 5c088f499ce6c3f3a9d151a2b25f240e 817 base required util-linux_2.13~rc3-6.dsc 9163562a7f4261e0e5c819c8aa1a67a2 571166 debian-installer extra cfdisk-udeb_2.13~rc3-6_i386.udeb 9e7fca402cc2e57a8a674efe0b4a96d3 65846 debian-installer extra fdisk-udeb_2.13~rc3-6_i386.udeb ca529ac113cda04b3d6606148e2c5420 416156 utils required util-linux_2.13~rc3-6_i386.deb eb07e3c9c953d509d9ca800a6d7653c5 1294942 utils optional util-linux-locales_2.13~rc3-6_all.deb eb21afff21894bfcf242886823150733 136344 admin required mount_2.13~rc3-6_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGyx25zN/kmwoKyScRAn0vAJwLmKzlFUm8eLg9NNPN6C56ZTBpCwCdF4+T Xuu/xs1JK2zi5Zq+/wDzGyc= =WRgc -----END PGP SIGNATURE-----
--- End Message ---

