Yesterday I re-installed Ubuntu on my laptop. Today, whilst running npm i
for a cloned repo, I got a no space error. Error displayed in terminal window following npm i
It said that there was no space in root. I have dual boot Windows and Ubuntu on a 1TB system. Ubuntu should be allocated about 60GB.
I tried to find a way to remove items from root, but there are two issues here, it's a temporary fix, and I don't want to delete files which I don't know what they do. df -h
gives the following:
I am a noob at partitioning hard-drives and data storage. I will be cloning repos and running npm i
on the daily. Please help me find a way to set up my system so I don't have issues with storage.
Additional Info: On initial installation of Ubuntu, I created a partition from witin windows and then installed Ubuntu with some custom settings, (I followed a guide). This guide allocated a swap (no idea what it does). In the disk image above file partition 9 i s not mounted, but partition 8 is mounted at root. I dont know what this means, but maybe it helps with diagnosis!
Thank you for reading, I hope you can help :)
peace x
Edit: after further investigation, I can see all of the files present before the re-install are still there on the un-mounted partition. See: Devices & Location shows old files still exist This is NOT what I thought happened when I clicked "Re-install ubuntu". I thought It would wipe the partition and start fresh...
Solved Solved Solved
After a long time of reading other posts I finally saw the light!
Re-installing Ubuntu only used one partition of my hard drive. It left the old files intact. I had to delete the old partition, wiping the old data, then expand the new ubuntu partition to the right, now there is enough space and you can see from df -h
that the allocated space for the root is now much larger! :)Increased size from 15GB to 46GB (33%)