LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2022, 03:18 AM   #1
viken
LQ Newbie
 
Registered: Mar 2022
Posts: 2

Rep: Reputation: 0
Write Protect on USB thumb drive made by Ubuntu


I'm new using Linux distros and have installed Ubuntu 20.04 on a seperat HDD along side Kubuntu 20.04 with no problems. And have installed many other flavors of several distros using Ubuntu, Arch, etc. So I do have a little bit of experience with Linux as well as alot of experience with all versions of Windows. However I want move away from windows as well as stop using Windows completely. My question is I have two thumb drives that became write protected when I was using Windows and the program Rufus 3.17 to copy the contents of Ubunto 20.04 and Zorin 16 pro ISO's to these separate thumb drives. I know that Zorin uses the Ubuntu OS as its base. How did these thumb drives become write protected from this process? and is there a command I can use in the terminal running on Kubuntu 21.4 to remove the write protect so I can use them again? I've already tried many ways using Windows 10 and several third party partition progs such as Macrorit Pro, EaseUs, Mini Part Wizard and others. Still I get the popup saying "cannot complete process, disk is write protected" or "I\O error". Basically the same ol SOL you no s__t out of luck, I have read some of the posted answers on this forum and have copied the command and pasted it in my Kubuntu terminal with no success. Also I installed one of the packages called SDB which was suggested by using the sdb --help command. Still nothing. Can anyone give me the real solution to my problem? which all started from an Ubuntu OS from an ISO..
 
Old 03-14-2022, 04:23 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
When you put a distro image onto your pendrive, it effectively became a read only cd/dvd/iso disk.

To reuse it as storage, you will need to use a disk partitioner - first you give it a new MBR, then you create a partition, & finally put a file system on it - now all ready to store files again.
 
1 members found this post helpful.
Old 03-14-2022, 05:13 AM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
dd mode in rufus will make them read-only.
 
1 members found this post helpful.
Old 03-14-2022, 01:37 PM   #4
leclerc78
Member
 
Registered: Dec 2020
Posts: 169

Rep: Reputation: Disabled
Try Ventoy.
 
Old 03-16-2022, 02:48 AM   #5
viken
LQ Newbie
 
Registered: Mar 2022
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fatmac View Post
When you put a distro image onto your pendrive, it effectively became a read only cd/dvd/iso disk.

To reuse it as storage, you will need to use a disk partitioner - first you give it a new MBR, then you create a partition, & finally put a file system on it - now all ready to store files again.
Thanks but that has already been tried. I have put other ISO image files from several other distros and was able to reformat, delete, and erase the files from the drives, again having a different Kernel for the different distros. I was able to use Rufus to make the thumb drives first nonboot, then format the drive using Windows, Rufus, and Macrorit Pro oartition manager with no problems at all and able to use again to store files or even put other ISO image files on it. The thing that bothers me is only Ubuntu 20.04 and Zorin 16 Pro which I actually purchased was the only to distros that caused this problem. So I really need a sudo command that will remove or unlock the write protect. Since I'm using the latest version of Kubuntu I figured there must be a terminal command that will work, because so far I haven't succeeded using other methods. The thumb drives only cost $4.00 for a 16GB 3.0, but I want to learn more of the command line fixes and other great commands in Linux. I want to get away from using Windows as my main OS...

Thanks
 
Old 03-16-2022, 05:20 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
I have put other ISO image files from several other distros and was able to reformat, delete, and erase the files from the drives, again having a different Kernel for the different distros. I was able to use Rufus to make the thumb drives first nonboot, then format the drive using Windows, Rufus, and Macrorit Pro oartition manager with no problems at all and able to use again to store files or even put other ISO image files on it.
Some usb drives will become read only with use as they get older and there is nothing you can do to make them writable again.
 
Old 03-16-2022, 07:16 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,982

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
There are two different levels of protection:
1. software (or filesystem) level. You can specify to mount a filesystem read only, or just remove the write permission from everywhere. It will work on mounted filesystems.
2. hardware level. sometimes you can find a microswitch on the usb where you can make the whole device read only. for example: https://www.amazon.com/Kanguru-Flash.../dp/B008OGNM8E
Without this switch the device is always write enabled and you can always overwrite the existing data/filesystems (and partitions) on it (regardless of the permissions set inside those filesystems)
 
Old 03-16-2022, 09:08 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
I've never quite understood why thumb drives usually don't have a physical "write protect switch." Even floppy disks had that ...

Last edited by sundialsvcs; 03-17-2022 at 08:53 AM.
 
Old 03-17-2022, 05:14 AM   #9
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
Quote:
Originally Posted by viken View Post
Thanks but that has already been tried..... So I really need a sudo command that will remove or unlock the write protect.....
Thanks
Try clearing the boot blocks before giving it a new MBR, etc.
(Where ? is your drive designation.)

Code:
sudo dd if=/dev/zero of=/dev/sd? bs=512 count=8
 
  


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
Copying ISO to thumb drive using 'dd' causes thumb drive to be read-only? ahc_fan Linux - General 8 01-15-2019 08:10 AM
dd to copy a thumb drive which I am live booted on to another thumb drive DrinkinHomeBrew Linux - Newbie 3 01-26-2015 04:52 PM
[SOLVED] Vfat USB Thumb Drive Became Write-Protected Suddenly in Ubuntu 12.04 julianvb Linux - Software 7 07-02-2014 09:09 PM
USB thumb drive write speeds too fast xaos5 Linux - Hardware 1 01-19-2007 03:04 AM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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