Ubuntu 22.04 usage tips | Solve the problem of boot stuck in /dev/sda3: clean, ***files, ***blocks

 1. Error description

I installed the Ubuntu image from Windows, and one day this problem occurred inexplicably. Everyone's situation may be different when this happens. I have also found many ways to solve this problem. I have to reinstall the Ubuntu image. Thinking that there is still unuploaded code in the virtual machine, I decided to look for it again. The solution finally paid off and was successfully solved.

The root cause of this problem for me is that/dev/sda3 partition is full, causing the virtual machine to fail to open. If you don't know if this is the problem, you can also check it this way.

(This is the picture taken after the solution was solved. At that time, the usage rate of this partition was 100%

2. Solution 

Find the root of the problem and solve it

It shows that the partition is full. Find some useless files in this partition and delete them.

1. Enter grub mode

Restart the virtual machine. When this interface is displayed, quickly press Shift and don't let go until the grub interface appears (This step requires a faster response, just try it a few times. , if the operation is correct, the grub interface will come out soon. If it does not appear after pressing Shift for three seconds, there is a high probability that the operation is wrong. If you cannot enter through this method, you can also refer to other methods for entering grub on the Internet)

2. Enter ubuntu (advanced mode)

 3. Choose the second one

4. Select root 

After selecting root, two lines of prompts will pop up. Just press Enter.

6. Check disk usage

df -h

Found that the memory occupied by /dev/sdda3 is full

7. View the disk usage of all files and directories in the root directory

du -sh /*

Find the file directory that takes up more space. I take up more space under the /home path.

  • Usecd /home to enter the specified directory, use  find . -size +500M  Find large folders above 500M
  • Finally  rm -f /filename/  The command deletes large files that are temporarily useless, reboot reboot

おすすめ

転載: blog.csdn.net/SunshineLiy/article/details/134372529