Second Partition filling up Root Partition

  1. /mnt is a temporary locationj.
  2. if you didn’t create a rule in fstab or a mount unit - it will not remount after boot but the system is none the wiser so it try to write to /mnt but will fail due to missing write permission or it will fill your root device
  3. create a dedicated mount structure outside root and mount your partition in a sub folder

e.g.

sudo mkdir -p /data/games

set permissions

sudo chmod ugo+rw /data/games

Create a mount rule in fstab or use a systemd mount unit

Example [root tip] systemd mount unit samples

sudo touch /etc/systemd/system/data-games.mount

Get UUID of your partitions - select and copy the one matching your games partition

lsblk -f

Edit

sudo nano /etc/systemd/system/data-games.mount

Insert below content - replace $UUID with the UUID from above command

[Unit]
Description=Games partition

[Mount]
What=/dev/disk/by-uuid/$UUID
Where=/data/games
Type=auto
Options=rw,noatime

[Install]
WantedBy=multi-user.target

Save the file

Start the unit

sudo systemctl start data-games.mount

list the content

ls /data/games

If you did it right then enable the unit

sudo systemctl enable data-games.mount

Use the new path /data/games to install games to

3 Likes