0

My problem : my root path is full

$ df -H
Filesystem      Size  Used Avail Use% Mounted on
udev             17G     0   17G   0% /dev
tmpfs           3.4G  170M  3.2G   6% /run
/dev/md1         21G   21G     0 100% /
tmpfs            17G     0   17G   0% /dev/shm
tmpfs           5.3M     0  5.3M   0% /run/lock
tmpfs            17G     0   17G   0% /sys/fs/cgroup
/dev/md0        295M   38M  238M  14% /boot
/dev/md2        481G   76M  457G   1% /data
tmpfs           3.4G     0  3.4G   0% /run/user/1000

so can we :

  1. reduce size of /dev/md2 and give this space to root (/dev/md1) ?
  2. merge both partition (/dev/md2 go in /dev/md1) ?
  3. other idea of solution to my space disk problem ?
Matrix
  • 145
  • 1
  • 2
  • 10
  • 4
  • Quick and dirty: move your biggest directories to /data and create appropriate symlinks or bind mounts there instead so nothing breaks.
  • – HBruijn Aug 01 '18 at 12:37
  • how can I change /var folder on other disk? I use "mv" cmd, but I don't know how specify a disk... – Matrix Aug 01 '18 at 17:55