Not Enough Space

I had a problem with Kali live linux that I install it on the USB with 128 gigabytes of space, but I used only 60 Gig of it, and I received this error:
Warning: More space needed than available: 118 kB > 0 B, installation may fail
Error: You don’t have enough free space in /var/cache/apt/archives/.

I allocate all space for the persistence and choose unencrypted persistence.
Also, I tried some commands like apt clean or apt autoremove, but it did’t work.
I cant find the large file that occupied my space.
Any one have any idea for this problem?

I just did a df -h on my own kali box and the root partition is taking up 79 gigs. The virtual size of my hard disk is 80Gigs.

Can you not extend the installation to use all 128 gigs of the USB stick?

The way persistence works is this - the base installation is an immutable partition that is filled up from the beginning. Everything you do is saved as delta FROM the immutable partition TO the persistent partition.

Every update. Every Upgrade. Every file saved. Every tool installed only ever “adds” to the used space. It will fill up the available space eventually, and issueing a command that was previously subject to updates will require ever more read/write procedures.

Your live USB stick is currently “working as intended”.

And it follows that it is not a “just as good”-alternative to a VM or a bare metal installation.

I use all 128 gig of USB.

Do you have any idea how can I find largest app in the kali?
I want to remove them. I only install Android studio with SDK that is only 60 GIG and after one month working my storage was full.
Thank you for your response

Let me google that for you…

1 Like

Try here: How To Find Large Files and Directories in Linux Server | by NetShop ISP | Medium.

1 Like

This works for me. Thank you guys