usb-drive is automaticly remounted during format stopping gparted

Bug #65552 reported by Martin Jensen
8
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gparted

I'm not too sure whether this is a problem with gparted or whatever program that does the automounting of usb-drives. Anyways .. there seems to be a slight annoying problem:

1) I hook up an usb-drive, it starts as usual and give me access to it.

2) I unmount it to format it using gparted.

3) I start up gparted and make sure that the drive is unmounted.

4) After selecting the filesystem and starting the format the drive is automaticly mounted again by gnome/ubuntu. This prevents gparted from starting the format. Gparted returns an error that it is unable to run mkdosfs because the target drive is already mounted.

This happens every time. I could try to speculate about whether gparted signals ubuntu to remount the drive or whatever - but I really have no clue ;)

Regards

/Martin

Revision history for this message
Martin Jensen (martin-mdc) wrote :

I forgot to mention: this is on a fully updated edgy.

Revision history for this message
Martin Jensen (martin-mdc) wrote : another note

Unmounting the drive and running formating the drive from terminal does not cause remount of the usb drive. Just throught I would mention it as it indicates that it is gparted that causes gnome to remount the drive.

Revision history for this message
Rocko (rockorequin) wrote :

I can confirm the problem.

You can workaround it by disabling auto-mounting of hot-plugged drives (via System / Preferences / Removable Drives and Media), then creating the file system, and then re-enabling auto-mounting.

But it would obviously be much better if GParted did this automatically when creating the file system, particularly as the workaround is not at all obviously intuitive.

Changed in gparted:
status: Unconfirmed → Confirmed
Revision history for this message
Alec Wright (alecjw) wrote :

It seems to be fixed in the latest feisty, but it would be nice to see it in older releases too.

Revision history for this message
Shashank Chintalagiri (shashank-chintalagiri) wrote :

The problem is not fixed in feisty. Atleast, I have the same issue. Not with removable media though. I dont have a USB drive to test with right now. I have the problem with internal hard drives. All three of them show the same behaviour on 2 computers (with the same ubuntu install, only difference being a recofigure of xserver-xorg). None of the partitions are on the fstab. All of them automount in the middle of the creating of the new partition - just after the partition is created but before the new filesystem is written.

This bug makes gparted useless as a partitioning tool.

Revision history for this message
rmadla (anson-jhu) wrote :

Adding a comment here generates a "this bug is a duplicate" warning - but it doesn't say what this bug duplicates! I've spent 15 minutes or so searching for the bug it duplicates to no avail, so:

This is still a bug in Ubuntu 8.04, as of 3 March 2009. I have been doing everything I can think of to copy a partition to unallocated space on my USB drive, but each time I make the attempt, the source drive is remounted and gparted refuses to copy it, informing me that the failure is due to the fact that the source drive is mounted. I am at a loss as to the true source of the error, as was the original poster.

The work-around suggested by Rocko in 2006 no longer works in 2009: "Removable Drives and Media" no longer controls the auto-mounting of USB drives.

Revision history for this message
Simon Ruggier (simon80) wrote :

At the top of the page, it should say: "Duplicate of bug #37768"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.