Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207340 - sys-apps/parted-1.8.8 partitioning 2048 sector size USB Flash drive causes SEGV_MAPERR
Summary: sys-apps/parted-1.8.8 partitioning 2048 sector size USB Flash drive causes S...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-25 06:01 UTC by John Klug
Modified: 2008-01-25 19:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Klug 2008-01-25 06:01:54 UTC
# 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.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-01-25 13:24:30 UTC
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.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2008-01-25 19:19:42 UTC
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.