I have AWS EC2 instance and its disk usage always above 90% and just trying to move user folder to "udev" partition to free disk space.
Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G 6.7G 830M 90% / udev 3.7G 8.0K 3.7G 1% /dev
First question I know what is this partition and used for but if i move user's folder to it, Is there any harm?
Second, I just did following steps. But i can't connect to server with ssh after restart server. Any solution and explanation to it?
sudo mv /home/ubuntu /dev/ubuntu sudo mkdir /home/ubuntu sudo chown ubuntu:ubuntu /home/ubuntu mount --bind --verbose /dev/ubuntu /home/ubuntu
OK i think problem is solved. The reason of error is caused by moving user home folder to /dev. It was big mistake because udev partition is placed on memory. When i stop server, computer's memory will cleared out. Which means my user folder will gone forever.
Thanks for quick response time and great content. Really appreciate that.