USB write protected

Asked by becu

Recently some of my USB sticks are (unwillingly) write protected. Impossible to save or delete files.
What can I do to change the write protection? There are no mechanic switches on the sticks.
Thanks for your help,
Koen

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

With the device attached, what is the output of:

lsb_release -a; uname -a; mount

Also, what file system is the storage using (NTFS? Ext4? FAT32?)

Thanks

Revision history for this message
becu (koen-becu) said :
#2

Hi Andrew,
thanks for your answer.
1 the result of your first question:
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Linux koen-laptop 3.2.0-125-generic-pae #168-Ubuntu SMP Fri Mar 24 17:06:07 UTC 2017 i686 i686 i386 GNU/Linux
/dev/sda5 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/koen/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=koen)
/dev/sdb1 on /media/B409-756F type vfat (ro,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
koen@koen-laptop:~$

2 More info: several usb sticks have the problem. The answer above is with USB ScanDisk 32GB attached.
How can I find file system (NTFS? Ext4? FAT32?)?

Sorry, but I'm not a very experienced user of the terminal window.
Koen

----- Oorspronkelijk bericht -----
Van: "actionparsnip" <email address hidden>
Aan: "koen becu" <email address hidden>
Verzonden: Zondag 2 april 2017 02:03:51
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Needs information

actionparsnip requested more information:
With the device attached, what is the output of:

lsb_release -a; uname -a; mount

Also, what file system is the storage using (NTFS? Ext4? FAT32?)

Thanks

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Seems to be vfat (FAT32). When you unplug the device do you use the safe remove feature in the OS before physically unplugging it?

Revision history for this message
becu (koen-becu) said :
#4

Yes, I do use the safe remove feature.

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Zondag 2 april 2017 19:09:00
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Needs information

actionparsnip requested more information:
Seems to be vfat (FAT32). When you unplug the device do you use the safe
remove feature in the OS before physically unplugging it?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Then I suggest you perform an fsck on the partition, or if you like you can do this in Windows and check the drive for errors using chkdsk.

Revision history for this message
becu (koen-becu) said :
#6

I do use the safe remove feature.

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Zondag 2 april 2017 19:09:00
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Needs information

actionparsnip requested more information:
Seems to be vfat (FAT32). When you unplug the device do you use the safe
remove feature in the OS before physically unplugging it?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

From your output:

/dev/sdb1 on /media/B409-756F type vfat
(ro,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)

The beginning of the second line tell "ro" i.e. read-only.

What happens if you try re-mounting that device in read-write mode with the command

mount -o rw,remount /dev/sdb1

or - if you get a response that you are not authorized -
sudo mount -o rw,remount /dev/sdb1

Revision history for this message
becu (koen-becu) said :
#8

When I try to run an fsck on the partition in Windows 10: it doesn’t work because the USB is whrite protected. When I check in Windows the drive for errors using chkntfs f: I have the message that USB (F-drive in my case) is dirty. Windows suggests to use the /C option. I do not know how to give the right command (chkntfs f /C ; chkntfs F /C = not valid drive specifications. chkntfs /f C = invalid parameter.

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Maandag 3 april 2017 12:23:26
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Answered => Open

You are still having a problem:
I do use the safe remove feature.

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Zondag 2 april 2017 19:09:00
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Needs information

actionparsnip requested more information:
Seems to be vfat (FAT32). When you unplug the device do you use the safe
remove feature in the OS before physically unplugging it?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

What drive letter does it get in Windows?

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

1. according to the Ubuntu output the format is vfat.
I do not think that chkntfs is the right program to run on such device, I assume chkdsk would be correct
(Better ask such questions in a windows forum)

2. As far as I know you need to put a colon after the drive letter
chkntfs f:
or
chdsk f:

Revision history for this message
becu (koen-becu) said :
#11

Hi Manfred, unfortunately I am back with an other problem.
Here the answer on your questions:

koen@koen-laptop:~$ /dev/sdbl on /media/B409-756F type vfat (ro,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)bash: syntaxfout nabij onverwacht symbool '('
koen@koen-laptop:~$

koen@koen-laptop:~$ mount -o rw,remount /dev/sdb1
mount: alleen root kan dat doen
koen@koen-laptop:~$

koen@koen-laptop:~$ sudo mount -o rw,remount /dev/sdb1
[sudo] password for koen:
mount: kan /dev/sdb1 niet vinden in /etc/fstab noch in /etc/mtab
koen@koen-laptop:~$
Koen

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Maandag 3 april 2017 15:27:50
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Needs information

Manfred Hampl requested more information:
>From your output:

/dev/sdb1 on /media/B409-756F type vfat
(ro,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)

The beginning of the second line tell "ro" i.e. read-only.

What happens if you try re-mounting that device in read-write mode with
the command

mount -o rw,remount /dev/sdb1

or - if you get a response that you are not authorized -
sudo mount -o rw,remount /dev/sdb1

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

The remount command only works with an already-mounted device.

proceed as follows:

plug the USB stick into the computer
verify with the command
mount
what the device name (probably /dev/sdb1) and the mount status ("ro" or "rw") is
if it is "ro", then try the re-mount command
sudo mount -o rw,remount /dev/sdb1

Revision history for this message
becu (koen-becu) said :
#13

koen@koen-laptop:~$ sudo mount -o rw,remount /dev/sdb1
[sudo] password for koen:
mount: kan blok-apparaat /dev/sdb1 niet heraankoppelen als lezen-en-schrijven, want is schrijfbeveiligd
koen@koen-laptop:~$

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Maandag 3 april 2017 16:18:05
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Answered

Manfred Hampl proposed the following answer:
The remount command only works with an already-mounted device.

proceed as follows:

plug the USB stick into the computer
verify with the command
mount
what the device name (probably /dev/sdb1) and the mount status ("ro" or "rw") is
if it is "ro", then try the re-mount command
sudo mount -o rw,remount /dev/sdb1

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/605022/+confirm?answer_id=11

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
becu (koen-becu) said :
#14

In windows it is F

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Maandag 3 april 2017 15:43:40
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Needs information

actionparsnip requested more information:
What drive letter does it get in Windows?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#15

mount: can block device / dev / sdb1 not remounting as read-and-write because it is write protected

Does the storage have a make and model ?

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

If you try using that USB device in Windows, is it also write-protected there, or can you modify it in Windows?

Is there a chance that you check its behavior on a completely different computer?

Revision history for this message
becu (koen-becu) said :
#17

The protection is also in Windows and on an other computer.
I found out that (after Windows checked and repaired) the others USB sticks work normally again.
The one that is stll RO is SanDiskcruser slice 32BG

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Maandag 3 april 2017 17:43:41
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

Manfred Hampl requested more information:
If you try using that USB device in Windows, is it also write-protected
there, or can you modify it in Windows?

Is there a chance that you check its behavior on a completely different
computer?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
becu (koen-becu) said :
#18

The disk is SanDisk Cruzer Slice 32G

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Maandag 3 april 2017 17:17:53
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Needs information

actionparsnip requested more information:
mount: can block device / dev / sdb1 not remounting as read-and-write
because it is write protected

Does the storage have a make and model ?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#19

I suggest you copy the data off, then delete the partition and recreate it in Windows. I'd suggest you use NTFS. It is a lot more resistant than FAT32 (unless you use a Mac)

Revision history for this message
Manfred Hampl (m-hampl) said :
#20

Maybe that USB stick is somewhat defective.
I suggest that you copy all data from it (as long as this is possible) to make sure that you do not lose the files.

Revision history for this message
becu (koen-becu) said :
#21

I do have a backup so no data are lost. Formatting is not possible because it stays RO.

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Maandag 3 april 2017 19:08:14
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

    Status: Open => Answered

actionparsnip proposed the following answer:
I suggest you copy the data off, then delete the partition and recreate
it in Windows. I'd suggest you use NTFS. It is a lot more resistant than
FAT32 (unless you use a Mac)

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/605022/+confirm?answer_id=18

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
becu (koen-becu) said :
#22

I have backup of the data. May it is total loss then...

----- Oorspronkelijk bericht -----
Van: "question605022" <email address hidden>
Aan: "Koen Becu" <email address hidden>
Verzonden: Maandag 3 april 2017 19:08:28
Onderwerp: Re: [Question #605022]: USB write protected

Your question #605022 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/605022

Manfred Hampl proposed the following answer:
Maybe that USB stick is somewhat defective.
I suggest that you copy all data from it (as long as this is possible) to make sure that you do not lose the files.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/605022/+confirm?answer_id=19

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/605022

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#23

Delete the partition using Gparted or using disk management in Windows

Can you help with this problem?

Provide an answer of your own, or ask becu for more information if necessary.

To post a message you must log in.