[Parted-maintainers] Bug#593689: parted: ignores start point on a msdos disklabel
Marc Haber
mh+debian-bugs at zugschlus.de
Fri Aug 20 11:14:32 UTC 2010
Package: parted
Version: 2.3-1
Severity: normal
Hi,
When I'm asking parted to begin a primary partition at 1 MB into the
disk, it silently ignores this request and starts the partition at
sector 63 anyway.
See:
$ parted --script /dev/sda print free
Model: ATA HITACHI_DK23FB-4 (scsi)
Disk /dev/sda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
32.3kB 40.0GB 40.0GB Free Space
$ parted --script /dev/sda unit s print free
Model: ATA HITACHI_DK23FB-4 (scsi)
Disk /dev/sda: 78140160s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
63s 78140159s 78140097s Free Space
$ parted --script /dev/sda unit MB mkpart primary ext2 1 1001
$ parted --script /dev/sda print free
Model: ATA HITACHI_DK23FB-4 (scsi)
Disk /dev/sda: 40.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 1001MB 1001MB primary ext3
1001MB 40.0GB 39.0GB Free Space
$ parted --script /dev/sda unit s print free
Model: ATA HITACHI_DK23FB-4 (scsi)
Disk /dev/sda: 78140160s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 63s 1955078s 1955016s primary ext3
1955079s 78140159s 76185081s Free Space
When I use "unit s", parted works as advertised.
Greetings
Marc
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.35.2-zgws1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages parted depends on:
ii libblkid1 2.17.2-3.1 block device id library
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libdevmapper1.02.1 2:1.02.48-2 The Linux Kernel Device Mapper use
ii libncurses5 5.7+20100313-2 shared libraries for terminal hand
ii libparted0debian1 2.3-1 The GNU Parted disk partitioning s
ii libreadline6 6.1-3 GNU readline and history libraries
ii libuuid1 2.17.2-3.1 Universally Unique ID library
parted recommends no packages.
Versions of packages parted suggests:
ii parted-doc 2.3-1 The GNU Parted disk partition resi
-- no debconf information
More information about the Parted-maintainers
mailing list