Last active
November 18, 2020 22:11
-
-
Save kbruner/64217ca01d1fd7b0ae5b1bfe396cba4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@nucklehead:~ # dd bs=4m if=/dev/zvol/zroot/ROOT/default/cbsd-cloud-cloud-Debian-x86-10.4.0.raw of=debian.raw | |
1024+1 records in | |
1024+1 records out | |
4295098368 bytes transferred in 10.888479 secs (394462666 bytes/sec) | |
root@nucklehead:~ # file debian.raw | |
debian.raw: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,1), end-CHS (0x3ff,254,63), startsector 1, 8388607 sectors, extended partition table (last) | |
root@nucklehead:~ # mdconfig debian.raw | |
md0 | |
root@nucklehead:~ # ls -l /dev/md0* | |
crw-r----- 1 root operator 0x91 Nov 18 14:05 /dev/md0 | |
crw-r----- 1 root operator 0x92 Nov 18 14:05 /dev/md0p1 | |
crw-r----- 1 root operator 0x93 Nov 18 14:05 /dev/md0p2 | |
crw-r----- 1 root operator 0x94 Nov 18 14:05 /dev/md0p3 | |
crw-r----- 1 root operator 0x95 Nov 18 14:05 /dev/md0p4 | |
root@nucklehead:~ # gpart show /dev/md0 | |
=> 34 8388541 md0 GPT (4.0G) [CORRUPT] | |
34 2014 - free - (1.0M) | |
2048 1048576 1 efi (512M) | |
1050624 702464 2 linux-data (343M) | |
1753088 124928 3 linux-swap (61M) | |
1878016 6508544 4 linux-data (3.1G) | |
8386560 2015 - free - (1.0M) | |
root@nucklehead:~ # dd bs=4m if=/dev/zvol/zroot/ROOT/default/cbsd-cloud-cloud-Ubuntu-x86-20.04.1.raw of=ubuntu.raw | |
563+1 records in | |
563+1 records out | |
2361524224 bytes transferred in 8.146899 secs (289867855 bytes/sec) | |
root@nucklehead:~ # file ubuntu.raw | |
ubuntu.raw: DOS/MBR boot sector, extended partition table (last) | |
root@nucklehead:~ # mdconfig ubuntu.raw | |
md1 | |
root@nucklehead:~ # ls -l /dev/md1* | |
crw-r----- 1 root operator 0xae Nov 18 14:08 /dev/md1 | |
crw-r----- 1 root operator 0xaf Nov 18 14:08 /dev/md1p1 | |
crw-r----- 1 root operator 0xb0 Nov 18 14:08 /dev/md1p14 | |
crw-r----- 1 root operator 0xb1 Nov 18 14:08 /dev/md1p15 | |
root@nucklehead:~ # gpart show /dev/md1 | |
=> 34 4612029 md1 GPT (2.2G) [CORRUPT] | |
34 2014 - free - (1.0M) | |
2048 8192 14 bios-boot (4.0M) | |
10240 217088 15 efi (106M) | |
227328 4384735 1 linux-data (2.1G) | |
root@nucklehead:~ # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment