Thread: How to bypass USB thumb drive "FS queue" in Linux!?!?

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    How to bypass USB thumb drive "FS queue" in Linux!?!?

    I have this problem with copying files from my local HD to a USB thumb drive. The computer copies very fast... but to a temporary folder somewhere on my system (it doesn't say this, though). In fact, it's not even until I go to unmount it that the system actually starts putting data on the thumb drive (and the little led starts flashing to indicate I/O). While it's performing the copying and unmounting, I can go to the System Activity window and see that the process "pdflush" (and one other that I forget at the moment) have a CPU status of "disk sleep" or something like that.

    How can I disable this crappy feature in Fedora 11?
    Thanks

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by Yarin View Post
    How can I disable this crappy feature in Fedora 11?
    Thanks
    Reformat and install Windows

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Yarin View Post
    I have this problem with copying files from my local HD to a USB thumb drive. The computer copies very fast... but to a temporary folder somewhere on my system (it doesn't say this, though). In fact, it's not even until I go to unmount it that the system actually starts putting data on the thumb drive (and the little led starts flashing to indicate I/O). While it's performing the copying and unmounting, I can go to the System Activity window and see that the process "pdflush" (and one other that I forget at the moment) have a CPU status of "disk sleep" or something like that.

    How can I disable this crappy feature in Fedora 11?
    Thanks
    It's not using a "temporary folder," this is just normal disk caching. You can mount the USB drive in sync mode, which will cause all writes to the thumb drive to take place immediately. If you are mounting manually, just add "-o sync" to the mount command. If you're using hotplug, how you configure it depends on the distro
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  4. #4
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    >> Reformat and install Windows
    Actually, Windows does this too, XP specifically, didn't though

    @brewbuck:
    Yes, I knew that what this was called, don't know why I forgot.
    Anyway, the option works, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie problems after first linux install ever...
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-24-2003, 03:04 PM
  2. Will linux support this hardware?
    By Leeman_s in forum Linux Programming
    Replies: 0
    Last Post: 01-19-2003, 01:30 PM
  3. Linux - Second Hard Drive
    By MethodMan in forum Tech Board
    Replies: 5
    Last Post: 12-22-2002, 02:46 AM
  4. how to use USB disk in linux ?
    By black in forum Linux Programming
    Replies: 12
    Last Post: 07-15-2002, 11:56 PM
  5. Dead C drive = time to try Linux?
    By Aran in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 04-06-2002, 08:39 PM