You are not logged in.

#1 2006-05-03 18:59:34

EmbraceThePenguin
Member
From: New Mexico, USA
Registered: 2004-08-09
Posts: 197

Removeable media sync options

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

#2 2006-05-03 20:14:07

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Removeable media sync options

You can put sync as an option in fstab if the device is listed there. Otherwise, I'm not sure.

Offline

#3 2006-05-03 20:28:10

EmbraceThePenguin
Member
From: New Mexico, USA
Registered: 2004-08-09
Posts: 197

Re: Removeable media sync options

iBertus wrote:

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

#4 2006-05-04 00:05:21

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Removeable media sync options

Not sure, udev has never mounted anything automatically on my system.

Offline

#5 2006-05-04 00:24:11

EmbraceThePenguin
Member
From: New Mexico, USA
Registered: 2004-08-09
Posts: 197

Re: Removeable media sync options

iBertus wrote:

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

#6 2006-05-04 01:43:07

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Removeable media sync options

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

#7 2006-05-04 02:54:16

EmbraceThePenguin
Member
From: New Mexico, USA
Registered: 2004-08-09
Posts: 197

Re: Removeable media sync options

iBertus wrote:

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 wink

Joe

Offline

#8 2006-05-04 06:41:14

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Removeable media sync options

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

#9 2006-05-04 07:49:25

torindan2
Member
Registered: 2004-07-15
Posts: 74

Re: Removeable media sync options

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

#10 2006-05-05 08:15:49

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Removeable media sync options

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

#11 2006-05-05 12:19:51

Mikos
Member
From: Prague, Czech Republic
Registered: 2005-05-03
Posts: 228
Website

Re: Removeable media sync options

FUBAR wrote:

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

#12 2006-05-05 14:26:19

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Removeable media sync options

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

Board footer

Powered by FluxBB