The tag has no wiki summary.

learn more… | top users | synonyms (2)

2
votes
2answers
471 views

/var House Keeping

Does anyone have any general advice or links for doing some house keeping on the /var filesystem on Unix and Linux servers? I have searched the issue quite a bit but can find no real concrete ...
4
votes
2answers
678 views

btrfs on openSUSE not releasing disk space

I have an openSUSE 12.1 install on my main desktop running with btrfs filesystem for root (/boot is ext4). I started having issues today with KDE informing me that disk space is almost all gone and ...
2
votes
2answers
325 views

How come lvextend allocates less than the specified amount of space?

I am trying to extend a volume, let's call it /dev/vol1. I see the initial volume size is 500MB when I call: df --block-size=M /dev/vol1 then to extend it 100MB more I call: lvextend -L+100M ...
3
votes
1answer
877 views

How to do df only on root partition?

How can get df results only for / partition. The partition name/identification (/dev/sda2, /dev/cciss/c0d0p1) could vary on different computers.
12
votes
1answer
8k views

How to remember the difference between du and df?

du and df do rather similar things, and so I always find myself typing the wrong one. I think if I knew what "du" and "df" stands for it might make it easier to remember which to use. What is a way ...
4
votes
5answers
371 views

How does this directory use so much space

Unix is not my native language and I'm getting confused by their concept of filesystems. When I look at my free space I see: /$ df -kh Filesystem Size Used Avail Use% Mounted on ...
0
votes
1answer
118 views

du (disk usage) and format specifier for file/directory sizes strings?

I am really fond of du, and I often like to use it like this: $ du -hsc /var/mail/ /var/log/ 2>/dev/null 4,0K /var/mail/ 5,7M /var/log/ 5,7M total However, I'd like to be able to ...
6
votes
6answers
1k views

Which installed software packages use the most disk space on Debian?

Disk space on my root partition is running low, so I want to delete some applications from the system. How can I see which software packages use the most disk space? Is it possible to view that from ...
7
votes
3answers
350 views

How do you tell what hard drive a file is on?

On Debian, I have multiple hard drives, how do I know where /var/www is? Bonus: How do I check the capacity and consumed capacity and of my drives?
1
vote
2answers
173 views

odd output from df command on a SLES

I know I'm not very good at math...but check out this output: SERVER:~ # df -h /ORACLE/LOGS/b Filesystem Size Used Avail Use% Mounted on /dev/mapper/LOGSdatavg-LOGSb_lv 96G ...
3
votes
4answers
3k views

From df device name to physical drive name (vendor / type)

Seeing the device name by df, is it somehow possible to resolve it to the physical drive name such as vendor / type. /dev/sda3 915.4G 34.9G 880.0G 4% /share/HDA_DATA /dev/sdd3 ...
2
votes
1answer
1k views

How much can the space allocated for an LVM snapshot be reduced?

I created an LVM snapshot, then I modified the original logical volume, and now I see that I probably allocated too much space to hold the snapshot. And I want to reclaim some free space by reducing ...
4
votes
1answer
3k views

When using btrfs, why “Size”, “Used” and “Avail” values from df do not match?

I have a btrfs partition. When I run df -h, it shows: Filesystem Size Used Avail Use% Mounted on /dev/sda2 113G 101G 8.3G 93% /home From Why is that? Is it because reserved space for ...
7
votes
4answers
7k views

Finding files that use the most disk space

Is it possible to list the largest files on my hard drive? I frequently use df -H to display my disk usage, but this only gives the percentage full, GBs remaining, etc. I do a lot of data-intensive ...
1
vote
2answers
908 views

RedHat Linux Space Usage Problem

I recently downloaded something on my Redhat Linux computer, and it told me I was out of space. I checked my disk usage, and it says I've used 100% of my folder, but as you can see I still have almost ...
0
votes
3answers
145 views

Finding Writeable Remaining Space

I work for an organization where we employees are alloted separate space on a remote server. I SSH to that server, and the using du I get to know that free space shown is around 2 GB. But not all can ...
3
votes
2answers
1k views

ext4 used space (not -m option, not deleted files)

I'm a bit puzzled about the way ext4 reports used space. On a new Debian wheezy (testing) installation, I consistently got about 1GB extra space used with a 60GB SSD, when compared to du. I then ...
3
votes
5answers
2k views

How big should the rootfs partition should be on Arch Linux?

I've installed ArchLinux yesterday and set up a 10 GB partition for the root file system, 256 MB for swap, and the rest (456 GB) for my /home. However I still have 4.0 GB left on my root file system ...
9
votes
4answers
4k views

Is there a way of deleting duplicates more refined than fdupes -rdN?

Recently I have the need to delete a lot of duplicates. I am merging three or four filesystems, and I want the space to be used economically. At first, fdupes seemed like it was the best tool for the ...
1
vote
1answer
306 views

Why does the “du” command count in 4KB steps? [duplicate]

Possible Duplicate: Directory size calculation difference I don't understand how the du command under Linux works. I wanted to count the overall size of a few hundred, small files and du ...
11
votes
7answers
45k views

Tell fs to free space from deleted files NOW

Is there a way to tell the kernel to give back the free disk space now? Like a write to something in /proc/ ? Using Ubuntu 11.10 with ext4. This is probably an old and very repeated theme. After ...
0
votes
3answers
321 views

Are .bz2 files inside /var/lib/pengine safe to delete?

My problem is that my /var partition is over 80% (total size: 4.9G). I was reviewing the files into this partition and I saw a file which has 3.4G. (/var/lib/pengine) I dig into that /pengine file ...
11
votes
2answers
1k views

“ls -lh” reports total size less than sum of individual sizes

Under what circumstances would ls -lh show a total that is less than the sum of the individual files? For example: $ ls -lh /var/lib/nova/instances/_base total 100G -rw-rw-r-- 1 nova nova ...
2
votes
2answers
177 views

Why is my /home separate from /?

I was confused why I was getting out of space errors so I ran df and saw this: [me@fedlap /]$ df -h Filesystem Size Used Avail Use% Mounted on rootfs 43G ...
2
votes
1answer
601 views

du reports surprising total size for same data

Don't worry, this isn't typical "du vs. df" question. :-) I mounted a squashfs image (via loop) and used du to reported the size: du --apparent-size -lsh image1/ which reported 215M. Then I used rsync ...
2
votes
1answer
154 views

Getting info about a Virtual file system

I have created a Virtual ext3 partition on a armv7 machine with: dd if=/dev/zero of=./system.img bs=1000000 count=200 mkfs.ext2 ./system.img tune2fs -j ./system.img Now I need to get info about ...
3
votes
2answers
348 views

Does /var keep growing in size?

tldp.org quotes /var as: Files in /var/log can often grow indefinitely, and may require cleaning at regular intervals. So without cleaning, using a system for a long enough period will fill up ...
6
votes
2answers
378 views

Mysterious write IO

I am just reviewing the disk IO of a XEN VM server. I stumbled across a DomU that has constant write traffic. To narrow that traffic further down I logged in to the DomU (CentOS 5, 64 Bit) and ...
0
votes
1answer
1k views

Shrink a Linux guest .vdi in VirtualBox?

I've seen instructions for shrinking the .vdi image for a Windows guest machine in VirtualBox 4.1.8. However, it used a tool to write zeroes to free space in the .vdi (nullfile-1.02.exe) that is for ...
1
vote
2answers
1k views

Alias Loop in csh

Why is there an Alias loop error created here: alias df 'printf "\n"; df -hP | column -t' But not here: alias df 'df -hP | column -t' I realize I could call the alias something else and still ...
2
votes
3answers
860 views

Root filesystem nearly full - should I be worried?

me@netbook:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 323M 292M 15M 96% / tmpfs 5.0M 4.0K 5.0M 1% /lib/init/rw tmpfs ...
1
vote
1answer
415 views

/usr partition filled up, need to make it larger or mount it somewhere else

I have 160 GBhdd. I have ubuntu on about 30GB and Rest is PC-BSD 9.0. On PC-BSD, my /usr is about 11GB and that is all used up. I realize that when I try to install ubuntu inside VirtualBox. I need ...
2
votes
1answer
9k views

How to see free disk space on SunOS?

It really makes me mad. SunOS 5.9 #format Searching for disks...done No disks found! # mount / on /dev/md/dsk/d0...(skip) /var on /dev/md/dsk/d4 ... /opt on /dev/md/dsk/d5 ... /home on ...
1
vote
3answers
150 views

How to clean up my desktop?

Now, I see that my desktop running rhel 5.6 has run out of space. Now I need to clean it up. There must be some unintentional files adding up. What I would like to be able to do is list the files in ...
2
votes
0answers
457 views

GNU/Linux, IO performance problems

I have some problems with my system performance. As I was adviced here, I used sar: $sar -u 5 and found out that the problems are caused by a low HDD performance, as I supposed (high %iowait). ...
4
votes
1answer
13k views

Using --exclude with the du command

This is probably something basic but I'm not able to make it work. I'm trying to use DU to get a total size of files minus certain directories. I need to exclude one specific directory called uploads ...
0
votes
0answers
45 views

How to limit the disk space for any user? [duplicate]

Possible Duplicate: Managing disk space on servers I want to limit disk space for any specific user. Actually I need to do this for every user. I am building a Scientific Linux server and I ...
8
votes
2answers
1k views

How can I list the top IO consuming files?

My document management software is doing a lot of IO and I would like to know which files it is accessing the most. Is there a Linux tool that would give me the list of the top IO consuming files, ...
5
votes
2answers
509 views

xfs disk usage is 15-30% bigger than the files

xfs seems to use 15-30% more disk space than the files require: # du 0 . # dd if=/dev/zero of=test bs=1M count=5k 5120+0 records in 5120+0 records out 5368709120 bytes (5,4 GB) copied, 10,527 ...
2
votes
3answers
2k views

find top 10 latest modified files

How do I get the last 10 files that were modified on my system. I have a system where its disk usage is maxed out I am not sure which files is increasing rapidly. I have a mysql instance stored on a ...
12
votes
3answers
6k views

Getting size with du of files only

How can I get the size of all files and all files in its subdirectories using the du command. I am trying the following command to get the size of all files (and files in subdirectories) find . ...
3
votes
2answers
5k views

How to check disk usage in ftp?

Is there a way to sum up the disk usage of a certain directory while in ftp? I was trying to create a script that will check what is the disk usage of the current directory and prints out the free ...
5
votes
1answer
1k views

Getting disk i/o statistics for single process in Linux

I need to monitor the I/O statistics of a process that writes to disk. The purpose is to avoid write rates too high for long periods. I know there's iostat tool to accomplish this task on a ...
3
votes
2answers
5k views

Why is 'df' hanging?

I have recently been having problems running df, where it just hangs. Here's strace output, and in it, you'll see that I killed since it was just sitting there: $ strace /bin/df execve("/bin/df", ...
16
votes
2answers
4k views

How can I find the number of files on a filesystem?

I want to know how many files I have on my filesystem. I know I can do something like this: find / -type f | wc -l This seems highly inefficient. What I'd really like is to do is find the total ...
2
votes
1answer
220 views

Managing disk space on servers

Are there any open source tools to view (and possibly restrict) disk usage per user? I need to track disk usage on a server by user.
8
votes
3answers
2k views

Directory size calculation difference

I need to get the size of directory in terminal for signing purposes. I'm using following command: du -s /path/to/dir I'm multiplying the result by traditional UNIX block size (512 bytes) and get ...
5
votes
2answers
819 views

How can I diagnose and repair missing drive space?

I have a small ext3 / partition on a 2T drive which appears to have a discrepancy in its free space. How can I determine what is causing it and how it can be fixed. After trying everything I could ...
2
votes
2answers
5k views

XenServer how can I shrink the virtual drive of XenServer domU?

How can I shrink the virtual drive of XenServer image?. I gave 300Gb of space for one image (domU) and that was mistake. Now I want to shrink it. How can I do that? The system is already set up and ...
4
votes
4answers
294 views

Generating sets of files that fit on a given media size for tar -T

Can anyone suggest a script that will take as input the name of one or more directories and a media size, and output lists of files for input to tar using -T (assuming no compression)? ...