LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2015, 03:19 AM   #1
dsta
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Rep: Reputation: Disabled
Question Fedora - writing data to USB drive


How does fedora write files to USB drive? Every time (I'm using Fedora 22) I write files to USB drive, it seems to be writing the files, but when I eject the drive, it warns me not to remove the drive until data is written. It seems as if Linux copies the files to some buffer and only starts writing the data to the actual drive once you want to remove it. Is that true? If it is, is there a setting where I can change this behavior?
 
Old 08-05-2015, 03:43 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,577

Rep: Reputation: 106Reputation: 106
In Linux data are stored in the RAM and then copied delayed to the drive (SSD, HDD, USB drive, ...). This also depends on the filesystem used.
You can force the writing to any memory with the command "sync".
 
Old 08-05-2015, 03:49 AM   #3
dsta
LQ Newbie
 
Registered: Jul 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
What is they usual delay when this is done? Can it be changed for a specific type of drive?
 
Old 08-05-2015, 04:30 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,383

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
You need a faster usb drive usually.

Linux and some other OS's sort of make it look like has copied the files but really hasn't. Copying 6 gig to a usb 2 will take some time no matter what.

Last edited by jefro; 08-05-2015 at 08:56 PM.
 
Old 08-05-2015, 08:49 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
how are you mounting the usb thumb drive ?
100 percent auto ?
a fstab entry
a udev rule and fstab ?
how ?


what format is the USB thumb drive ?
Microsoft NTFS ?
or ext 3 or 4 ?
or something else ?

and are you clicking "safely remove drive"
or manually running "umount"
 
  


Reply

Tags
fedora 20, usb drive


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Writing /dev/zero to a drive with DD still leaves data? Automatic Linux - Newbie 11 03-16-2013 08:12 PM
Writing data to /dev/usb/lp0 kewl Linux - Newbie 1 07-07-2010 11:10 AM
Writing to a USB hard drive Rekna Linux - Hardware 3 01-08-2007 11:18 AM
Writing to a USB hard drive in Ubuntu rockatship Linux - Hardware 3 09-18-2005 04:18 PM
usb thumb drive writing chii-chan Linux - General 3 11-09-2003 07:53 PM


All times are GMT -5. The time now is 04:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration