LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   usb drive: resized partition using gparted, now it won't automount (https://www.linuxquestions.org/questions/ubuntu-63/usb-drive-resized-partition-using-gparted-now-it-wont-automount-665345/)

retrovertigo 08-25-2008 05:29 PM

[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?

{BBI}Nexus{BBI} 08-25-2008 05:32 PM

Quote:

Originally Posted by retrovertigo (Post 3259528)
...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.

When the stick is mounted, try right clicking it and going to properties. You may have the option to set automount there.

retrovertigo 08-25-2008 05:41 PM

Quote:

Originally Posted by {BBI}Nexus{BBI} (Post 3259530)
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.

retrovertigo 08-27-2008 08:55 AM

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:


Quote:

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
or,
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. :D


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?


All times are GMT -5. The time now is 08:24 PM.