mainGNU Parted - Support: sr #109945, Removed a USB device after wiping...

 
 

sr #109945: Removed a USB device after wiping its partition but before exiting

Submitter:  None
Submitted:  Wed 28 Aug 2019 06:36:17 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  Invalid
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 13 Nov 2019 12:40:42 AM UTC, comment #1: 

I would suggest not doing that. I don't think it's a situation we should be expected to handle cleanly.

Brian C. Lane <bcl>
Group administrator
Wed 28 Aug 2019 06:36:17 AM UTC, original submission:  

(parted) print devices                                                   
/dev/sda (500GB)
/dev/sdb (500GB)
/dev/sdc (1000GB)
/dev/sr0 (2097MB)
/dev/sdd (73.4MB)
(parted) select /dev/sdd
Using /dev/sdd
(parted) print                                                           
Model:  USB DISK Pro (scsi)
Disk /dev/sdd: 73.4MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
 1      0.00B  73.4MB  73.4MB  fat16

(parted) rm 1                                                            
Warning: Partition /dev/sdd is being used. Are you sure you want to continue?
Yes/No? y                                                                
(parted) print                                                           
Model:  USB DISK Pro (scsi)
Disk /dev/sdd: 73.4MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End  Size  File system  Flags

(parted) print devices                                                   
/dev/sdc (1000GB)
/dev/sdd (73.4MB)
/dev/sda (500GB)
/dev/sdb (500GB)
/dev/sr0 (2097MB)
Error: Error opening /dev/sdd: No medium found
Retry/Cancel? c                                                          
(parted) exit                                                            
  align-check TYPE N                        check partition N for TYPE(min|opt)
        alignment
  help [COMMAND]                           print general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, available
        devices, free space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and
        END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected
        device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition
        NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and copyright
        information of GNU Parted
(parted) quit                                                            


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 (3.2)
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:
help
print devices
print all
print devices
help
print
print all
select /dev/sdb
print
rm 1
select /dev/sdc
print
rm 1
print devices
select /dev/sdd
print
rm 1
y
print
print devices
c
exit
quit

Error: SEGV_MAPERR (Address not mapped to object)
Backtrace has 9 calls on stack:
  9: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x45) [0x7f01bc422c45]
  8: parted(+0xbc7b) [0x55b4946c9c7b]
  7: /lib/x86_64-linux-gnu/libc.so.6(+0x43f60) [0x7f01bc1f2f60]
  6: parted(+0x8ad1) [0x55b4946c6ad1]
  5: parted(+0x8bbf) [0x55b4946c6bbf]
  4: parted(interactive_mode+0x12c) [0x55b4946cbecc]
  3: parted(main+0x13ab) [0x55b4946c4deb]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f01bc1d5b6b]
  1: parted(_start+0x2a) [0x55b4946c4e7a]


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 (3.2)
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.

Assertion (0) at ../../parted/ui.c:356 in function sa_sigsegv_handler() failed.

Aborted

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bcl (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-13 bcl Open/ClosedOpen Closed
        StatusNone Invalid

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code