Well now it seems
#OpenBSD has me beat when trying to wipe and setup a new USB memory stick.
I have never had issues under FreeBSD or Linux before but this is either me being extremely thick or ??
justine@openbsd-desktop ~ $ doas fdisk -iy sd2
Writing MBR at offset 0.
justine@openbsd-desktop ~ $ doas disklabel -E sd2
Label editor (enter '?' for help at any prompt)
sd2> p
OpenBSD area: 64-15728640; size: 15728576; free: 15728576
# size offset fstype [fsize bsize cpg]
c: 15728640 0 unused
sd2> a
partition to add: [a]
offset: [64]
size: [15728576]
FS type: [4.2BSD] ext2fs
sd2*> q
Write new label?: [y] y
justine@openbsd-desktop ~ $ ^Cas disklabel -E sd2
justine@openbsd-desktop ~ $ doas disklabel sd2
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: Flash Disk
duid: 507add78df02fecc
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 979
total sectors: 15728640
boundstart: 64
boundend: 15728640
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 15728576 64 ext2fs
c: 15728640 0 unused
justine@openbsd-desktop ~ $ doas newfs_ext2fs /dev/rsd2a
/dev/rsd2a: 7679.9MB (15728576 sectors) block size 4096, fragment size 4096
using 60 block groups of 128.0MB, 32768 blks, 16384 inodes.
^C
justine@openbsd-desktop ~ $
justine@openbsd-desktop ~ $ doas newfs_ext2fs /dev/sd2a
newfs_ext2fs: /dev/sd2a: block device
justine@openbsd-desktop ~ $ doas newfs_ext2fs sd2a
/dev/rsd2a: 7679.9MB (15728576 sectors) block size 4096, fragment size 4096
using 60 block groups of 128.0MB, 32768 blks, 16384 inodes.
^C
justine@openbsd-desktop ~ $
justine@openbsd-desktop ~ $ doas newfs_ext2fs -I sd2a
/dev/rsd2a: 7679.9MB (15728576 sectors) block size 4096, fragment size 4096
using 60 block groups of 128.0MB, 32768 blks, 16384 inodes.
I used dd to wipe the USB then checked it was wiped. Then did the above and it all seems ok as per folk on the web and OpenBSD docs but newfs_extfs just sits there doing nothing.
Anyone help or have a simple idiot sheet of what to do from wiping the USB memory stick to setting up an ext2 partition and formatting it. Mounting it will be the easy part.