This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

-4
votes
1answer
26 views

How can I show the size of all cache files in my home directory? [on hold]

I want to get the size of all cache files in the home directory.
0
votes
2answers
42 views

Where's my space? [duplicate]

So df is telling me that I'm using 49/59G, so I set out to find my space. $ df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 59G 49G 7.9G 86% / none 4.0K 0 ...
1
vote
0answers
36 views

Detect and remove unused files to save space [closed]

I want to save disk space by removing files I don't need. BleachBit crashed systematically when running in my Ubuntu 14.10 machine. However, what can I run as command to clear temporary files, broken ...
2
votes
0answers
48 views

df human-readable calculation

I was wonder why there is a difference between the reported size of a filesystem with df -h and calculating it manually. for example: The size according to LVM: # lvdisplay system/var | grep -i ...
1
vote
0answers
28 views

Specific question about “/mnt”: /mnt is not showing the disk space [duplicate]

The disk space showing from "df -h" and "du -sch ./*" seems different for "/mnt". Can somebody help me in finding the probable reason? =============================== #df -h Filesystem ...
1
vote
3answers
43 views

What is the output of “du” command during a long copy ?

Recently, I have launched the cp command to create a backup of a big directory. So, I used a command like that : cp -rv big_directory new_location Because files are big, it took long time to ...
0
votes
1answer
19 views

tmpfs and disk partitionning (incoherent partition size between df and fdisk)

I will soon run out of space on my hard drive. Therefore I tried to change the partitions and I discovered something that I don't understand. df -h gives mes this output : Filesystem Size Used ...
1
vote
1answer
22 views

List folders greater than 10G and mail to respective owners about the usage

In our environment, we have an NFS mount which contains all users home directories. I want to find the users who's home directories sizes are greater than 10G and need to send a notification to them. ...
1
vote
1answer
51 views

Is it safe to strip the binaries in Linux Mint?

I am trying to reduce the disk space on my computer, and du shows that the library directories (/usr/liband /lib) and binary directories (/sbin, /bin, /usr/bin, /usr/sbin) take up the most space apart ...
13
votes
2answers
597 views

Why is df missing 500MB of available space?

I've just had a message today from Ubuntu 11.04 that I have only 100 MB left, so I cleaned up some files, and I got 200 MB. Then, after a couple of hours, suddenly I have only 26 MB?! I tried df, du ...
1
vote
2answers
36 views

Disk usage in stat output and inode

Below is my stat output: [alankoh@SJOAM swap]$ stat myswapfile File: `myswapfile' Size: 2147483648 Blocks: 4194312 IO Block: 4096 regular file Device: fd03h/64771d Inode: 1179650 ...
1
vote
1answer
33 views

How to add hostname, date, and fix disk size

I'm collecting disk usage data and want to add the date, time, and hostname to this command. How can I do it in this format: YYYY-MM-DD HH:MM:SS,HOSTNAME,DISK_USAGE_DATA Command I have so far: ...
0
votes
3answers
80 views

Get recursive file count (like `du`, but number of files instead of size) [duplicate]

Since I'm having performance problems with rsnapshot, I'd like to identify directories with great number of files recursively. I think the problem is not the size of the files, but the file count in ...
0
votes
0answers
38 views

du -hs shows 15gb usage but the files are 30gb on the local disk [duplicate]

I just finished copying my music collection to my Android SD card. The files are on a local hard disk and were copied to the SD card using mtpfs (FUSE driver for accessing MTP protocol as though it ...
0
votes
2answers
54 views

How to find all .zip and .rar files recursively and sort them by size [duplicate]

I am looking for all .zip and .rar files in comp_tuts folder and I am intersted in showing their file sizes and sorting them from biggest to smallest. I have tried ls -R *.zip ls: cannot access ...
2
votes
1answer
39 views

Output file generated by tar

tar can be used to gather a whole directory into a single file. I tried with the sample directory sampledir containing just some text files, with no subdirectories. Originally the directory occupies ...
0
votes
1answer
39 views

Disk still full after deleting some files

I have an AWS linux instance with a root drive of 32GB I have an EBS mount of 20GB On my root I ran out of space so cleared out some files. However my root drive is still full. I can't find out why ...
1
vote
1answer
44 views

du reports directory size as much bigger than the sum of its contents

Running du -shc * in the top directory gives 110G for a particular folder, whereas running the same command inside that folder gives a total size of 11G. How is that possible? Platform Details: OS: ...
0
votes
0answers
41 views

MS Windows Folder Properties Size / Unix du -bs

I use MS Windows Folder Properties Size as a means to check the integrity of folders as I make copies, archives and backups. There have been multiple posts on the difference between the Unix system ...
-2
votes
1answer
23 views

Official resources about disc management on linux / distributions [closed]

My question is about official linux and common distributions (e.g. fedora/debian) on learning disk management in practice on linux / linux distributions. The layout, may be including the file system, ...
3
votes
1answer
80 views

Where are my inodes going?

My root filesystem is running out of inodes. If this were an issue of disk space, I'd use du -s to get a top-level overview of where the space is going, then head down the directory tree to find ...
3
votes
1answer
53 views

hardlinks seem to take several hundred bytes just for the link itself (not file data)

Additional Info Firstly, thank you for all the answers. So I re-ran the tests again to test the answer below that a directory/folder entry takes up 4KB and this was skewing my numbers, so this time ...
3
votes
3answers
80 views

Solaris 11 and zfs, i don't understand space used

This is the situation. Solaris11 virtual machine on VirtualBox as guest. Virtual disk is 55GB df report Filesystem Size Used Available Capacity Mounted on rpool/ROOT/solaris-8 55G ...
4
votes
1answer
50 views

218TB XFS LVM filesystem. 144TB Free. Error message “No Free Space Left on Device”

I have a giant 218 TB RAID6, across LVM. It is actually 2 separate RAID6s joined together through LVM to form one giant RAID6. df -h shows all space was available, and I mounted to /share. I wanted ...
0
votes
1answer
30 views

I have just made a 2TB CentOS vm but the disk isn't available

ok yesterday I made a fresh VM with 2.0Tb of disk. when I do df -H this is what I get [root@datastore ~]# df -H Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_datastore ...
1
vote
2answers
36 views

need to repartition logical volumes

I have bad balance between my root/home LVs. Please note that I'm extremely new to understanding disk management and Linux in general, so I'm probably going to say a few things incorrectly. My goal ...
1
vote
2answers
57 views

Using df and trying to awk a specific column

Among other problems with this script I am trying to make (this is the first unix/linux script I have ever made), I am trying to use df to get the % of disk space used and email it to the root. Our ...
1
vote
0answers
37 views

overlayfs root filesystem, cannot read /etc/mtab

I'm doing the following: mkdir /tmp/upper /tmp/work mount -t overlay overlay -o lowerdir=/,upperdir=/tmp/upper,workdir=/tmp/work / ls -l /etc/mtab > lrwxrwxrwx 1 root root 19 27. Feb 09:16 ...
1
vote
0answers
13 views

keep same inodes metadata with rsync or ignore metadata with du

I'm trying to synchronize two folders from a remote computer. I want to use rsync to send the folder, and du to check if the space used is identical on the remote computer. The problem is even with a ...
2
votes
1answer
34 views

swapon command is not listing the lvm name

I am facing issues with swapon -s command. It is displaying some other filename instead of my lvm name which i have given ( swap is LVM partition ) swapon -s command is not listing my LVM Name for my ...
0
votes
2answers
28 views

Linux tools for deleting backups when they get too old?

I was looking at SQL Server 2000 today, and it has an argument in the EXECUTE command called -DelBkUps for deleting backups that are of a certain age. Does Linux have any tools for deleting backups ...
2
votes
5answers
110 views

Understanding where disk space has gone?

I am using Debian. df -h shows me that I'm using around 275GB: Filesystem Size Used Avail Use% Mounted on rootfs 315G 274G 26G 92% / udev ...
1
vote
2answers
93 views

df -h shows only half the disk space I thought I had?

I am a Linux newbie. I'm working on a DigitalOcean Debian droplet that in theory is supposed to offer 640GB of disk. When I do df -h this is what I see: Filesystem Size Used Avail ...
1
vote
2answers
54 views

du: combine both timestamps

On Linux, du offers the displaying of timestamps: atime OR ctime OR mtime Question: Is there an easy way to get all three of them displayed at the same time (one file, all three timestamps)? I guess ...
0
votes
1answer
128 views

Mounted Filesystems showing wrong details

I am using SLES 11 SP3. When I run df -lh in order to see mounted filesystems I get following results, which are correct: Filesystem Size Used Avail Use% Mounted on /dev/sdb3 9.9G 2.9G ...
4
votes
4answers
446 views

How can I get the size of stdin?

I'm about to compress a large directory and I want to know how large, exactly, the resulting file will be. I've tried using du: $ tar -cv dir | du -h - du: cannot access '-': No such file or ...
3
votes
5answers
102 views

How can i find out what is taking space on my system

I am trying to find out what files/folders are using most space on the filesystem df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 94G 85G 4.4G 96% / tmpfs 16G ...
10
votes
2answers
352 views

Unable to copy large file onto ext2 usb stick [closed]

I have an 8G usb stick (I'm on linux Mint), and I'm trying to copy a 5.4G file into it, but getting No space left on device The filesize of the copied file before failing is always 3.6G An output ...
1
vote
2answers
93 views

Find largest files of a particular owner

I accidentally chown'd my entire file system to a particular user, after correcting the issue I've found disk space still being consumed by that particular user's files even though their account ...
1
vote
1answer
40 views

Search directories and return size / disk space usage for each

On my server I have a bunch of accounts that have WordPress installed and also have backup directories in the format: softaculous_backups. I can find all the directories using the command: $ find / ...
1
vote
1answer
41 views

Monitor a hard disk partition

I need to monitor a partition on a CentOS server (/, to be exact) and would like to be alerted when it is full or full to a certain percentage. What is a simple way (using built-in tools) to ...
1
vote
3answers
209 views

Why doesn't df's output default to a human-readable format? [closed]

I mean, did the developers think people would enjoy reading 19478204 rather than 19 GB? Could it be that in the older systems there weren't as much disk space so it was OK back then to count ...
8
votes
3answers
1k views

How do I compress files in-place?

I have a machine with 90% hard-disk usage. I want to compress its 500+ log files into a smaller new file. However, the hard disk is too small to keep both the original files and the compressed ones. ...
0
votes
1answer
26 views

Why does Calamares think there isn't enough space?

I am exploring the Maui distro and this is my first experience with Calamares. During the 'prepare' stage of Calamares it complains that my system doesn't have at least 6GB of available drive space. ...
0
votes
2answers
81 views

Deleting files after booting from a USB drive

I am unable to boot my laptop and, from what I have read, it is due to the disk being full, which in turn is because Evolution downloaded 6000 emails, clogging the system. I can boot from a USB memory ...
1
vote
1answer
407 views

ext4 disk space not reclaimed after deleting files

I recently got a "device full" warning for a 2 Tb external ext4 drive. I deleted a bunch of files, about 90-100 Gb of old system backups, and since I did not want to empty all trash, I deleted the ...
1
vote
1answer
134 views

How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer? [duplicate]

On a Mac, using Bash, I tend to do du -sh * to tell the sizes of files and folders in the current directory, in MB and GB. But if I want to sort them by the sizes, I might do du -sh * | sort -g ...
1
vote
4answers
106 views

Change apt-get's installation path

I have a machine on which the root partition is running out of space. I have another disk on which there is plenty of free space. How do I configure apt-get to install packages on a different ...
4
votes
1answer
714 views

Why does Chromium use so much disk space on Gentoo Linux?

I am a newbie on Linux, and I have chosen Gentoo for my Linux distribution. I installed it in VirtualBox for practice purposes only, so I just gave it 10GB of disk space. Yesterday when I tried to ...
0
votes
2answers
82 views

Where are all the disks used?

This is almost a little embarrassing to ask, but I just can not figure this one out myself really. I'm trying to find out where the disks of my machine are used and if they are actually used at all. ...