Skip to content

Instantly share code, notes, and snippets.

@kbruner
Created November 3, 2020 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbruner/e3085004775b77a85f63da8d5825eed5 to your computer and use it in GitHub Desktop.
Save kbruner/e3085004775b77a85f63da8d5825eed5 to your computer and use it in GitHub Desktop.
clone ZFS volume and confirm partition table
root@nucklehead:~ # zfs snapshot zvol/zroot/debianguest0@yesterday
root@nucklehead:~ # zfs clone zvol/zroot/debianguest0@yesterday zvol/zroot/debianguest1
root@nucklehead:~ # fdisk /dev/zvol/zroot/debianguest1
******* Working on device /dev/zvol/zroot/debianguest1 *******
parameters extracted from in-core disklabel are:
cylinders=261 heads=255 sectors/track=63 (16065 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=261 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
start 2048, size 4190208 (2046 Meg), flag 80 (active)
beg: cyl 0/ head 32/ sector 33;
end: cyl 260/ head 243/ sector 47
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
root@nucklehead:~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment