Re: using an USB stick with "openbsd" type partition/slices
On 3/21/19 6:49 AM, Mihai Popescu wrote:
> I want to move my usb stick from msdos partition to more specific to
> OpenBSD. I use this stick to keep some configuration files and
> documents on it.
> sd1 at scsibus2 targ 1 lun 0: <SanDisk, Cruzer Fit, 1.26> SCSI4
> 0/direct fixed serial.07815571010812120514
> sd1: 30532MB, 512 bytes/sector, 62530624 sectors
> Steps I've done to achieve this:
> # fdisk -e sd1
> # disklabel -E sd1
> Label editor (enter '?' for help at any prompt)
...[create an a partition, proper starting offset, etc.]
> # newfs sd1a
> For mount I use mount /dev/sd1a /mnt. (no options yet!)
> I want to ask if there are some suggestions in creating
> partition(s)/slice(s), types and mount options, please. I don't need
> softupdates. Files used are small and I copy a few at the time.
Well...if you are just moving files around, I wouldn't worry much about
partitioning. If you want to actually make it bootable, that's a
Only exception I can think of -- if you want to split it between OpenBSD
and Windows use, fdisk to make a DOS partition (first) and an OpenBSD
fdisk partition (physically after the DOS/FAT partition), disklabel it
and format it on Windows, then format it on OpenBSD.
Few small files a few at a time? Just use the defaults.
If performance matters, mounting with "noatime" and "softdep" are HUGE
wins. If you aren't waiting, though, you won't get any benefit, so just
use the defaults.