Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1974  / 3 Years ago, mon, october 4, 2021, 1:44:24

I want to increase the free disk space of my VM Ubuntu (host = Mac 10.10).
After autoclean -> auto remove, I still 80% (=5.7/7.5 GB)of space used in /dev/mapper, however, only 3% (=7.2/246.8 MB) used in /dev/sda1.



Could anyone explain me what are /dev/mapper and /dev/sda1, and their relation with the base memory (=2000MB) of my VM? And how to even increase the free space?



Thank you for any help!


More From » virtualbox

 Answers
7

Altough this doesn't fully address the question, in order to free up some space I suggest you to first remove the installed packages that are not needed anymore:



sudo apt-get autoremove --purge


Then you can clear the /var/log folder, which is extremely prone to grow in size over time, expecially if something at some point didn't work perfectly:



sudo rm -rf /var/log/*


Then you can use this command to list all your files/folders sorted from the smallest file/folder to the biggest file/folder, in order to quickly spot which files/folders are the biggest so you can possibly free up some additional space:



du -ahd <n> / | sort -hr


Where <n> is a number higher or equal to 0 representing the depth of the search.



3 should be a number large enough to narrow down the search a bit without having to deal with an excessively large list of files/folders.


[#20892] Wednesday, October 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
luringdge

Total Points: 3
Total Questions: 126
Total Answers: 109

Location: India
Member since Sun, Feb 6, 2022
2 Years ago
;