I’ve been exploring Hyperstack for cloud GPU access. Like many cloud compute services, you can create disk volumes and mount them. But because I had to (a) format it 😅 and (b) couldn’t figure out how to identify which disk was which, I’m logging the commands here.
Step 1: Identify the device with lsblk by disk size:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 64M 1 loop /snap/core20/2379
loop1 7:1 0 63.9M 1 loop /snap/core20/2318
loop2 7:2 0 114.4M 1 loop /snap/lxd/26741
loop3 7:3 0 87M 1 loop /snap/lxd/29351
loop4 7:4 0 40.4M 1 loop /snap/snapd/20671
loop5 7:5 0 38.8M 1 loop /snap/snapd/21759
vda 253:0 0 200G 0 disk
├─vda1 253:1 0 199.9G 0 part /
├─vda14 253:14 0 4M 0 part
└─vda15 253:15 0 106M 0 part /boot/efi
vdb 253:16 0 200G 0 disk /mnt/batch01
vdc 253:32 0 20G 0 disk
It’s that last one I was looking for.
Step 2: Everything else is business as usual:
$ sudo mkfs.ext4 /dev/vdc
$ sudo mkdir /mnt/batch02
$ sudo mount /dev/vdc /mnt/batch02
The image I’m running from is Ubuntu-like.