Here’s a no-reinstall recipe for “moving” your Minecraft files to another partition on Ubuntu. In a nutshell you’ll:
- Identify & stop any running Minecraft processes
- Copy (or move) the game data to your big partition
- Point the old path at the new one via symlink or bind-mount
- Test and clean up
1. Locate & stop Minecraft
A) The Java-client (default)
Most of your files live in
~/.minecraft
If you’re running a dedicated server, it’ll be whatever folder contains your minecraft_server.jar and world directory (e.g. /opt/mcserver).
Make sure Minecraft (or your server) is shut down before you move anything:
# If it’s a snap‐based client
snap stop mc-installer
# If it’s the Java jar server, for example:
sudo systemctl stop minecraft.service
# – or –
pkill -f minecraft_server.jar
2. Copy (or move) to the new partition
Suppose you’ve mounted your large partition at /mnt/bigdata (ext4, NTFS with proper permissions, etc.).
# Create a destination folder
sudo mkdir -p /mnt/bigdata/minecraft
# Preserve permissions & metadata; copy the data
sudo rsync -aP ~/.minecraft /mnt/bigdata/minecraft/
# OR, if it’s a server:
sudo rsync -aP /opt/mcserver/ /mnt/bigdata/minecraft/server_data/
# Once you’re sure the copy went well, you can remove the old data:
rm -rf ~/.minecraft
# or
sudo rm -rf /opt/mcserver
3. Redirect the old path → new location
You have two main ways: a symbolic link, or a bind-mount in /etc/fstab.
Option A) Symlink (easiest)
ln -s /mnt/bigdata/minecraft ~/.minecraft
For a server:
sudo ln -s /mnt/bigdata/minecraft/server_data /opt/mcserver
Option B) Bind-mount (more “transparent”)
Edit /etc/fstab with sudo, and add a line like:
/mnt/bigdata/minecraft /home/you/.minecraft none bind 0 0
Or, for a server install:
/mnt/bigdata/minecraft/server_data /opt/mcserver none bind 0 0
Then run:
sudo mount -a
4. Test & finalize
- Launch your Minecraft client or start your server again.
- Verify that all worlds, resource packs, etc., are intact.
- Check
df -h to ensure your home (or /opt) is now lighter.
If everything works, you’re done! 🎉
Tips & Gotchas
• NTFS volumes: use ntfs-3g, ensure UID/GID match your user or mount with uid=1000,gid=1000 so Minecraft can write.
• Permissions: if you see “Access denied,” double-check chown -R you:you /mnt/bigdata/minecraft.
• Backups: keep the old folder around until you’re 100% sure data integrity is OK.
Feel free to ping me with any errors or questions along the way!