Reply To: SOLVED locked pendrive with live iso on it. Can't delete.

Forum › Forums › Orphaned Posts › antiX-17 “Heather Heyer, Helen Keller” › SOLVED locked pendrive with live iso on it. Can't delete. › Reply To: SOLVED locked pendrive with live iso on it. Can't delete.

#18643
Anonymous

    From what I see, there’s no physical switch on this USB stick.
    Tried both commands;

    $ lsusb
    Bus 004 Device 005: ID 05dc:a838 Lexar Media, Inc. 
    

    I got this from man blkid;

    It is recommended to use lsblk(8) command to get information about block devices rather
    than blkid. lsblk(8) provides more information, better control on output formatting and
    it does not require root permissions to get actual information.

    When device is specified, tokens from only this device are displayed. It is possible to
    specify multiple device arguments on the command line. If none is given, all devices
    which appear in /proc/partitions are shown, if they are recognized.

    Note that blkid reads information directly from devices and for non-root users it returns
    cached unverified information. It is better to use lsblk –fs to get a user-friendly
    overview of filesystems and devices. lsblk(8) is also easy to use in scripts. blkid is
    mostly designed for system services and to test libblkid functionality.

    $ blkid
    /dev/sdb1: LABEL="New Volume" UUID="8E1C641A1C63FC19" TYPE="ntfs" PARTUUID="6973279e-01"
    $ lsblk
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sdb      8:16   1 119.2G  0 disk 
    └─sdb1   8:17   1   1.2G  0 part /media/mizpa/antiXlive

    I like that second command (lsblk) because it tells me more than the gobbledygook that is in the blkid – the blkid probably tells you more, but I’m pretty much a computer illiterate now that I’ve forgotten most of what I once knew, so all of that other stuff meant nothing to me as far as which was my Lexar until I used the lsblk. Thanks for steering me to the man pages – another command I had forgotten about! Little by little some of this stuff is coming back – I prefer Linux to M$ but when a distro keeps on working and I have no problems, I tend to forget what I once knew! This way, using a familiar distro and having access to the forum, if I have a similar problem in the future, I can always go back-search my threads to find answers. That’s how i used to do it, but the forums I went to are gone, so now it’s like starting over again!
    Thanks again for the help!