LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-04-2015, 08:37 PM   #1
tonyfreeman
Member
 
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 196

Rep: Reputation: 30
Options to write to USB disk immediately


I have a 64G usb disk with ext4 file system that I write large files to every day. udev mounts the usb drive when I plug it in. I then use Nautilus to copy or move files onto the disk. The popup progress bar runs and goes away when the copy/move is done ... however ... the files are not really completely on the disk when the popup closes.

I'd like to configure things so that when the popup progress bar closes, I can be sure the files are on disk ready for me to eject the device (i.e. I don't want to have to type 'sync' and have to wait again and especially I don't want extra waiting for further writes to be done if I click on the eject button in nautilus).

I've been playing with tune2fs but was just wondering if there are kernel parameters to set as well.

I'd really like the file to write to the disk immediately and completely ... so was just wondering if there is a recipe for what I'm looking for?
 
Old 01-04-2015, 11:27 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You should mount the filesystem in USB Drive with sync option.

Code:
mount -t yourfs -o noatime,sync /dev/sdx1 /mnt/usb
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
64-current: USB installer over http/ftp does not write to disk ottavio Slackware - Installation 2 09-05-2013 03:25 PM
Cannot write to a USB flash disk yiux Linux - Hardware 2 04-29-2007 11:33 PM
How to write files immediately to flash drive. adds2one Linux - Hardware 7 10-06-2006 12:13 AM
remount USB Disk Read Write poetfreak MEPIS 1 08-30-2006 01:49 PM
Sharing USB Ext Disk -- can only Write as ROOT ( Hotplug ??) 1kyle Linux - Networking 4 08-12-2004 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration