How to automount USB flash drives read-write in 9.10

Asked by FredB

Greetings,

I am trying to figure out how to set automount options so that USB flash drives are automounted read-write instead of read-only.

I have several USB flash drives that automount read-write when plugged into Macs or PCs, but the Ubuntu 9.10 automounter mounts them as read-only filesystems.

I can also write to the drives successfully on Macs and PCs so it's not a matter of the write-protect tab (I actually tried a couple of drives that don't have write protect tabs).

I looked at the gconf-editor and there are only 2 toggle swithes: one that controls automouting, the other controls whether the media browser is launched. I was hoping there would be some option there.

Any and all help would be greatly appreciated.

Fred

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please perform an device filesystem check from Win to be sure there are not error on filesystem and be sure they are not dirty removed, error on filesystem is the main reason that made Ubuntu mount them in read only mode.

Hth

Revision history for this message
FredB (fmbulah) said :
#2

Thanks for the reply. Ok, I can do that. But even if there are errors, the Mac (which is Unix based) and Windows seem to ignore them and allow the device to be mounted read-write. Ubuntu seems to be overly picky. I've tried many flash drives and it happening on all of them, and not having any problems on Mac OS X or Windows.

What I want to do is have the automounter ignore any errors. I cannot figure out how and where to set the parameters on the mount command that the automounter is using for USB devices. I have to believe there is a way to do this. I was considering disabling automounting and then writing a udev rule to manually mount drives, but that seems like an overly complicated thing to do.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Why you want to manage filesystem devices (expecially write to it) if they have errors on filesystem... ?

When i have some devices with errors on it i usually copy entire device contents on a directory on my Ubuntu pc then reformat them using gparted and i'm sure i have no errors.

Then i copy the previous save directory contents back to them.

Please install gparted package... to reformat your device you will find gparted into menu System→Administration→gparted

Hth

Revision history for this message
FredB (fmbulah) said :
#4

Again, I would like to configure the automounter to force mount in read-write mode and ignore errors. Mac OS X is Unix and it reads the drive, no problem. Windows - which is not as resilient as Linux - is doing the same thing. Whatever errors may or may not exist are not preventing the drives from being read in these environments.

I'm not debating whether there are errors in the filesystem. What I am trying to find out is whether there is a way to ignore them by configuring the automounter.

I can install gparted, but reformatting every drive that works in all other OSes - including Unix - whenever there is an error is not a practical option for me.

Thanks again.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

You could add an entry for the device in /etc/fstab

Usually gvfs sorts this out. Make sure you ALWAYS use the "safely remove hardware" action in ANY OS or you will damage your data, this can also make devices like this NOT automount so don't abuse your hardware.

Revision history for this message
dilbert (jodil-willems) said :
#6

I agree with FredB: this shouldn't be an issue anymore.

Since Win98SE every WinOS automatically mounts an inserted USB stick. And users shouldn't have to go manually edit an fstab anymore: this should be a standard feature.

Afraid it's a safety issue? Make a setting that automount needs root privilege to change this and show a pop-up screen when a USB stick is inserted saying that it needs root privilege and where to set it. Once you change that: no pop-up, only automount.

It's not that hard to implement.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Do you have gvfs-fuse installed?

Revision history for this message
dilbert (jodil-willems) said :
#8

I have gvfs-fuse installed but the solution can be found here: http://ubuntuforums.org/showthread.php?t=1661270

Apparently it has to do with the fact that I installed my OS from pen-drive/USB-stick.

Can you help with this problem?

Provide an answer of your own, or ask FredB for more information if necessary.

To post a message you must log in.