LinuxQuestions.org
Help answer threads with 0 replies.
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-13-2009, 02:27 PM   #1
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
USB read-only AFTER accessing 10 files


Here is something that I haven't seen before. I have my jumpdrive that I have all my school work on. Gizmo Jr. 1GB... nothing fancy. A relatively new Slackware 12.2 install (installed a couple days after its release).

Here's the deal:

I plug my jumpdrive in, HAL recognizes it, I mount it via clicking on the icon on my desktop (XFCE4). Jumpdrive works, I can open my documents or whatever.

BUT, if I open a thunar window and go to my jumpdrive, and go in a few directories (say /media/disk/School/Assignments/someclass/), it shows things as read-only. So I go back a directory to change permissions on the folder... The folder is read-only. Go back another directory, and that directory is read-only.... but if I only access a couple files at a time, and don't browse the drive with thunar it works great (rw)... My groups for my user are accurate, otherwise I wouldn't be able to mount the drive.

Mount displays:

Code:
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=winnt,uid=1000)
cat /etc/group | grep "username" displays:
Code:
disk:x:6:root,adm,username
cdrom:x:19:root,username
haldaemon:x:82:username
plugdev:x:83:root,username
users:x:100:username

I highly doubt that groups are the problem, because i can mount, read, write to the device, as long as I don't open too many documents at a time, or browse too much of the drive. Note... I can browse the drive with terminal (xterm, terminal, rxvt, etc) all I want without consequence.

So is Thunar to blame? I reinstalled xfce with hopes that thunar just got corrupted or something, but that did not fix the problem.

Note: I don't have KDE installed, because I don't care for it all that much. XFCE has/does everything I need, and does it faster than kde (again, my opinion... don't want to start a discussion on speed, whats better please, Thanks).

Any ideas?

P.S. I do realize the vfat file system has a file name length problem that sometimes makes a device become read-only, but I can assure you my filenames are not beyond that limitation.
 
Old 01-13-2009, 03:11 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The vfat filesystem doesn't contain linux permissions so either the entire filesystem is writeable or not. It is determined when you mount. One caveat is that if a read error is detected, the filesystem will be remounted read-only.

When you mount pendrives, make sure that the "noatime" mount option is used. Entering "mount" by itself will print out the options used to mount it.
 
Old 01-13-2009, 03:24 PM   #3
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
noatime did the trick.... if I add that to my fstab.

What is the easiest way to make HAL mount the drive with noatime? Even if it only does it with sdb1?
 
Old 01-13-2009, 03:26 PM   #4
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
As a side-note, if I have thunar open and I drag a file (say a .tar.gz file) into a folder, thunar pegs out at 100% CPU, until I stop dragging. But if I have 2 thunar instances open and drag from one window to another it works fine, no processor spike. Any thoughts on this?
 
Old 01-23-2009, 12:21 PM   #5
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by DragonM15 View Post
What is the easiest way to make HAL mount the drive with noatime? Even if it only does it with sdb1?
I realize now that this was a stupid question on my part. If anyone is curious about this, the ubuntu forums helped me out. I realize I am running Slackware, but udev is udev.

http://ubuntuforums.org/showthread.php?t=988150

Hope this helps someone else out.

Thanks
 
  


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
trouble accessing other files on usb computerdude DamnSmallLinux 8 11-17-2006 12:55 PM
Accessing LVM Files stored on a USB Disk ruckman17 Linux - Hardware 3 10-19-2006 11:03 PM
How To Read Files From a USB FlashDisk (Solaris 8) njugs79 Solaris / OpenSolaris 2 04-11-2005 02:56 PM
Accessing Files From a USB Flashdisk in Solaris 8 njugs79 Solaris / OpenSolaris 1 04-11-2005 08:04 AM
Mounting a usb thumbdrive st windows files can be read qkslvrwolf Linux - Newbie 2 04-12-2004 09:52 AM

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

All times are GMT -5. The time now is 12:46 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