Gparted Remounting Drives

Bug #734129 reported by Jmadero
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: gparted

Problem: Gparted remounts drives using the Ubuntu Netbook Remix 10.04 after every step. This is extremely dangerous for drive data. If you do more than one thing (ie. move and then resize) gparted will move the partition and then remount all partitions, as of now I see gparted then giving errors when it comes tot he resize as it says the drive is mounted and it's not causing loss of data but I suspect a mid-partition editing remount is not a good thing.

Expected Outcome: Gparted should not mount drives automatically, ever. I'm not sure if this is a gparted issue or if it's a Unity issue...I can't really test it on my other machine because I don't want to risk losing gigs of things. I'll try to give more details if you need me to.

Thanks in advance

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gparted 0.6.2-1ubuntu1.1
ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
Uname: Linux 2.6.35-27-generic x86_64
NonfreeKernelModules: wl
Architecture: amd64
Date: Sat Mar 12 18:39:36 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gparted

Revision history for this message
Jmadero (jmadero) wrote :
Revision history for this message
Curtis Gedak (gedakc) wrote :

GParted uses programs, such as hal-lock, to disable automounting of disk partitions.

If new partitions are being mounted upon creation, then it would appear that somehow automounting is still active.

Would you be able to provide the output from the following command while you have the GParted window running?

     ps -ef | grep gparted

Revision history for this message
Jmadero (jmadero) wrote :

After doing a resize of one of the partitions on the computer I get this:

Error: Could not get root for mount '(null)' and all partitions mount, furthermore, I have three partitions on the computer (NTFS, EXT4 root, ETX4 home. These partitions are as followed:

NTFS: 140 Gig
Root: 4.4 Gigs
Home: 3.1 Gigs

It seems like Ubuntu is trying to double mount the drives (I get 6 nautilus windows opening after Gparted action each partition opens two nautilus Windows and on the left in "Places" the partitions are listed twice).

Here is the output of ps -ef | grep gparted

ubuntu 3015 1 0 10:37 ? 00:00:00 gksu /usr/sbin/gparted
root 3016 3015 0 10:37 ? 00:00:00 /bin/sh /usr/sbin/gparted
root 3023 3016 9 10:37 ? 00:00:13 /usr/sbin/gpartedbin
ubuntu 3210 2963 0 10:40 pts/0 00:00:00 grep --color=auto gparted

Also I'm attaching screenshot showing drives repeated in places, the NTFS drive only shows one, the other two both are doubled, one version of each is mounted, the other looks like it's not.

The other point is that this is running the Ubuntu Netbook Remix Live Distro, I have to run the live because I am editing the size of the home partition and root partition. The dependencies above are on another system (no internet on live distro).

Revision history for this message
Curtis Gedak (gedakc) wrote :

It would definitely appear that hal-lock is not running. Perhaps hal-lock is not included on the Ubuntu Netbook Remix Live Distro?

On my system running kubuntu 10.04, I get the following results from the ps command. The important entry here is hal-lock since hal-lock prevents automounting of devices.

$ ps -ef | grep gparted
gedakc 8688 1772 2 19:37 ? 00:00:00 /usr/bin/gksu /usr/local/sbin/gparted
root 8693 8688 0 19:37 ? 00:00:00 /bin/sh /usr/local/sbin/gparted
root 8709 8693 0 19:37 ? 00:00:00 hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run /usr/local/sbin/gpartedbin
root 8710 8709 4 19:37 ? 00:00:00 /usr/local/sbin/gpartedbin
gedakc 8904 2045 0 19:37 pts/1 00:00:00 grep --color=auto gparted
$

You might try using a different Live CD, perhaps even the GParted Live image from the gparted.org web site.

Revision history for this message
Phillip Susi (psusi) wrote :

Curtis, hal was removed a while ago, maybe you mean udisks --inhibit?

Jmadero, you said in your description 10.04, but the lines below say you are running 10.10. Which one is correct? Also are you able to reproduce this?

Changed in gparted (Ubuntu):
status: New → Incomplete
Revision history for this message
Curtis Gedak (gedakc) wrote :

Phillip, GParted uses the available utilities it can find to prevent mounting of disks while GParted is running.

The script that starts GParted can be viewed at the following link:
http://git.gnome.org/browse/gparted/tree/gparted.in

GParted checks for hal-lock, udisks, and devkit-disks. In the case of recent Ubuntu versions, you are correct in that GParted will use "udisks --inhibit".

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gparted (Ubuntu) because there has been no activity for 60 days.]

Changed in gparted (Ubuntu):
status: Incomplete → Expired
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.