# parted /dev/sde Warning: Device /dev/sde has a logical sector size of 2048. Not all parts of GNU Parted support this at the moment, and the working code is HIGHLY EXPERIMENTAL. GNU Parted 1.8.8 Using /dev/sde Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mkpart primary ext2 129kB 2040MB Warning: You requested a partition from 127kB to 2040MB. The closest location we can manage is 129kB to 2040MB. Is this still acceptable to you? Yes/No? Yes You found a bug ... Command History: mkpart primary ext2 129kB 2040MB Yes Error: SEGV_MAPERR (Address not mapped to object) Aborted # parted /dev/sde unit co print unit s print Warning: Device /dev/sde has a logical sector size of 2048. Not all parts of GNU Parted support this at the moment, and the working code is HIGHLY EXPERIMENTAL. Model: CBM Flash Disk (scsi) Disk /dev/sde: 2041MB Sector size (logical/physical): 2048B/512B Partition Table: msdos Number Start End Size Type File system Flags Model: CBM Flash Disk (scsi) Disk /dev/sde: 996607s Sector size (logical/physical): 2048B/512B Partition Table: msdos Number Start End Size Type File system Flags Reproducible: Always Steps to Reproduce: 1.Get a USB CBM Flash drive with 2048 Byte sectors 2.Plug it in 3.Try to partition it. Actual Results: # parted /dev/sde Warning: Device /dev/sde has a logical sector size of 2048. Not all parts of GNU Parted support this at the moment, and the working code is HIGHLY EXPERIMENTAL. GNU Parted 1.8.8 Using /dev/sde Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mkpart primary ext2 129kB 2040MB Warning: You requested a partition from 127kB to 2040MB. The closest location we can manage is 129kB to 2040MB. Is this still acceptable to you? Yes/No? Yes You found a bug in GNU Parted! Here's what you have to do: Don't panic! The bug has most likely not affected any of your data. Help us to fix this bug by doing the following: Check whether the bug has already been fixed by checking the last version of GNU Parted that you can find at: http://ftp.gnu.org/gnu/parted/ Please check this version prior to bug reporting. If this has not been fixed yet or if you don't know how to check, please visit the GNU Parted website: http://www.gnu.org/software/parted for further information. Your report should contain the version of this release (1.8.8) along with the error message below, the output of parted DEVICE unit co print unit s print and the following history of commands you entered. Also include any additional information about your setup you consider important. Command History: mkpart primary ext2 129kB 2040MB Yes Error: SEGV_MAPERR (Address not mapped to object) Aborted Expected Results: Partitioned the flash drive. My actual drive says 2GB and 3M on it.
This is definitely an upstream problem. It looks like http://parted.alioth.debian.org/cgi-bin/trac.cgi/ticket/43. Also, it does say: Warning: Device /dev/sde has a logical sector size of 2048. Not all parts of GNU Parted support this at the moment, and the working code is HIGHLY EXPERIMENTAL.
Since upstream's aware of the issue, we'll wait for them to patch it. Feel free to REOPEN this (or even just comment) if a patch is released or a newer parted version with this fixed.