[SOLVED] Everything locked in thumb drive?? - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20) +--- Thread: [SOLVED] Everything locked in thumb drive?? (/showthread.php?tid=1674) |
[SOLVED] Everything locked in thumb drive?? - Monkeyman - 03-25-2015 I have a thumb drive that I've been using (successfully) for about a year. I've always had read/write permissions and could obviously delete anything I wanted. As of this morning, everything has become locked. I am unable to delete ANYTHING. I haven't done anything different with the thumb drive or with LL (2.2, if it matters). It won't let me change the permissions, either. I can't even edit and save any documents (for example, I have my job resume on the drive). Any suggestions? I use this daily and I need to be able to delete old files from it. Re: [SOLVED] Everything locked in thumb drive?? - rokytnji - 03-25-2015 Code: ls -l /dev/sdx just to give you a idea Code: $ ls -l You can cd into /dev/sdx (pendrive) and list permissions in there. Hopefully the chown command may bail you out later but 1st you need to list permissions already given. Re: [SOLVED] Everything locked in thumb drive?? - Monkeyman - 03-25-2015 Says there's no such file/folder. Re: [SOLVED] Everything locked in thumb drive?? - rokytnji - 03-25-2015 the x in sd(x) needs to be replaced with the drive letter b,c,d whatever that your pendrive shows up as. Re: [SOLVED] Everything locked in thumb drive?? - Monkeyman - 03-25-2015 Please remind me how to find the drive letter? Re: [SOLVED] Everything locked in thumb drive?? - anon222 - 03-25-2015 This will list all usb drives Code: ls -al /dev/disk/by-path/*usb*part* 2>/dev/null | awk '{print($11)}' ../../sdc1 ../../sdb1 Then, as Harry said, if your usb drive is sdb1 for example Code: ls -l /dev/sdb1 Also use lsblk to see where is the device mounted Code: lsblk 2>/dev/null | grep sdb1 So I use ls -l to check ownership and permisions Code: ls -l '/media/linuxlite/U S B S' Re: [SOLVED] Everything locked in thumb drive?? - Monkeyman - 03-25-2015 After the first command, I get this: brw-rw---- 1 root disk 8, 81 Mar 25 10:57 /dev/sdf1 (If it matters, the "/dev/sdf1" is highlighted in yellow. No idea what that means.) I get absolutely nothing after the "ls -l" command. Used the same letter case, etc as what showed up after the "lsblk" command. EDIT: I have another thumb drive (very slow USB 2.0) that works fine so it's not the USB port. Re: [SOLVED] Everything locked in thumb drive?? - gold_finger - 03-25-2015 Some USB's have a way to enable write protection. I don't have any of those myself, but sounds like yours might be one of those. Look for some type of slider, button, or some other mechanical feature on the USB that may have gotten moved to enabled write protection by accident. If don't see anything obvious, lookup the exact USB model number you have on the internet -- maybe instructions you find will tell you how that feature works and you can disable it again. Re: [SOLVED] Everything locked in thumb drive?? - avj - 03-25-2015 It would seem that this can also be caused by an unsafe eject of the drive, or if the drive has been inserted into a computer that has a virus on it. This link may be of help. http://sharadchhetri.com/2013/12/19/how-to-fix-read-only-usb-pen-drive-in-ubuntu/ Re: [SOLVED] Everything locked in thumb drive?? - Monkeyman - 03-26-2015 Thank you, everyone. The drive seems to have fixed itself. I forgot to remove it from the case and after a couple of reboots (which I would have done anyway), it started working. No idea what the problem is/was but I have a new thumb drive on order in case the old one is just temperamental from age. |