How do I free up space in my root directory?

How do I free up space in my root directory?

Freeing disk space on your Linux server

  1. Get to the root of your machine by running cd /
  2. Run sudo du -h –max-depth=1.
  3. Note which directories are using a lot of disk space.
  4. cd into one of the big directories.
  5. Run ls -l to see which files are using a lot of space. Delete any you don’t need.
  6. Repeat steps 2 to 5.

How do I give a root partition more space?

The easiest thing is to boot from live medium, use gparted to delete the swap, expand /, saving 2 GB for swap, and then remake swap. You’ll need to change the uuid of swap in /etc/fstab. You could also reinstall, using either the auto layout or Something Else option to get the setup that you want.

What happens when you mount a partition?

When a drive is mounted, the mount program, in conjunction with the kernel and possibly /etc/fstab works out what kind of filesystem is on the partition, and then implements (through kernel calls), standard filesystem calls to allow manipulation of the filesystem, including reading, writing, listing, permissions etc.

Why do you mount a drive?

Formats and mounting Mounting ensures that your computer recognizes the media’s format; if your computer cannot recognize that format, the device cannot be mounted.

How much disk space does the root file system have?

The root file system is located under /. The message you are receiving tells you that the disk partition that is mounted on the root file system (/) has 533.9MB available. However, this does not include the other two partitions. You can see more information about the partitions and their mount points by typing lsblk.

What does it mean to mount a file system in Linux?

Mounting a filesystem simply means making the particular filesystem accessible at a certain point in the Linux directory tree. When mounting a filesystem it does not matter if the filesystem is a hard disk partition, CD-ROM, floppy, or USB storage device.

Do you have to be root to mount a filesystem?

Before you can mount a filesystem to a directory, you must be logged in as root (some filesystems can be mountable by a standard user) and the directory you want to mount the filesystem to must first exist. Also in some situations, you must be logged in as the root user in order to make the particular mount directory.

How does a kernel Mount the root partition?

Grub mounts the /boot partition and then executes the kernel. In Grub’s configuration, it tells the kernel what to use as the root device. C’mon, GRUB doesn’t “mount” /boot, it just reads ‘menu.lst’ and some modules, it isn’t part of LINUX kernel either. When you call the kernel, you will pass a “root” argument with the root partition.