Re: usb marked as read-only

2023-01-18 Thread Michael via PLUG-discuss
I fixed the drive I didn't throw away! I put the msdos partition table back on it and format it ntfs and it is happily accepting files again. How did you format it ext4? Did you change the partition table? On Tue, Jan 17, 2023 at 7:26 PM Michael wrote: > On Tue, Jan 17, 2023 at 1:05 PM Rusty Car

Re: usb marked as read-only

2023-01-17 Thread Michael via PLUG-discuss
On Tue, Jan 17, 2023 at 1:05 PM Rusty Carruth via PLUG-discuss < plug-discuss@lists.phxlinux.org> wrote: > are you running that command while booted on the stick you are trying to > erase? > > Of course not. Always unmount the device. I threw it away before I got this message so But the other

Re: usb marked as read-only

2023-01-17 Thread Rusty Carruth via PLUG-discuss
are you running that command while booted on the stick you are trying to erase? While that SHOULD work, you are writing over the device you are booted on, not usually considered best practice ;-)  And this 'read-only-filesystem' message is interesting to me, I'd love to have that stick to pla

Re: usb marked as read-only

2023-01-17 Thread Michael via PLUG-discuss
I tried 'wipe' on it last night. But got the same error message: sudo dd if=/dev/zero of=/dev/sdb [sudo] password for michael: dd: failed to open '/dev/sdb': Read-only file system On Tue, Jan 17, 2023 at 12:03 AM Eric Oyen via PLUG-discuss < plug-discuss@lists.phxlinux.org> wrote: > There is one

Re: usb marked as read-only

2023-01-16 Thread Eric Oyen via PLUG-discuss
There is one thing you can try before absolutely tossing it. Run dd as root with the following code: sudo dd if=/dev/zero of=/dev/sdb And let her run. That should erase everything on that stick, including partition info, boot sector and the like. If there is a problem, dd will very quickly quit

Re: usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
yeah. I think all is loast. I finally got around to looking at the gparted report: Device: /dev/sdd Model: SanDisk Ultra Serial: Sector size: 512 Total sectors: 60063744 Heads: 255 Sectors/track: 2 Cylinders: 117772 Partition table: none PartitionTypeSta

Re: usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
any advice before I toss it? I suppose I could buy a chain and wear it around my neck! On Mon, Jan 16, 2023 at 7:53 PM Michael wrote: > lovely, my 32gb ultra is toast. I started gparted to see if I could format > it and the square showing the partitions and usage is gray (as well as the > file s

Re: usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
lovely, my 32gb ultra is toast. I started gparted to see if I could format it and the square showing the partitions and usage is gray (as well as the file system icon). On Mon, Jan 16, 2023 at 7:16 PM Steve Litt via PLUG-discuss < plug-discuss@lists.phxlinux.org> wrote: > Eric Oyen via PLUG-discu

Re: usb marked as read-only

2023-01-16 Thread Steve Litt via PLUG-discuss
Eric Oyen via PLUG-discuss said on Mon, 16 Jan 2023 16:38:57 -0700 >For most things, I use USB sticks in >a write once, read many configuration scenario. Another thing I've found anecdotally that helps lengthen the USB stick life, whether write once or write a bunch, is to format it as Ext4. I do

Re: usb marked as read-only

2023-01-16 Thread Eric Oyen via PLUG-discuss
I had one of those a few years back. I had many of the same issues and it turned out that it had failed because there were no left over sectors that could be written after marking bad and choosing spare. Also, the flashing light after eject is an indication that the firmware has suffered a fatal

Re: usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
sorry forgot to prove it: usb=/dev/sdb sudo fsck -r $usb [sudo] password for michael: fsck from util-linux 2.37.2 On Mon, Jan 16, 2023 at 2:47 PM Michael wrote: > yea.. I tried the r option yesterday. Got the same output. > > michael@desktop1:~$ df -h > Filesystem Size

Re: usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
yea.. I tried the r option yesterday. Got the same output. michael@desktop1:~$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 779M 1.5M 777M 1% /run /dev/sda2 234G 151G 72G 68% / tmpfs 3.8G 84M 3.8G 3% /dev/shm tmpfs 5.0M 4.0K 5.

Re: usb marked as read-only

2023-01-16 Thread Rusty Carruth via PLUG-discuss
man fsck says:    The exit code returned by fsck is the sum of the following conditions:   0  No errors   1  Filesystem errors corrected   2  System should be rebooted   4  Filesystem errors left uncorrected   8   

Re: usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
Ok, thanks. Funny thing is when I unmount it it keeps flashing. It even keeps flashing after I eject it.. On Mon, Jan 16, 2023 at 2:24 PM Stephen Partington wrote: > I know some USB devices when they reach a critical fault level will go > read-only when there are no longer any write cycles that

Re: usb marked as read-only

2023-01-16 Thread Stephen Partington via PLUG-discuss
I know some USB devices when they reach a critical fault level will go read-only when there are no longer any write cycles that can be safely applied. like SSD's But I haven ever run into it to verify. On Mon, Jan 16, 2023 at 2:23 PM Michael via PLUG-discuss < plug-discuss@lists.phxlinux.org> wrot

Re: usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
creating persistence means I want to use the drive as if it were the main drive. The verbose flag is a big v? I tried the little v! sudo fsck -V $usb [sudo] password for michael: fsck from util-linux 2.37.2 Same thing. sudo fsck -Vf /dev/sdb ; echo $? fsck from util-linux 2.37.2

Re: usb marked as read-only

2023-01-16 Thread Rusty Carruth via PLUG-discuss
I think it is probably too early to say if you need a new drive, and I don't know what you mean by 'create persistence', but I'll stick my foot in my mouth and ask a few questions. You don't say what you booted on - the USB drive?  And what device is that? When you run fsck, I suggest you use

Re: usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
maybe that is why it ran out of space? On Mon, Jan 16, 2023 at 12:06 PM Michael wrote: > HI. On my Kali Live USB drive I am trying to create persistence. I did it > once but then something happened (it ran out of space when I tried to > install snort) so I started over. But when I tried tpo cre

usb marked as read-only

2023-01-16 Thread Michael via PLUG-discuss
HI. On my Kali Live USB drive I am trying to create persistence. I did it once but then something happened (it ran out of space when I tried to install snort) so I started over. But when I tried tpo create persistence I got the read-only error. YOu know in my search to get it out of read-only I dis