usb flash drive gets mounted read only

Forum rules
Before you post please read this

usb flash drive gets mounted read only

Postby oakhilltop on Fri Oct 23, 2009 4:08 pm

I have a 16G Kingston Data Traveler that has worked for awhile, but now gets mounted as read only in Mint. I've tried it on 2 computers running Mint 7 and they both mount it read only. I think, sometimes it doesn't get mounted read only, but when I try to transfer a lot of files it switches to read only after a few files were written. When the drive was mounted read only, I unmounted it, put it in a windows pc and it worked fine. Go back to Mint, and its read only. The drive is not that old, so I'm pretty sure I am not beyond its writing limits, and I can delete files in windows.

This happened once before and I re-formatted the drive using gparted. It worked for awhile, but is not back to this problem.
oakhilltop
Level 2
Level 2
 
Posts: 84
Joined: Wed Apr 04, 2007 7:53 am

Linux Mint is funded by ads and donations.
 

Re: usb flash drive gets mounted read only

Postby MaddogF16 on Fri Oct 23, 2009 4:13 pm

What does your /etc.fstab file look like.
MaddogF16
Level 5
Level 5
 
Posts: 762
Joined: Tue Jun 16, 2009 10:47 am

Re: usb flash drive gets mounted read only

Postby oakhilltop on Fri Oct 23, 2009 7:28 pm

Here it is. Thanks. It did mount as writable for awhile. Last night I copied some large digital video files to it. Today, it seemed like it was writable until I copied a bunch of pictures to it. I had deleted the video files, and there is about 11G free space on it.

/etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=d068f478-ec1c-425b-8fa5-1ef075ab4d44 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=d3a6f6a2-efd1-4686-bda3-31d2633d698a none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
oakhilltop
Level 2
Level 2
 
Posts: 84
Joined: Wed Apr 04, 2007 7:53 am

Re: usb flash drive gets mounted read only

Postby oakhilltop on Fri Oct 23, 2009 7:37 pm

Hmmm, I shutdown the laptop and turned it back on a few hours later, put the flash drive in and now it is writable again. Perhaps, something goes wrong while copying a bunch of files, then the OS marks it as read only?? Maybe some USB error handling code can't handle the error case.
oakhilltop
Level 2
Level 2
 
Posts: 84
Joined: Wed Apr 04, 2007 7:53 am

Re: usb flash drive gets mounted read only

Postby mick55 on Sat Oct 24, 2009 12:28 am

hi oakhilltop

One of my friends had the exact same problem,
and then he noticed the USB drive had a tiny slide switch
to make it write protected.

Every time he pushed it in or pulled it out
he toggled the switch.

It's probably not your issue, but you never know :wink:

peace
mick
Things are more like they are now than they ever were before.

Dwight D. Eisenhower (1890 - 1969)
User avatar
mick55
Level 7
Level 7
 
Posts: 1507
Joined: Fri Sep 25, 2009 2:47 am

Re: usb flash drive gets mounted read only

Postby oakhilltop on Sat Oct 24, 2009 11:07 am

No, no switch, but thanks. I tried it this morning and it is writable again. Seems like it goes read only, when I really want to get something done! :(

I'm not sure how to debug it when it happens.
oakhilltop
Level 2
Level 2
 
Posts: 84
Joined: Wed Apr 04, 2007 7:53 am

Re: usb flash drive gets mounted read only

Postby MaddogF16 on Mon Oct 26, 2009 5:18 pm

When it happens take a look at your /etc/fstab file and copy it here.
MaddogF16
Level 5
Level 5
 
Posts: 762
Joined: Tue Jun 16, 2009 10:47 am

Re: usb flash drive gets mounted read only

Postby Midnighter on Tue Nov 03, 2009 8:20 am

What is it formatted as? Fat32 or NTFS?
User avatar
Midnighter
Level 6
Level 6
 
Posts: 1305
Joined: Tue May 22, 2007 1:52 pm
Location: Western Australia

Re: usb flash drive gets mounted read only

Postby Rank0 on Wed Nov 18, 2009 6:45 pm

You could also try the command dmesg when the switch to read only happens and see if that log contains anything interesting.
Linux Mint 9 x64 KDE >= 4.5
Core 2 Q6600 @ 3 GHz, 4 GB DDR2, nVidia GeForce 8800 GT

Image Guayadeque, a great music player for Linux. Fast and lightweight!
User avatar
Rank0
Level 1
Level 1
 
Posts: 32
Joined: Thu Sep 24, 2009 2:40 pm

Re: usb flash drive gets mounted read only

Postby phd7 on Sat Jan 16, 2010 10:04 pm

I had the same problem before with one of these with windows (at work, I hasten to add). I tried going into permissions and changing that but nothing worked. Ended up just binning it and sticking with Fusion drives. I have never had a similar problem with them. Hopefully someone else can help you but I would copy the lot to another drive and bin that one.
phd7
Level 3
Level 3
 
Posts: 188
Joined: Wed Feb 04, 2009 6:34 am

Re: usb flash drive gets mounted read only

Postby cluendo on Sun Jun 13, 2010 10:56 am

I have the same problem with USB stick. in dmesg I've got those lines:

[ 1763.897947] FAT: Filesystem error (dev sdd1)
[ 1763.897950] fat_get_cluster: invalid cluster chain (i_pos 0)
[ 1763.897954] File system has been set read-only
[ 1764.905287] FAT: Filesystem error (dev sdd1)
[ 1764.905290] fat_get_cluster: invalid cluster chain (i_pos 0)
[ 1766.495348] FAT: Filesystem error (dev sdd1)
[ 1766.495351] fat_get_cluster: invalid cluster chain (i_pos 0)
cluendo
Level 1
Level 1
 
Posts: 3
Joined: Sun Jun 13, 2010 10:45 am

Re: usb flash drive gets mounted read only

Postby pyrus on Wed Jan 02, 2013 7:03 pm

I had the same problem with various types of USB memory sticks on Mint 13 Maya (MATE edition). I actually had two problems:
a) One of my sticks (that I had copied from the Mint ISO) was formatted as an ISO-9660 (CD) format filesystem
b) Other sticks were mounted read-write but my user only had read-only access to them

For the first problem I guess I'm stuck with the restriction of the filesystem, but for the others I created a UDEV rule to give myself read-write access as follows:

1. Create a file in /etc/udev/rules.d, e.g. 90-usb-disks.rules
2. Place the following in the new file:

Code: Select all
# UDEV Rules to change the permission of USB disks
#

KERNEL=="sd*[0-9]", ATTR{removable}=="1", ENV{ID_BUS}=="usb", MODE="0666"


In Mint I didn't even have to restart the UDEV service as creating the file triggers the new rules to be loaded :D

This is based on the advice on AskUbuntu here: http://askubuntu.com/questions/17540/ho ... able-drive with changed MODE value.
pyrus
Level 1
Level 1
 
Posts: 1
Joined: Wed Jan 02, 2013 6:49 pm

Re: usb flash drive gets mounted read only

Postby ben2talk on Mon Jul 15, 2013 10:39 pm

Not with Caja in Mint
ben2talk
Level 1
Level 1
 
Posts: 39
Joined: Tue Jun 28, 2011 12:46 am

Re: usb flash drive gets mounted read only

Postby gollum17 on Mon Jul 15, 2013 10:46 pm

Hmm I'm also curious to see if your solution works pyrus as I had tried something similar. Even making a usbuser user group and setting it up from there with no dice. I still get the "Only root can mount this device" error.

I'm going to keep chugging away at it and see if I can get anything going. Btw I'm on mint 15 main edition.

Sprint GS3 Running TN's Msg and Chubbs
Current Setup
============================
MSI Neo V-2 MB || LGA 775 Pentium 4 Prescott 3.2Ghz oced to 3.5ghz || BFG Nvidia 6200 256Mb || Dell 80GB IDE HDD || 2GB Dual Channel Memory || Creative SB Live! Sound Card || Logitech 450 Watt PSU ||
gollum17
Level 1
Level 1
 
Posts: 45
Joined: Tue Feb 19, 2013 2:42 pm
Location: Ohio

Re: usb flash drive gets mounted read only

Postby ongdenny on Thu Oct 24, 2013 10:45 pm

Hallo,

I tried these steps:
cd /media/your_username/your_flash_drive
sudo chmod -R -v 777 *
sudo chown -R -v your_username:your_username *

Still had problems when copy paste from cinnamon, but when i go through terminal, it's writteable.

I'm on Mint 15 Cinnamon
ongdenny
Level 1
Level 1
 
Posts: 6
Joined: Fri Oct 04, 2013 3:42 am

Linux Mint is funded by ads and donations.
 

Return to Mounting Partitions

Who is online

Users browsing this forum: No registered users and 0 guests

cron