1

I have a similar problem to the one mentioned here: Unable to free up space in df but I can not reboot (I have important data in the memory).

The output of df -h / is:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        47G   45G     0 100% /

which would be fine unless it stayed like that after I removed ca 13G of data.

Cumulated size of all files in /dev/sda2 available from / is a half of its capacity:

$ sudo du -xhd 0 /
23G     /

I found https://stackoverflow.com/questions/653096/how-to-free-inode-usage#9387415 but it definitely is not a problem with inodes:

$ df -hi /
Filesystem     Inodes IUsed IFree IUse% Mounted on
/dev/sda2        3.0M  535K  2.5M   18% /

How can I free the space without restarting the computer (however I shall be able to hibernate it since I have more swap area than physical RAM)?

One more comment: to save the data anywhere I need to be able to write to /tmp/ (ask NumPy developers why) which is at /dev/sda2 filesystem.

abukaj
  • 485

1 Answers1

1

Follow these steps:

  1. Find a drive, e.g. a USB stick, that has enough space for your data and plug it in
  2. Get its device partition name using lsblk, I use /dev/sdb1 as an example here.
  3. It your drive got automounted first unmount it with sudo umount /dev/sdb1, then mount it in /tmp using

    sudo mount /dev/sdb1 /tmp
    
  4. Save your data to /tmp
  5. Unmount your drive using

    sudo umount /dev/sdb1
    
  6. Free space as explained in the links you provided.
dessert
  • 40,956