Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Linux disk space is disappearing problem


    Hi everyone,

    I am having a problem where when I leave my fedora 17 on for too long, my hard drive somehow completely fills up, leaving no room to write/save any files. This problem repeats itself when I reboot and the disk space is all freed but it is taking a terrible toll on my computer. The fan runs fast and computer temperature goes very high.

    What could be the problem and how can I fix this? Each minute or so I run df -h and my available space decreases by .1G.

    My thoughts is that a run away process needs to be stopped or I have a virus.

    Any thoughts, comments, suggestions are greatly appreciated. Thanks.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,777
    Hi and Welcome !

    Have you ever cleared cache of Package Manager? Execute this in Terminal
    Code:
    su -c 'yum clean all'
    df -h
    Post the output of fdisk -l and df -h commands here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Code:
    Filesystem                  Size  Used Avail Use% Mounted on
    rootfs                       34G  5.4G   29G  16% /
    devtmpfs                    1.9G     0  1.9G   0% /dev
    tmpfs                       1.9G   84K  1.9G   1% /dev/shm
    tmpfs                       1.9G   15M  1.9G   1% /run
    /dev/mapper/vg_god-lv_root   34G  5.4G   29G  16% /
    tmpfs                       1.9G     0  1.9G   0% /sys/fs/cgroup
    tmpfs                       1.9G     0  1.9G   0% /media
    /dev/sda5                   497M   60M  413M  13% /boot
    /dev/mapper/vg_god-lv_home   17G  7.0G  9.1G  44% /home
    Here is the output of df-h
    fdisk -l does not print anything out.

  4. $spacer_open
    $spacer_close
  5. #4
    Normally the Use% is 2% for /home and here is the output for the command

    su -c 'yum clean all'

    Code:
    Loaded plugins: langpacks, presto, refresh-packagekit
    Cleaning repos: adobe-linux-x86_64 fedora updates
    Cleaning up Everything
    No delta-package files removed by presto

  6. #5
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    fdisk -l does not print anything out.
    That is expected behavior when the command is run as a normal user. You need to run it as root.

  7. #6
    Here's the actual output of fdisk -l
    Code:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x968c91df
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1            2048    37750783    18874368   27  Hidden NTFS WinRE
    /dev/sda2   *    37750784    37955583      102400    7  HPFS/NTFS/exFAT
    /dev/sda3        37955584   857155583   409600000    7  HPFS/NTFS/exFAT
    /dev/sda4       857155584   976773167    59808792    5  Extended
    /dev/sda5       857157632   858181631      512000   83  Linux
    /dev/sda6       858183680   976773119    59294720   83  Linux
    
    Disk /dev/mapper/luks-a8f74ca0-a749-4888-89fd-7114d8ac83a7: 60.7 GB, 60715696128 bytes
    255 heads, 63 sectors/track, 7381 cylinders, total 118585344 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/vg_god-lv_swap: 6140 MB, 6140461056 bytes
    255 heads, 63 sectors/track, 746 cylinders, total 11993088 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/vg_god-lv_root: 36.4 GB, 36406558720 bytes
    255 heads, 63 sectors/track, 4426 cylinders, total 71106560 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/mapper/vg_god-lv_home: 18.2 GB, 18152947712 bytes
    255 heads, 63 sectors/track, 2206 cylinders, total 35454976 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Any thoughts on what's draining my disk space?
    Last edited by workisnotfun; 11-18-2012 at 10:15 PM.

  8. #7
    I'm not sure if this is related or not but my internet connection turns on and off periodically (not randomly) when this periodic loss of memory occurs. Also I am dual booting Windows 7 where my internet connection never does this.

  9. #8
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    I'm not sure what is causing your problem and don't see anything unusual in your df -h or fdisk output other than that your /home partition is half the size of the / partition. Usually, people will have a /home partition which is much larger than /. Also, having 44% used should not be a problem. I think seeing 2% of a /home partition full/used would be pretty rare. Maybe DC or someone else who knows more about this will post?

  10. #9
    Actually I was exaggerating and normally lowest I've seen is 7% Used. If I leave my laptop on for several hours more, it goes to 99%-100% full and I can't even save anymore(text files for example).

    When this happens I have to shut all programs then shut down and turn on again. Though this temporary fixes the problem, I really want a permanent solution.

  11. #10
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,874
    post the output of
    Code:
    sudo ls -la /var/log
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •