Linux Format

Answers

Q Virtually full disk

I have a fairly old version of Linux Mint Xfce installed in a VirtualBox virtual machine. The size of the virtual disk is roughly 20GB and now 18GB has been taken up. How can I find big packages so I can see whether they have been used, and remove them as needed?

Cameron Wright

A Are you running out of space on the virtual disk or on the physical disk holding it? VirtualBox creates dynamically sized virtual disks by default. This means that if you create a 20GB disk and load 10GB of data on to it, the virtual disk file is only about 10GB in size. As you add to it, the file grows, but bear in mind that if you remove data from the virtual disk, the file does not shrink. So, a size of 18GB only means it has held that much data at some time. If you delete, say, 5GB, the file is still 18GB even though it only holds 13GB. That space is not lost, though, as it is used as you add further data. So, the first step is to check how much is actually in use by running $ df -h / in a terminal within the virtual machine.

If it is significantly less than the 18GB taken up by the disk file, you can resize the virtual disk file to reclaim the unused space, but it will subsequently grow as you write to theDo this while the VM is not running. When you start it up, the extra space is not available to you until you open the partition manager or and resize the root partition.

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format3 min read
AMD Ryzen 5 8600G
Socket: AM5 Arch: Zen 4 (Phoenix) Process: TSMC 4nm FinFET Cores: 6 Threads: 12 Cache: 384KB L1, 6MB L2, 16MB L3 Speed: 4.3GHz (5.0GHz boost) Unlocked: Yes GPU: Radeon 760M GPU clock: 2.8GHz Compute: 8 units AI: Ryzen AI, 16 TOPS Display: Up to 4, DP
Linux Format1 min read
Kaki Pi
Another Pi-like SBPC appears! From Yuridenk-Shokai in Japan, this packs a Renesas RZ/V2H Coretex-A55/R8/M33 MPU with 80 TOPS of AI. It’s aimed at robotics and has four CSI video inputs along with a PCIe 3 connection. Find out more in Japanese: www.ka
Linux Format2 min read
Moosync
Version: 10.3.2 Web: https://moosync.app There’s no scarcity of music players for the Linux desktop, but what sets Moosync apart from its peers is its ability to seamlessly play local tracks and online music. Moosync offers both DEB and RPM precompil

Related