On Tue, 25 Jul 2023 18:08:00 +0200 Karel Lucas <cahlu...@planet.nl> wrote:
> Dear all, > > For a fresh install of openBSD, I want to mount an SD card or a USB > stick on an existing openBSD install, but don't know which device > name to use. Maybe someone can help me out? > Hello, a newbie trying to help a newbie, since I had to learn that too. To see all available devices to be mounted, use sysctl(8) to read a kernel variable: sysctl hw.disknames In my case it outputs: > hw.disknames=sd0:c9aecebcec28de24 So my I've got only sd0 to mount. If you have just plugged in a device, it will show up in the recent dmesg(8) output (use tail(1) to get the most recent lines): dmesg | tail However, you generally can't mount a whole device, but its partition. You can show them with disklabel(8) (as root): doas disklabel sd0 To mount partition i of device sd0 to /mnt/usb (directory must exist!), you would use: doas mount_msdos /dev/sd0i /mnt/usb Or some other mount command, depending on the file system that partition if formatted with. The above is for FAT. See mount(8) for details. Hope this helps. -- Maja