On Sun, 26 Jan 2025 02:03:24 -0500, Daniel70 <daniel47@eternal-september.org> wrote:
On 26/01/2025 2:02 am, Markus Robert Kessler wrote:<snip>
cat /install/mga9x64.iso > /dev/sdb
Of cource you have to be sure to address the right device, assuming here >>> that sdb is your first USB stick.
Good thought, Markus .... but, as the other two devices I have connected
by USB are my Keyboard and my Mouse, I don't THINK I can do too much
damage!! ;-P
The dev/sd? entries are for disk drives. Doesn't matter if they are ide, sata, usb, etc.
Make sure you know which /dev/sd? entry is for what, or you may
overwrite your disk
drive.
That's one of the reasons to use isodumper. It only shows usb drives.
The following script will show just usb drives ...
$ cat /home/dave/bin/listusbdrives
#!/bin/bash
for block in $(tree -if /sys/devices|grep usb|grep
/block/sd[a-z]$); do
device=${block##*/} # strip last slash and everything before it.
printf '%s\n' "$device"
done
Regards, Dave Hodgins
Besides this, always remember the first command, we should use when
working under Unix / Linux / MacOS:
mount /dev/brain
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
for block in $(tree -if /sys/devices|grep usb|grep
/block/sd[a-z]$); do
device=${block##*/} # strip last slash and everything before it.
printf '%s\n' "$device"
done
I'm guessing I'd have to adjust the /home/ *dave* /bin bit first!! ;-P
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
for block in $(tree -if /sys/devices|grep usb|grep
/block/sd[a-z]$); do
device=${block##*/} # strip last slash and everything before
it.
printf '%s\n' "$device"
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
| Sysop: | Luis Silva |
|---|---|
| Location: | Lisbon |
| Users: | 768 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 494574:16:05 |
| Calls: | 630 |
| Files: | 46,158 |
| Messages: | 14,873 |