On Tue, Jul 25, 2023 at 06:08:00PM +0200, Karel Lucas 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?
> 

You can check the device name to which they are attached by checking the
dmesg or /var/log/messages.  This is from attaching a card reader with
multiple slots, but only one of them holding a card (sd4):

    $ dmesg
    ...
    umass0 at uhub0 port 12 configuration 1 interface 0 "Generic USB Storage" 
rev 2.10/12.09 addr 9
    umass0: using SCSI over Bulk-Only
    scsibus5 at umass0: 2 targets, initiator 0
    sd2 at scsibus5 targ 1 lun 0: <Generic, MassStorageClass, 1209> removable
    sd3 at scsibus5 targ 1 lun 1: <Generic, MassStorageClass, 1209> removable
    sd4 at scsibus5 targ 1 lun 2: <Generic, MassStorageClass, 1209> removable
    sd4: 30608MB, 512 bytes/sector, 62685184 sectors
    sd5 at scsibus5 targ 1 lun 3: <Generic, MassStorageClass, 1209> removable

If in doubt, you can then check which partitions that disk holds using 
disklabel:

    $ disklabel sd4
    ...
    #                size           offset  fstype [fsize bsize   cpg]
      c:         62685184                0  unused
      i:         62676992             8192   MSDOS

In this case, a single MSDOS partition (i) that you can then mount:

    # mount /dev/sd4i /mnt

Cheers
Zé

-- 
 

Reply via email to