Add files via upload

This commit is contained in:
kneutron 2022-11-13 08:28:51 -06:00 committed by GitHub
parent 2e85bea055
commit 62f3e16a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,24 @@
#!/bin/bash
# TODO EDITME do not run blind
exit;
zfs create -sV 64g zseatera2/zvol01
fdisk -l /dev/zvol/zseatera2/zvol01
# mount /dev/zvol/zseatera2/zvol01p5 /mnt/tmp
#mount: special device /dev/zvol/zseatera2/zvol01p5 does not exist
#FIX: REF: https://www.golinuxcloud.com/losetup-command-in-linux/#1_Create_a_loop_device_with_losetup
losetup -P -f /dev/zvol/zseatera2/zvol01 # need -P for partitions
losetup
#NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO
#/dev/loop0 0 0 0 0 /dev/zd0 0
fdisk -l /dev/loop0
mount /dev/loop0p5 /mnt/tmp -onoatime