https://doc.qubes-os.org/en/latest/user/how-to-guides/how-to-use-block-storage-devices.html
First we'll use qvm-block to attach the the partition to the the qube in a persistent manner
qvm-block list the partitions
attach the partition to a qube
target qube: the qube you want to attach the partition to.
in dom0:
qvm-block attach --persistent <target-qube> <backend-qube>:<device-partition>
make the directory that you will use to mount the partition ( should be done inside the target qube):
it's recommended that you do it inside the home directory since that is persistent between reboots
mkdir -p /path/to/directory
go into the template of the target qube and then type
sudo nano /etc/fstab
add the following line
/dev/disk/by-label/MY_LABEL /path/to/directory auto nosuid,nodev,nofail,x-gvfs-show 0 0
replace /dev/disk/by-label/MY_LABEL by the location of the your disk or uuid={your_partitions_uuid} , you can find the partition's uuid using lsblk -f
https://wiki.archlinux.org/title/Fstab https://www.redhat.com/en/blog/etc-fstab https://man7.org/linux/man-pages/man5/fstab.5.html
I will probably come back to edit this for better readability when I'm less tired.
any suggestions or improvements welcome, this is just how I did it and I'm pretty new to qubes