# dmesg | grep sd0
sd0 at scsibus1 targ 1 lun 0: <ATA, WDC WD5000LPLX-6, 02.0> naa.50014ee6b2bb6fc5
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
sd0 at scsibus1 targ 1 lun 0: <ATA, WDC WD5000LPLX-6, 02.0> naa.50014ee6b2bb6fc5
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
500GB SATA HDD
# dmesg | grep sd1
sd1 at scsibus2 targ 1 lun 0: <NVMe, PHPCM256GFNTH-BC, E8FT>
sd1: 244198MB, 512 bytes/sector, 500118192 sectors
sd1 at scsibus2 targ 1 lun 0: <NVMe, PHPCM256GFNTH-BC, E8FT>
sd1: 244198MB, 512 bytes/sector, 500118192 sectors
256GB nvme
# dmesg | grep sd2 sd2 at scsibus3 targ 1 lun 0: <JMicron, Generic, 0508> serial.152d0578456789ABCDEF
sd2: 122104MB, 512 bytes/sector, 250069680 sectors
root on sd2a (3d4598786292b50c.a) swap on sd2b dump on sd2b
sd2 at scsibus3 targ 1 lun 0: <JMicron, Generic, 0508> serial.152d0578456789ABCDEF
sd2: 122104MB, 512 bytes/sector, 250069680 sectors
root on sd2a (3d4598786292b50c.a) swap on sd2b dump on sd2b
USB HDD
# fdisk -e sd1
Enter 'help' for information
sd1: 1> p
Disk: sd1 geometry: 31130/255/63 [500118192 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
0: EF 0 1 2 - 0 17 17 [ 64: 1024 ] EFI Sys
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
*3: A6 0 17 18 - 31130 233 63 [ 1088: 500117104 ] OpenBSD
sd1: 1> q
80G# disklabel -E sd1
Label editor (enter '?' for help at any prompt)
sd1> p
OpenBSD area: 1088-500118192; size: 500117104; free: 91
# size offset fstype [fsize bsize cpg]
a: 466542272 33575872 4.2BSD 4096 32768 26062
b: 16786837 1088 swap
c: 500118192 0 unused
d: 16787904 16787936 4.2BSD 2048 16384 12960
i: 1024 64 MSDOS
sd1> q
No label changes.
i=1024KB=1.24MB
# mkdir -p /m0a ; mount /dev/sd0a /m0a
# df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/sd2a 135124276 10023868 118344196 8% /
/dev/sd0a 961394216 8 913324504 0% /m0a
# mkdir /m0a/nvme-backup
# dd if=/dev/rsd1c of=/m0a/nvme-backup/rsd1c-bs1mcount128.img bs=1m count=128
# ls -l /m0a/nvme-backup/rsd1c-bs1mcount128.img
-rw-r--r-- 1 root wheel 134217728 Sep 20 16:05 /m0a/nvme-backup/rsd1c-bs1mcount128.img
# disklabel -E sd1
Label editor (enter '?' for help at any prompt)
sd1> p
OpenBSD area: 1088-500118192; size: 500117104; free: 91
# size offset fstype [fsize bsize cpg]
a: 466542272 33575872 4.2BSD 4096 32768 26062
b: 16786837 1088 swap
c: 500118192 0 unused
d: 16787904 16787936 4.2BSD 2048 16384 12960
i: 1024 64 MSDOS
sd1> q
No label changes.
#mkdir /m0a/nvme-backup/m1a
# mount /dev/sd1a /m1a
# df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/sd2a 135124276 10040828 118327236 8% /
/dev/sd0a 961394216 262240 913062272 0% /m0a
/dev/sd1a 459194864 15903528 420331600 4% /m1a
#rsync -avHx /m1a/ /m0a/nvme-backup/m1a/
# disklabel -E sd1
Label editor (enter '?' for help at any prompt)
sd1> p
OpenBSD area: 1088-500118192; size: 500117104; free: 91
# size offset fstype [fsize bsize cpg]
a: 466542272 33575872 4.2BSD 4096 32768 26062
b: 16786837 1088 swap
c: 500118192 0 unused
d: 16787904 16787936 4.2BSD 2048 16384 12960
i: 1024 64 MSDOS
sd1> q
No label changes.
# mkdir /m1i
# mkdir /m0a/nvme-backup/m1i
# mount /dev/sd1i /m1i
# rsync -avHx /m1i/ /m0a/nvme-backup/m1i/
# ls -l /m0a/nvme-backup/
m1a/ m1i/ rsd1c-bs1mcount128.img
# df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/sd2a 135124276 10057952 118310112 8% /
/dev/sd0a 961394216 16199840 897124672 2% /m0a
/dev/sd1a 459194864 15903528 420331600 4% /m1a
/dev/sd1i 984 584 400 59% /m1i