LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-25-2014, 01:57 PM   #1
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Rep: Reputation: 17
My USB drive is read-only: I want to be able to write on it


Hello, all

For some odd reason, my USB jump drive is set to read-only. I don't know how it got that way, but I want it so that I can write data to it. I'm using Debian stable.

How do I go about doing this?
 
Old 10-25-2014, 01:59 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
this happened recently to my xbmc-live drive. it was something called smart-control which would determine how many sectors were bad and if it thought the drive was failing, it would prevent it from being written to so you can copy all the stuff off of it and buy a new one.
 
Old 10-25-2014, 02:30 PM   #3
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Original Poster
Rep: Reputation: 17
Well, I don't know if the drive is failing. It's a USB stick. I'd like any better answers. I just think some programmatic configuration is not where it should be. Perhaps someone got ahold of my computer technology and jacked with it: I had been attempting to help some people with computer science, but maybe they defrauded me and jacked with my stuff.
 
Old 10-25-2014, 02:31 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Try to make a new partition.

If you can't by using root and if the drive has no external or internal protection then it is bad. Recycle it.
 
Old 10-25-2014, 03:21 PM   #5
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 59
As jefro hints, I've seen some usb sticks with a tiny microswitch on them to disable the write line. Too easy ?
 
Old 10-25-2014, 09:43 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I have had USB sticks go read only.

Usually in my experience, unmounting them, removing them, and remounting them has cleared that up.

Did you try to access the drive as root? It might be an ownership issue.

It might also be worthwhile to test the drive on another computer to see whether the read-only issue occurs there or whether it's specific to the Debian box.
 
Old 10-26-2014, 03:18 AM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
With the device connected, what is reported by the following?
Code:
mount
Code:
sudo /sbin/fdisk -l
Sometimes, file-system corruption can cause the media to be mounted read-only. If this is the case, then once we know the file-system type, it should be possible to fix the inconsistent state, so that it can be mounted read-write again.
 
Old 10-26-2014, 09:06 PM   #8
Rubian
Member
 
Registered: Dec 2013
Distribution: Arch Linux
Posts: 116

Rep: Reputation: 18
Try, sudo chown -R user/path/to/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
[SOLVED] usb drive: cannot remount block device /dev/sdb1 read-write, is write-protected schneidz Linux - Hardware 5 01-06-2015 03:15 PM
[SOLVED] usb drive - cannot write, can read and delete aidan@keyworld.net Debian 4 04-05-2013 02:45 PM
USB drive Read/Write - NTFS sp149 Linux - General 7 11-14-2007 04:11 PM
how can I automate my usb drive to be read/write abrand888 Debian 4 10-19-2006 06:58 PM
Cannot mount a USB drive as read/write. icheyne MEPIS 2 06-28-2005 01:48 AM

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

All times are GMT -5. The time now is 09:14 AM.

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