Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
root@nucklehead:~ # gpart show /dev/zvol/zroot/ROOT/default/alpine1/dsk1.vhd
gpart: No such geom: /dev/zvol/zroot/ROOT/default/alpine1/dsk1.vhd.
root@nucklehead:~ # file /dev/zvol/zroot/ROOT/default/alpine1/dsk1.vhd
/dev/zvol/zroot/ROOT/default/alpine1/dsk1.vhd: character special (0/145)
root@nucklehead:~ # dd bs=4m if=/dev/zvol/zroot/ROOT/default/alpine1/dsk1.vhd of=alpine1.vhd
1024+1 records in
1024+1 records out
4295098368 bytes transferred in 8.716671 secs (492745275 bytes/sec)
root@nucklehead:~ # mdconfig alpine1.vhd
md0
root@nucklehead:~ # gpart show md0
=> 2048 8386783 md0 GPT (4.0G)
2048 1048576 1 efi (512M)
1050624 2097152 2 linux-swap (1.0G)
3147776 5241055 3 linux-data (2.5G)
root@nucklehead:~ # ls -l /dev/md0*
crw-r----- 1 root operator 0x9c Nov 18 12:39 /dev/md0
crw-r----- 1 root operator 0x9d Nov 18 12:39 /dev/md0p1
crw-r----- 1 root operator 0x9e Nov 18 12:39 /dev/md0p2
crw-r----- 1 root operator 0xa6 Nov 18 12:39 /dev/md0p3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.