How can I tell how much disk space is in use and how much is available?

How can I tell how much disk space is in use and how much is available?

Disk /dev/sda: 24.77 GiB, 26575110144 bytes, 51904512 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
?

Disk /dev/sdb: 260 MiB, 272629760 bytes, 532480 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
fugee@mail:~$ sudo df /dev/sda
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 484892 0 484892 0% /dev

sudo df /dev/sda
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 484892 0 484892 0% /dev

1 Reply

Hi @skaplan279 - The df command is what I'd use, but I'd recommend df -h so it's more easily readable.

Other than that you can check the storage space on your Linode from within the Cloud Manager at the same place you would go to resize your Linode's disks:

https://www.linode.com/docs/guides/resize-a-linode-disk/

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct