Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Missing Disk space

  1. #1
    Join Date
    Nov 2005
    Location
    Barcelona
    Beans
    254
    Distro
    Ubuntu 12.04 Precise Pangolin

    Missing Disk space

    Note: 5% of the space on an ext3 partition is reserved for root use, that is why I was missing some 23GB on a 500GB HD..... thanks mikechant for your solution below!!!

    ************************************************** **********

    i have a 500GB external USB drive, which although there should be 24GB of space on it, there is less than 1GB. why could this be?

    df -h shows:
    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sdc1             459G  435G  807M 100% /media/MassCool
    Even taking into account the 1000 vs 1024 bytes thing, the math just doesn't add up.
    Last edited by brallan; July 14th, 2011 at 05:24 PM. Reason: SOLVED

  2. #2
    Join Date
    Dec 2010
    Location
    Something witty.
    Beans
    203
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Missing Disk space

    Assuming you're using this as backup or other storage within Ubuntu.

    You can try this:

    Code:
    cd /media/MassCool
    du -sh *
    That should give you the total size that each folder/file is taking up.

    Also,

    Code:
    ls -lah
    will show any hidden folders/files and how much size they're using as well (in a "human" format).

  3. #3
    Join Date
    Mar 2010
    Location
    ρθΦ=000
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Missing Disk space

    A pretty basic suggestion - have you check your & root's trash to ensure they are emptied? Some files could be held up in there.

    Else follow blind2314's suggestion and see what is using up your disk space

  4. #4
    Join Date
    Nov 2005
    Location
    Barcelona
    Beans
    254
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Missing Disk space

    Thanks for your answer, blind2314!

    Quote Originally Posted by blind2314 View Post
    Assuming you're using this as backup or other storage within Ubuntu.
    Yes.

    Quote Originally Posted by blind2314 View Post
    Code:
    cd /media/MassCool
    du -sh *
    That should give you the total size that each folder/file is taking up.
    here's what it says:

    eeepc@eeepc-901:/media/MassCool$ du -sh *
    du: cannot read directory `lost+found': Permission denied
    16K lost+found
    435G VIDEO

    even if I mount is as root, it says the same:
    root@eeepc-901:/media/MassCool# du -sh *
    16K lost+found
    435G VIDEO

    Quote Originally Posted by blind2314 View Post
    Code:
    ls -lah
    will show any hidden folders/files and how much size they're using as well (in a "human" format)
    but it only shows me the size of the folder file, not the folder size:

    Code:
    eeepc@eeepc-901:/media/MassCool$ ls -lah
    total 28K
    drwx------ 4 eeepc eeepc 4.0K 2011-03-18 15:01 .
    drwxr-xr-x 4 root  root  4.0K 2011-03-18 15:15 ..
    drwx------ 2 root  root   16K 2011-02-11 12:45 lost+found
    drwx------ 6 eeepc eeepc 4.0K 2011-03-17 23:20 VIDEO

  5. #5
    Join Date
    Nov 2005
    Location
    Barcelona
    Beans
    254
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Missing Disk space

    Quote Originally Posted by seawolf167 View Post
    A pretty basic suggestion - have you check your & root's trash to ensure they are emptied? Some files could be held up in there.

    Else follow blind2314's suggestion and see what is using up your disk space
    tried all that, to no avail.

    But now I am starting to wonder if the partition is bad:

    sudo fdisk -l shows it as an NTFS disk!

    Code:
    Disk /dev/sdc: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000e7314
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1               1       60801   488384001    7  HPFS/NTFS
    but sudo blkid shows it as ext4!

    Code:
    /dev/sdc1: LABEL="MassCool_465GB" UUID="0bd4e71d-ad2e-4d9c-80f7-bbf399a811ae" TYPE="ext4"
    Maybe something is very wrong with the partition. Or perhaps the Masscool external USB enclosure doesn't like ext4? Is it possible?

    I'd hate to redo this data, as it is a lot of copying. I'm going to install gparted and see what it says.

  6. #6
    Join Date
    Nov 2005
    Location
    Barcelona
    Beans
    254
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Missing Disk space

    well, resized the partition using gparted and fdisk still shows it as ntfs though gparted thinks it is a ext4 disk. what could this mean?

    gparted is not finding any errors

  7. #7
    Join Date
    Dec 2008
    Location
    UK
    Beans
    589
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    Re: Missing Disk space

    Firstly, I don't understand the NTFS/ext4 discrepancy, but assuming it *is* a valid ext4 filesystem, the explanation for the mssing 24GB is probably quite simple - by default 5% of the disc is reserved and can only be used by root.
    This may be appropriate for a root filesystem but for most other filesystems it's unnecessary.

    You can easily reduce or eliminate this reserved area (I've done it myself several times). Use this command:

    Code:
    sudo tune2fs -m 0 /dev/sdc1
    The -m option specifies the reserved % - in this case 0%, no space reserved.
    This should take effect immediately, try a df -h to check.

    (If it really is an NTFS filesystem tune2fs should recognize this and not do anything).

  8. #8
    Join Date
    Nov 2005
    Location
    Barcelona
    Beans
    254
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Missing Disk space

    now gparted gave me an error. Going to repartition.

  9. #9
    Join Date
    Dec 2008
    Location
    UK
    Beans
    589
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    Re: Missing Disk space

    Removed in light of the above comment.

  10. #10
    Join Date
    Dec 2010
    Location
    Something witty.
    Beans
    203
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Missing Disk space

    Quote Originally Posted by brallan View Post
    Thanks for your answer, blind2314!



    Yes.



    here's what it says:

    eeepc@eeepc-901:/media/MassCool$ du -sh *
    du: cannot read directory `lost+found': Permission denied
    16K lost+found
    435G VIDEO

    even if I mount is as root, it says the same:
    root@eeepc-901:/media/MassCool# du -sh *
    16K lost+found
    435G VIDEO



    but it only shows me the size of the folder file, not the folder size:

    Code:
    eeepc@eeepc-901:/media/MassCool$ ls -lah
    total 28K
    drwx------ 4 eeepc eeepc 4.0K 2011-03-18 15:01 .
    drwxr-xr-x 4 root  root  4.0K 2011-03-18 15:15 ..
    drwx------ 2 root  root   16K 2011-02-11 12:45 lost+found
    drwx------ 6 eeepc eeepc 4.0K 2011-03-17 23:20 VIDEO
    Yes, it only shows you the folder size, but it also proves that there's nothing hidden in the root directory (not /, the root directory of this drive) taking up space. Here's another idea. DISCLAIMER: In the old Solaris world, fsck can cause some..issues. Since this isn't your root partition, it's not going to FUBAR your machine, but data loss is always a possibility (though highly unlikely).

    Code:
    fsck -n -t ext4 /media/MassCool

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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