Professional Web Applications Themes

Disk unaccountably filled - Linux Setup, Configuration & Administration

Neil Moore <neilcfconline.co.uk> wrote: > I am working though the Linux From Scratch (4.1) tutorial without any > problems until after I had changed the root to the new partition (at > Part III) and mounted "proc" filesystem. > At this point the disk seems to have completely filled with files that > I can't account for. The disk is 1 Gb approx. formatted as Ext2. > Nautilus says the following about its contents - "16139 items, > totalling 307.6 MB (some contents unreadable)" and the "df" command > says: > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/hda3 ...

  1. #1

    Default Re: Disk unaccountably filled

    Neil Moore <neilcfconline.co.uk> wrote:
    > I am working though the Linux From Scratch (4.1) tutorial without any
    > problems until after I had changed the root to the new partition (at
    > Part III) and mounted "proc" filesystem.
    > At this point the disk seems to have completely filled with files that
    > I can't account for. The disk is 1 Gb approx. formatted as Ext2.
    > Nautilus says the following about its contents - "16139 items,
    > totalling 307.6 MB (some contents unreadable)" and the "df" command
    > says:
    > Filesystem 1K-blocks Used Available Use% Mounted on
    > /dev/hda3 2063536 1722632 236080 88% /
    ^ ^^^
    i read the size as 2gig for just hda3, am i missing something?
    > /dev/hda2 101107 9324 86562 10% /boot
    > /dev/hda5 1494204 1494204 0 100% /mnt/lfs
    > none 127632 0 127632 0% /dev/shm

    > At this point I can't move any more files onto the partition. I have
    > previously had much more data on this disk however I deleted this to
    > see if that would help, but it didn't, so this doesn't seem to be a
    > physical defect.
    if you haven't, run fsck. then man du, i suggest du -ak > /tmp/du.out.
    this should tell you what is taking up space, you can sort the output
    on size, too. good luck, --Loren

    > Could someone please tell me what to do next. Thanks. Neil
    lcoe Guest

  2. #2

    Default Re: Disk unaccountably filled


    "lcoe" <lcoec1932201-a.attbi.com> wrote in message
    news:TQXMa.3964$Ix2.1168rwcrnsc54...
    > Neil Moore <neilcfconline.co.uk> wrote:
    > > I am working though the Linux From Scratch (4.1) tutorial without any
    > > problems until after I had changed the root to the new partition (at
    > > Part III) and mounted "proc" filesystem.
    >
    > > At this point the disk seems to have completely filled with files that
    > > I can't account for. The disk is 1 Gb approx. formatted as Ext2.
    > > Nautilus says the following about its contents - "16139 items,
    > > totalling 307.6 MB (some contents unreadable)" and the "df" command
    > > says:
    >
    > > Filesystem 1K-blocks Used Available Use% Mounted on
    > > /dev/hda3 2063536 1722632 236080 88% /
    > ^ ^^^
    > i read the size as 2gig for just hda3, am i missing something?
    >
    > > /dev/hda2 101107 9324 86562 10% /boot
    > > /dev/hda5 1494204 1494204 0 100% /mnt/lfs
    > > none 127632 0 127632 0% /dev/shm
    >
    >
    >
    > > At this point I can't move any more files onto the partition. I have
    > > previously had much more data on this disk however I deleted this to
    > > see if that would help, but it didn't, so this doesn't seem to be a
    > > physical defect.
    >
    > if you haven't, run fsck. then man du, i suggest du -ak > /tmp/du.out.
    > this should tell you what is taking up space, you can sort the output
    > on size, too. good luck, --Loren
    >
    >
    > > Could someone please tell me what to do next. Thanks. Neil
    to expand including sorting. this also works great for indexing an FTP
    server.

    du -ah | sort -k 2d > /tmp/du.out

    ken k



    Ken Kauffman Guest

  3. #3

    Default Re: Disk unaccountably filled

    "lcoe" <lcoec1932201-a.attbi.com> wrote in message
    news:TQXMa.3964$Ix2.1168rwcrnsc54...
    > Neil Moore <neilcfconline.co.uk> wrote:
    > > I am working though the Linux From Scratch (4.1) tutorial without any
    > > problems until after I had changed the root to the new partition (at
    > > Part III) and mounted "proc" filesystem.
    >
    > > At this point the disk seems to have completely filled with files that
    > > I can't account for. The disk is 1 Gb approx. formatted as Ext2.
    > > Nautilus says the following about its contents - "16139 items,
    > > totalling 307.6 MB (some contents unreadable)" and the "df" command
    > > says:
    >
    > > Filesystem 1K-blocks Used Available Use% Mounted on
    > > /dev/hda3 2063536 1722632 236080 88% /
    > ^ ^^^
    > i read the size as 2gig for just hda3, am i missing something?
    Sorry, I meant that the *partition* is 1 Gig, that partition being
    /dev/hda5. Apologies.
    >
    > > /dev/hda2 101107 9324 86562 10% /boot
    > > /dev/hda5 1494204 1494204 0 100% /mnt/lfs
    > > none 127632 0 127632 0% /dev/shm
    >
    >
    >
    > > At this point I can't move any more files onto the partition. I have
    > > previously had much more data on this disk however I deleted this to
    > > see if that would help, but it didn't, so this doesn't seem to be a
    > > physical defect.
    >
    > if you haven't, run fsck. then man du, i suggest du -ak > /tmp/du.out.
    > this should tell you what is taking up space, you can sort the output
    > on size, too. good luck, --Loren
    >
    >
    > > Could someone please tell me what to do next. Thanks. Neil

    Neil Moore Guest

  4. #4

    Default Re: Disk unaccountably filled

    [email]neilcfconline.co.uk[/email] (Neil Moore) said:
    >I am working though the Linux From Scratch (4.1) tutorial without any
    >problems until after I had changed the root to the new partition (at
    >Part III) and mounted "proc" filesystem.
    >
    >At this point the disk seems to have completely filled with files that
    >I can't account for. The disk is 1 Gb approx. formatted as Ext2.
    Two possibilities. Either nautilus doesn't detect everything there,
    or then there's some process holding unlinked files open.
    >/dev/hda5 1494204 1494204 0 100% /mnt/lfs
    Do "du -sk /mnt/lfs". If even this comes up with a figure that is wildly
    different from what you see with "df", then it's the latter guess,
    a process keeping open handles to unlinked files.

    As for "du", someone else already wrote how to get sorted, categorised
    output from du, to narrow down the location of the space-consuming
    files, so I won't repeat that.

    Then to the latter. On Unix systems, if you "remove" a file that is still
    open somewhere (a binary or library for a process being executed; a conf
    file being kept open by a process; a text file open in an editor; ...),
    then the file will not be truly removed. It won't be accessible through
    the directory entry from that time on, but will still occupy all the disk
    space it did - so it's not yet really removed. The space will be freed
    only when the last process keeping that file open closes the file (either
    by exiting or just by calling close() on the file descriptor).
    --
    Wolf a.k.a. Juha Laiho Espoo, Finland
    (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++ L+++ E- W+$ N++ !K w !O !M V
    PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
    "...cancel my subscription to the resurrection!" (Jim Morrison)
    Juha Laiho Guest

  5. #5

    Default Re: Disk unaccountably filled

    Juha Laiho wrote:
    > [email]neilcfconline.co.uk[/email] (Neil Moore) said:
    >
    >>I am working though the Linux From Scratch (4.1) tutorial without any
    >>problems until after I had changed the root to the new partition (at
    >>Part III) and mounted "proc" filesystem.
    >>
    >>At this point the disk seems to have completely filled with files that
    >>I can't account for. The disk is 1 Gb approx. formatted as Ext2.
    >
    >
    > Two possibilities. Either nautilus doesn't detect everything there,
    > or then there's some process holding unlinked files open.
    >
    >
    >>/dev/hda5 1494204 1494204 0 100% /mnt/lfs
    >
    >
    > Do "du -sk /mnt/lfs". If even this comes up with a figure that is wildly
    > different from what you see with "df", then it's the latter guess,
    > a process keeping open handles to unlinked files.
    >
    > As for "du", someone else already wrote how to get sorted, categorised
    > output from du, to narrow down the location of the space-consuming
    > files, so I won't repeat that.
    >
    > Then to the latter. On Unix systems, if you "remove" a file that is still
    > open somewhere (a binary or library for a process being executed; a conf
    > file being kept open by a process; a text file open in an editor; ...),
    > then the file will not be truly removed. It won't be accessible through
    > the directory entry from that time on, but will still occupy all the disk
    > space it did - so it's not yet really removed. The space will be freed
    > only when the last process keeping that file open closes the file (either
    > by exiting or just by calling close() on the file descriptor).
    This may be a dumb sugestion but this has happened to me when a device
    file (e.g /dev/fd0) was writen to and /dev/fd0 was really a regular
    file.in that case whatever gets copied to it just makes /dev/fd0 huge .
    Just a thought (8^).

    roland Guest

  6. #6

    Default Re: Disk unaccountably filled

    lcoe <lcoec1932201-a.attbi.com> wrote in
    news:TQXMa.3964$Ix2.1168rwcrnsc54:
    > if you haven't, run fsck.
    How does one run fsck. I tried that once and got a serious warning about
    doing this on a mounted file system. If I wanted to fsck my linux drive,
    how does one do this?

    --
    ~Ohmster

    Ohmster Guest

Similar Threads

  1. I can't control what is filled
    By Steve_Carlisle@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 4
    Last Post: June 6th, 03:07 AM
  2. Replies: 0
    Last Post: July 4th, 08:06 AM
  3. Installing Oracle Software on Local Disk Vs Shared Disk
    By Hari Vetsa in forum Oracle Server
    Replies: 2
    Last Post: December 13th, 10:04 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139