Skip to content

Instantly share code, notes, and snippets.

@kyujin-cho
Created August 27, 2019 04:40
Show Gist options
  • Save kyujin-cho/bd7cf09cdba5ce4034016bef2f3c96f0 to your computer and use it in GitHub Desktop.
Save kyujin-cho/bd7cf09cdba5ce4034016bef2f3c96f0 to your computer and use it in GitHub Desktop.
#!/bin/bash
lodevice=$(losetup -f)
dd if=/dev/zero of=xfs.img bs=1G count=8
mkfs.xfs xfs.img
sudo losetup $lodevice xfs.img
sudo mkdir -p /xfs
sudo mount -o pquota $lodevice /xfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment