usb drive: resized partition using gparted, now it won't automount
UbuntuThis forum is for the discussion of Ubuntu Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
[SOLVED] usb drive: resized partition using gparted, now it won't automount
I had been using my USB stick for some time, and Ubuntu has always automatically mounted the drive and even opened up a Nautilus window for it.
Then I decided to try to make a bootable "distro-on-a-stick", so I used GParted to resize the single partition that was already on the USB drive and add others in the newly-freed space. After miserably failing at getting a bootable OS on the stick, I went back to GParted and removed the extra partitions that I had created, and expanded the original partition to span the entire stick.
Now when I insert the stick, it does not automount. Nautilus still contains a reference to the USB stick in its "Places" pane on the left, and when I click that it will mount the partition on the USB stick. However, I think the automount is still hosed, and that the reference to the USB stick in Nautilus is likely just something that Nautilus has cached. The device name is still the same as before, so it's not out of the question that Nautilus just remembers the USB stick by its previous device name.
I've done some searching, and found that automounting in Gnome is mediated by gnome-volume-manager. I've checked and this is running, but it's still not automounting. Where do I go from here to troubleshoot this?
Last edited by retrovertigo; 08-27-2008 at 08:58 AM.
Reason: added "[SOLVED]" to the thread title
When the stick is mounted, try right clicking it and going to properties. You may have the option to set automount there.
Right-clicking the "Places" entry only lets me unmount, open, or open in new window. I navigated to the mount point for the USB stick and right clicked in the Nautilus window and selected "Properties", but found no option to automatically mount it.
I don't know why this didn't turn up in my google searches, but I went to GParted's homepage and found the following in their FAQ:
8 : Why has Gnome automounting of devices stopped working after gparted terminated abnormally?
GParted version 0.3.6 (and many earlier versions) created a file to prevent problems that occur if a device is automounted while gparted is working on the device. This file is removed when GParted exits normally. However, if GParted crashed it could leave this file on the computer.
Newer GParted versions (0.3.7 and greater) do not use this file, and instead rely on hal-lock to acquire device locks.
To fix the problem you can do one of the following:
1. Remove the file /usr/share/hal/fdi/policy/gparted-disable-automount.fdi
2. Start and then exit gparted. This will also remove the file.
I did remember GParted exiting abnormally when I tried starting it for the first time. According to apt, the currently installed version of GParted was indeed <=0.3.6 (it's 0.3.5). I checked and there was no such file in /usr/share/hal/fdi/policy. However, I ran gksudo gparted and then closed GParted, and automount works again.
So, in short, RTFFAQ.
If one of the mods sees this, can you change the title of the thread to include [solved] at the beginning, to help people in the future who are googling for a solution to this problem?
Last edited by retrovertigo; 08-27-2008 at 08:56 AM.