• Re: Installing MGA9 on New HP (Win11) Desktop

    From Daniel70@daniel47@eternal-september.org to alt.os.linux.mageia on Tue Jan 28 18:56:15 2025
    From Newsgroup: alt.os.linux.mageia

    On 28/01/2025 2:22 am, David W. Hodgins wrote:
    On Mon, 27 Jan 2025 03:02:23 -0500, Daniel70 <daniel47@eternal-september.org> wrote:
    On 27/01/2025 3:47 am, David W. Hodgins wrote:
    <snip>
    The following script will show just usb drives ...
    $ cat /home/dave/bin/listusbdrives
    #!/bin/bash
    -a-a-a-a for block in $(tree -if /sys/devices|grep usb|grep
    /block/sd[a-z]$); do
    -a-a-a-a-a-a-a-a device=${block##*/} # strip last slash and everything before
    it.
    -a-a-a-a-a-a-a-a printf '%s\n' "$device"
    -a-a-a-a done

    I'm guessing I'd have to adjust the /home/ *dave* /bin bit first!! ;-P

    Yeah. What the above is showing is a script I wrote on my computer.
    You'll need to create
    the file in your ~/bin directory, copy/paste the script and save it,
    then run
    "chmod a+x ~/bin/listusbdrives" to make it executable.

    Regards, Dave Hodgins

    Thanks, Dave.
    --
    Daniel70
    --- Synchronet 3.21d-Linux NewsLink 1.2