I am relatively new to linux, but am working on a remote server.
Here's the output of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 1.9G 28G 7% /
devtmpfs 252G 0 252G 0% /dev
tmpfs 252G 0 252G 0% /dev/shm
tmpfs 51G 1.0M 51G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 252G 0 252G 0% /sys/fs/cgroup
/dev/sdb15 105M 5.2M 100M 5% /boot/efi
/dev/loop0 62M 62M 0 100% /snap/core20/1494
/dev/loop1 45M 45M 0 100% /snap/snapd/15904
/dev/loop2 68M 68M 0 100% /snap/lxd/22753
/dev/sdc1 2.4T 85M 2.2T 1% /mnt
tmpfs 51G 0 51G 0% /run/user/1000
I am generating ~100GB of data from a program, hence the 29GB space is getting filled mid-program run on /dev/root
.
- Can I switch to either
devtmpfs
totmpfs
so that I am able to run this program? If yes, how? - If not, how can I merge these filesystems so
/dev/root
has more space?
tmpfs
is not a persistent filesystem - it's stored in RAM and disappears when it's unmounted (so also when the system shuts down). You have a 2+TB filesystem at/mnt
, why not use it? How are you running the program?