<div dir="ltr">Ok, thanks. Funny thing is when I unmount it it keeps flashing. It even keeps flashing after I eject it..<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 16, 2023 at 2:24 PM Stephen Partington <<a href="mailto:cryptworks@gmail.com">cryptworks@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">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.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 16, 2023 at 2:23 PM Michael via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">creating persistence means I want to use the drive as if it were the main drive.<div>The verbose flag is a big v? I tried the little v!</div><div> sudo fsck -V $usb</div> [sudo] password for michael: <br> fsck from util-linux 2.37.2<br><div>Same thing.</div><div> sudo fsck -Vf /dev/sdb ; echo $?<br> fsck from util-linux 2.37.2<br> 0<br></div><div>I think the zero means there is nothing wrong with the drive.</div><div><br></div><div>"You don't say what you booted on - the USB drive? And what device is that?"</div><div>What do you mean? I'm trying to run thOS from the pen drive? THe device is /dev/sdb?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 16, 2023 at 2:00 PM Rusty Carruth via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I think it is probably too early to say if you need a new drive, and I <br>
don't know what you mean by 'create persistence', but I'll stick my foot <br>
in my mouth and ask a few questions.<br>
<br>
You don't say what you booted on - the USB drive? And what device is that?<br>
<br>
When you run fsck, I suggest you use the -V option (verbose). Also, what <br>
is the return code from fsck? that is:<br>
<br>
sudo fsck -Vf /dev/sdb ; echo $?<br>
<br>
what number is the last thing before your next prompt?<br>
<br>
Did you boot from device /dev/sda? Is anything mounted from /dev/sdb? <br>
(e.g. what does 'df -h' say (as one option))<br>
<br>
Finally, it is safer to do the fdisk commands manually and not use the <br>
'printf' trick. This works for me on all my systems:<br>
<br>
echo $usb ; sudo fdisk $usb<br>
<br>
(then I enter the commands to fdisk to create a new partition, or whatever)<br>
<br>
Oh, the very first thing I should have asked is, what does 'ls -l <br>
/dev/sdb' say?<br>
<br>
On 1/16/23 11:34, Michael via PLUG-discuss wrote:<br>
> maybe that is why it ran out of space?<br>
><br>
><br>
> On Mon, Jan 16, 2023 at 12:06 PM Michael <<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>> wrote:<br>
><br>
>> HI. On my Kali Live USB drive I am trying to create persistence. I did it<br>
>> once but then something happened (it ran out of space when I tried to<br>
>> install snort) so I started over. But when I tried tpo create persistence I<br>
>> got the read-only error. YOu know in my search to get it out of read-only I<br>
>> discovered that it might mean my file system is corrupted.. But when I ran<br>
>> $ sudo fsck -f /dev/sdb<br>
>> it just responded<br>
>> fsck from util-linux 2.37.2<br>
>> then when I attempted to follow the directions (that worked before:<br>
>> sudo fdisk $usb <<< $(printf "n\np\n\n\n\nw")<br>
>> Welcome to fdisk (util-linux 2.37.2).<br>
>> Changes will remain in memory only, until you decide to write them.<br>
>> Be careful before using the write command.<br>
>> fdisk: cannot open /dev/sdb: Read-only file system<br>
>> I'm thinking I need a new drive. Anything the gurus know that would be<br>
>> beneficial before I spend the money on a new drive??<br>
>> --<br>
>> :-)~MIKE~(-:<br>
>><br>
><br>
><br>
> ---------------------------------------------------<br>
> PLUG-discuss mailing list: <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
> To subscribe, unsubscribe, or to change your mail settings:<br>
> <a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
---------------------------------------------------<br>
PLUG-discuss mailing list: <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">:-)~MIKE~(-:</span><br></div></div></div></div></div>
---------------------------------------------------<br>
PLUG-discuss mailing list: <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.<br><br>Stephen<br><br></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">:-)~MIKE~(-:</span><br></div></div></div></div></div>