Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove write proteced in usb ubuntu

Unmount it, and make it writeable

sudo umount /dev/sdb1
sudo hdparm -r0 /dev/sdb
Create a new mount point and mount it there (my userID from /etc/passwd is 1000)

sudo mkdir /media/andrew/temp
sudo mount -o uid=1000 /dev/sdb1 /media/andrew/temp
it'll still complain that it's read-only. I don't know why I had to change this flag before AND after mounting, but that's the only way it worked for me. Set it to writeable again, and remount it at the same place

sudo hdparm -r0 /dev/sdb1
sudo mount -o remount,rw /dev/sdb1
Now I can write to the disk as my normal user. I'm being very careful with it in case it is actually failing, but those commands allowed me to finish what I was doing.
Comment

PREVIOUS NEXT
Code Example
Shell :: tree command levels 
Shell :: install kubectl windows 
Shell :: kdiff3 download linux 
Shell :: how to change mac address kali linux 
Shell :: disable heroku router logs 
Shell :: vscode publish to github organisation 
Shell :: awk field separator multiple characters 
Shell :: update time in linux 
Shell :: ionic capacitor run ios 
Shell :: run mongo cli 
Shell :: run shell script remotely using ssh 
Shell :: how to push cloned repo 
Shell :: how to make makefile 
Shell :: ffmpeg extract single frame 
Shell :: adding to git 
Shell :: wsl2 
Shell :: chmod chown 
Shell :: installing flutter_native_splash 
Shell :: display settings ubuntu 20.04 in right side 
Shell :: raspberry pi remote desktop 
Shell :: merge branch to master 
Shell :: change dns in openvpn config 
Shell :: git stash save name 
Shell :: docker jenkins 
Shell :: is it possible to check with my website if an app is installed? 
Shell :: how to kill recycling process linux 
Shell :: dpkg: error processing package nginx (--configure): dependency problems - leaving unconfigured 
Shell :: how to add a file in git 
Shell :: setting config source di linux 
Shell :: hostapd could not GET IP 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =