After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 778821 - Unable to format USB drive
Unable to format USB drive
Status: RESOLVED DUPLICATE of bug 768031
Product: nautilus
Classification: Core
Component: File and Folder Operations
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-17 10:33 UTC by Paul Menzel
Modified: 2017-08-23 10:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paul Menzel 2017-02-17 10:33:03 UTC
Plugging in a USB pen storage drive with an CentOS installer on it.

```
$ lsblk -fs /dev/sdb*
NAME  FSTYPE  LABEL           UUID                                 MOUNTPOINT
sdb   iso9660 CentOS 7 x86_64 2016-12-05-13-20-23-00               
sdb1  iso9660 CentOS 7 x86_64 2016-12-05-13-20-23-00               
└─sdb iso9660 CentOS 7 x86_64 2016-12-05-13-20-23-00               
sdb2  vfat    ANACONDA        9940-FF04                            
└─sdb iso9660 CentOS 7 x86_64 2016-12-05-13-20-23-00
```

When wanting to format it as FAT32 in Nautilus, it fails with the error below.

> Error formatting volume
>
> This partition cannot be modified because it contains a partition table; please reinitialize layout of the whole device. (udisks-error-quark, 11)

It’d be great to integrate that better, so that a “normal” user can format the drive.

PS: Hopefully, I selected the correct component.
Comment 1 Ondrej Holy 2017-02-17 10:54:11 UTC
See the following bug report to know the rationale behind:
https://bugs.freedesktop.org/show_bug.cgi?id=76178

Yea, Nautilus could probably offer to format the whole device if UDISKS_ERROR_NOT_SUPPORTED is returned, but it would be tricky...

Workaround: Open Gnome Disks -> Select correct device -> Use format disk option from menu...
Comment 2 António Fernandes 2017-08-23 10:36:22 UTC

*** This bug has been marked as a duplicate of bug 768031 ***