Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to force USB writing ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Wed Apr 23, 2008 7:10 pm    Post subject: How to force USB writing ? Reply with quote

I admit I don't know anything about kernel and USB so I am not sure if there is a way to do it or not, but is it possible to force USB writing to be done at once and not to wait for when I want to take out my USB key to do it ?

This is especially annoying when I copy a folder with hundreds of small files on my USB key to see the "copying" take already a minute or two ... and then when I try to eject my key another minute or two to do the writing itself !! I can managed to wait for the writing to be done even if it lasts twice longer - but the wait for copying and wait before unmounting does not make sense from a practical point of view.

Any kernel, Gnome, nautilus option to force that behavior ?
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
danomac
l33t
l33t


Joined: 06 Nov 2004
Posts: 881
Location: Vancouver, BC

PostPosted: Wed Apr 23, 2008 9:49 pm    Post subject: Reply with quote

I think you'd have to mount the USB key manually with option "-o sync".

You could probably get the automounter to do that, but I've never bothered...
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Apr 23, 2008 10:17 pm    Post subject: Reply with quote

Use the flush option.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Apr 23, 2008 10:36 pm    Post subject: Reply with quote

PaulBredbury wrote:
Use the flush option.
This isn't really something that bothered me much, but I never knew about this option, so thanks, editing fstab now.

One question though; does it only work with vfat (and similar)?

With reiserfs it fails and I get 'warning: unknown mount option "flush"' in dmesg...
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Apr 23, 2008 11:04 pm    Post subject: Reply with quote

Hopeless wrote:
PaulBredbury wrote:
Use the flush option.
This isn't really something that bothered me much, but I never knew about this option, so thanks, editing fstab now.

One question though; does it only work with vfat (and similar)?

With reiserfs it fails and I get 'warning: unknown mount option "flush"' in dmesg...
It's specific to FAT filesystems, as noted in the thread (which quoted the kernel release notes).
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Apr 23, 2008 11:18 pm    Post subject: Reply with quote

timeBandit wrote:
Hopeless wrote:
PaulBredbury wrote:
Use the flush option.
This isn't really something that bothered me much, but I never knew about this option, so thanks, editing fstab now.

One question though; does it only work with vfat (and similar)?

With reiserfs it fails and I get 'warning: unknown mount option "flush"' in dmesg...
It's specific to FAT filesystems, as noted in the thread (which quoted the kernel release notes).
damnit.

/me goes away to learn to read...
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Thu Apr 24, 2008 3:46 pm    Post subject: Reply with quote

PaulBredbury wrote:
Use the flush option.

Sounds good. Thanks.

Small follow up that was not clearly answered in other thread is how to make that flush the default. Apparently KDE has it on by default (if response was correct) but not Gnome. I use several external hard drives all the time, so my USB stick never get the same /dev/sdX so a fstab line is impossible to set up. I am looking at automount now but not sure if that will do it.
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum