On 03/21/2021 04:36 PM, Paul wrote:
> Adam wrote:
>> On 03/21/2021 03:33 PM, Jonathan N. Little wrote:
>>> Adam wrote:
>>>> On 03/21/2021 10:27 AM, Jonathan N. Little wrote:
>>>>> Adam wrote:
>>>>>>
>>>>>> The USB stick has become read-only. I can still read old files that
>>>>>> were written before the USB stick lost write capability.useful info
>>>>>
>>>>> Some USB sticks become read-only when failing to protect existing data.
>>>>> Sandisk is on brand that has such feature. My guess is your Rally2 USB
>>>>> stick "pining for the fjords" like an infamous parrot.
>>>>>
>>>>
>>>> Guess it's about time since it was purchased before the following May
>>>> 2012 purchase...
>>>>
>>>> https://i.postimg.cc/hPFfhnGG/OCZ-Mod-XStream-Pro-600-W-Modular-High-Performance-Power-Supply.png
>>>>
>>>>
>>>> First OCZ product I purchased was...
>>>>
>>>> OCZ Rally2 16GB USB 2.0 Flash Drive Model OCZUSBR2DC-16GB
>>>> https://www.newegg.com/model-oczusbr2dc-16gb/p/N82E16820227272
>>>>
>>>> but I can't locate purchase order for date info.
>>>>
>>>>
>>>> Hmmm...wonder if I could burn "Taxes - Current" folder to a data disc.
>>>> Don't want to risk losing another USB stick just in case.
>>>>
>>>> Cloned the bad USB stick. How to unlock ? Searched but no luck.
>>>
>>> It is it the safety feature of the USB stick as I described then you
>>> cannot. Its trigger by the flashes controller. Get a new thumbdrive can
>>> copy what you can before it becomes total dead.
>>>
>>
>> Yes, I cloned it but the clone keeps the lock. So, ALL files are read-only even after cloning ?
>> And, there's no way out ? Not good.
>>
>
> What does /etc/mtab say for the mount ?
> Is it "... -o ro" for read-only ?
> Maybe it needs "sudo remount -o rw" type treatment.
>
> I thought a topic like this came up recently,
> something that was mounting read-only.
>
> Paul
Just the two (2) partitions for the USB stick clone...
/dev/sda1 /media/ubuntu/RALLY2 vfat ro,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0
/dev/sda2 /media/ubuntu/SPBLAZE64GB vfat rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0
Looks like the clone inherited the lock for the entire USB stick. I created /dev/sda2 partition thinking that I'll copy the files over but that inherits the lock too.
Entire /etc/mtab...
==========================================================================================================================================================
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=3996656k,nr_inodes=999164,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=808860k,mode=755 0 0
/dev/sdb4 /cdrom iso9660 ro,noatime 0 0
/dev/loop0 /rofs squashfs ro,noatime 0 0
/cow / overlay rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd,nsroot=/ 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids,nsroot=/ 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset,nsroot=/ 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio,nsroot=/ 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory,nsroot=/ 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct,nsroot=/ 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer,nsroot=/ 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices,nsroot=/ 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb,nsroot=/ 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event,nsroot=/ 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio,nsroot=/ 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
tracefs /sys/kernel/debug/tracing tracefs rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /run/user/999 tmpfs rw,nosuid,nodev,relatime,size=808860k,mode=700,uid=999,gid=999 0 0
gvfsd-fuse /run/user/999/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=999,group_id=999 0 0
/dev/sda2 /media/ubuntu/SPBLAZE64GB vfat rw,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0
/dev/sda1 /media/ubuntu/RALLY2 vfat ro,nosuid,nodev,relatime,uid=999,gid=999,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0
/dev/sdb5 /media/ubuntu/casper-rw ext4 rw,nosuid,nodev,relatime,block_validity,delalloc,barrier,user_xattr,acl 0 0
/dev/sdb1 /media/ubuntu/usbdata fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
==========================================================================================================================================================