You are currently viewing the United Kingdom version of the site.
Would you like to switch to your local site?
12 MIN READ TIME

Answers

Got a burning question about open source or the kernel? Whatever your level, email it to answers@linuxformat.com

Neil Bothwick lives in a Tux shaped house powered by Linux, honest!

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?

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.

BleachBit (www.bleachbit.org) is a good way to identify and remove cruft from your hard drive.

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 the virtual disk. On the opposite side of the equation, if the virtual disk is nearly full but you have plenty of space on the host system, you can enlarge the virtual disk in the Virtual Media Manager section of VirtualBox. Do 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 GParted and resize the root partition.

If you need to reclaim space within the virtual machine, you should first look at cache directories, especially .cache in your home directory and /var/cache/apt/ archives. The latter contains package files downloaded by the package manager. These can be safely deleted. Once you have cleared out old files, turn your attention to installed packages and get a size-ordered listing using Aptitude. This may not be installed, but you can install it from the package manager and it does not need much space. It is a standard tool for package manipulation on Debian-based systems. Then open a terminal and run this command:

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99p
SUBSCRIBE NOW
30 day trial, then just £9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
August 2023
VIEW IN STORE

Other Articles in this Issue


WELCOME
MEET THE TEAM
We’re running our own home AIs this issue, so what’s the one job you’d like AI to take off your hands? And it can’t be dealing with grumpy editors…
Machines learning
The Management demanded an AI cover and here
REGULARS AT A GLANCE
Newsdesk
THIS ISSUE: Ubunto Core is Snapped up >> AMD announces free firmware >> Fresh features for Gnome >> Wine owned by employees
Kernel Watch
Jon Masters keeps up with all the latest happenings in the Linux kernel, so you don’t have to.
Mailserver
LXFbuntu will not be a thing, but let
HotPicks
Vorta Mullvad Browser Wike CryFS rmLint Imaginer Letterpress cli-chess OpenRCT2 Boost Changer PDF Mix Tool
Linux format
The #1 open source mag Future Publishing Limited,
REVIEWS
Anycubic Photon Mono 2
Denise Bertacchi likes this blend of quick setup with detailed prints.
Intel Core i3-13100F
As Intel reclaims the mid-range, Paul Alcorn assesses that the company has lost the low-end.
Fedora 38
Nate Drake took the latest Fedora for a test drive and was blown away by the vast array of new spins and features.
EuroLinux 9.2
Nate Drake is on the continent this month, taking a stroll through the natural beauty of EuroLinux.
Peropesis 2.1
Nate Drake grapples with the ultra-minimalist Peropesis. Will he relive Linux’s glory days, recover a corrupted system or have a breakdown?
Valheim
Management are delirious to learn that Christopher Livingston can keep working long after his death and will take draugr entrails as payment!
ROUNDUP
Ubuntu spins
With the release of Ubuntu 23.04 still fairly recent, Michael Reed examines the differences between the official spins of that distribution.
The applications
A distro gets a lot of its personality from the default selection of apps.
Configuration tools
Hopefully, the settings cover all of the main areas of the system and its appearance.
The user interface
Your connection to the system.
Drive and memory efficiency
Extra efficiency is like having a faster CPU without spending money.
Package management
There is a variety of front-ends to the Ubuntu package system.
Suitability for switchers
How suitable is this distro for those used to a different OS?
Extra features and customisations
What does this distribution have that the others don’t?
The Verdict
Ubuntu spins
ALSO CONSIDER
The natural alternatives are the other Ubuntu flavours,
CONTROL YOUR A.I.
CONTROL YOUR A.I.
AI usually requires server farms of training GPUs, but Tam Hanna’s modest freelance budget lets him train his own personal HAL.
Nvidia CUDA rulez
You might not like it, but Nvidia runs this show.
Natural language translation
Modern smart machines can perform live translation.
AI see you…
Enable an AI to say what it sees.
Chatty AI man
A simple 250GB download can secure your own personal HAL.
IN DEPTH
Free all the things!
One of the brains behind Collabora Online, Michael Meeks talks to us about taking open source office to the cloud and document liberation.
Inside BlendOS
Matt Holder discovers how to use the Arch-based BendOS to mash together multiple distributions. Does it give the best of them all?
Silicon insides
Apple, AMD and Intel all take significantly different approaches to building CPUs. Darien Graham-Smith takes a closer look at today’s varied processor designs.
Pi USER
It’s (finally) raining Pis, hallelujah!
Eben Upton takes to the blogs to promise millions of Pis this summer.
Astronomical!
It’s out of this world.
AI, AI, oh!
Learning farms.
GET THE LOWE DOWN
Les Pounder works with groups such as the
Debug Probe
Les Pounder was about to reach for a can of fly spray in an effort to rid his code of bugs, but then he spotted this.
Pi Compute Blade
Les Pounder hasn’t been left on the shelf, but he’s been put on the rack.
Use a Pi HAT on the Raspberry Pi Pico
Being a skinflint Northerner, Les Pounder is all about reusing things, so he explains how you can use Pi HATs on the Pico.
TUTORIALS
Minimalist RSS reader
As far as Shashank Sharma is concerned, it’s not social media but ads that are the bane of modern internet usage, and he has a clever workaround.
Keep your Linux install backed up
Nick Peers reveals the tools, techniques and tips you need to protect everything from personal files to your entire Linux installation.
PL/I – the multifaceted language
Mike Bedford discovers the mysteries of PL/I, the language that IBM hoped would replace both FORTRAN and COBOL.
How to test out new desktops the easy way
Never accused of being fast and smooth, Mats Tage Axelsson explains how to try your next desktop and make the switch faster and smoother.
Capture and restore old photos and slides
Mike Bedford shows you how to scan, repair and archive old film-based photos, to give your family heirlooms a new lease of life.
Compose using the ultimate tracker
Michael Reed explores some common music-making workflows in Ardour 7, the premier Linux digital audio workstation application.
CODING ACADEMY
Code your own Python text adventure
Nate Drake guides you through creating your own interactive text adventure with the power of Python, starting with the basics…
Spice up your Python console applications
Matt Holder demonstrates how to use the Python Rich library to add formatting to your console applications.
Chat
X
Pocketmags Support