You are not logged in.
I was wondering what file I would modify so I can set the mount sync option on my removable media (USB Key-chains, etc) so I can simply remove the device and not have to right click on it and "Safely Unmount" the device.
This is ok by me, by my kids kept wondering why their files were not on their devices after copying the files and simply removing the device from the computer.
Thanks!!!
Joe
Offline
You can put sync as an option in fstab if the device is listed there. Otherwise, I'm not sure.
Offline
You can put sync as an option in fstab if the device is listed there. Otherwise, I'm not sure.
Well, its a dynamically assigned device (sd?), so that would not work as there are no fstab listings for the device.
Does anyone know what file the mount command is located in when udev mounts the device?
Thanks for the reply...
Joe
Offline
Not sure, udev has never mounted anything automatically on my system.
Offline
Not sure, udev has never mounted anything automatically on my system.
Oh, yeah, I have USB storage devices and CD/DVD's that udev mounts the devices auto-magically; I thought that was standard now, but you might still use hotplug or something similar.
Now, my CD/DVD I have manually put into the FSTAB because I use applications that require a /mnt mount point; I suppose I could for my USB readers also, but I thought there would be a simpler way of doing it; However, this is Linux :-D
Anyway, I will keep searching around.
If someone has any ideas, I would appreciate it.
I will post a message on the mailing list as well to see if I get some ideas.
Thanks!!!
Joe
Offline
I'm not using hotplug, but I'm not getting the automount behaviour. I've thought of setting up something like ivman since I don't use GNOME or KDE just to get that feature. Maybe I'm missing a required package (I've got dbus and hal started).
Offline
I'm not using hotplug, but I'm not getting the automount behaviour. I've thought of setting up something like ivman since I don't use GNOME or KDE just to get that feature. Maybe I'm missing a required package (I've got dbus and hal started).
Oh, I use KDE and I think there is a primitive automounter feature built in.
It mounts just fine, but to unmount my storage devices, I have to right click on the icon that pops up on the desktop and click "Safely Remove."
For me, that is just fine as I am used to it; however, my kids, who are used to Windows and Mac at school, this is an extra step they want to avoid when they are in a hurry
Joe
Offline
Have a look at line 201 of /usr/share/hal/scripts/hal-system-storage-mount. Inserting "sync" there should work, but I did not test.
1000
Offline
I guess in autofs you can specify to unmount after a period of time (like 3 sec) check http://wiki.archlinux.org/index.php/AutoFS_HowTo
Offline
Using sync on USB drives will seriously degrade their performance. My USB 2.0 pendrive would only do 5.5kb/s, my external harddrive got to 2.0MB/s when using "sync".
With async, the pendrive reaches 4-5MB/s, the external disk around 18MB/s.
I'm using AutoFS with a timeout of 3 secs, it works well. All you need is 3 secs of patience before yanking the drive out (when you did write operations on it).
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
Using sync on USB drives will seriously degrade their performance.
It will degrade not only performance, but also lifetime of Flash memory. So _don't_ use 'sync'!
Offline
Yeah that too. Search the forum, there is/was a discussion on this subject.
[edit]
Found it!
[/edit]
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline