Find the answer to your Linux question:
Results 1 to 4 of 4
Hey , this should be an easy question. I have Red Hat 5 runnin on VMWare. I gave the VMware 50GB of space and I can see that it is ...
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    4

    Where are files stored

    Hey , this should be an easy question. I have Red Hat 5 runnin on VMWare. I gave the VMware 50GB of space and I can see that it is there. . .


    [root localhost ~] df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 3.8G 2.3G 1.4G 62% /
    /dev/sda3 40G 177M 38G 1% /home
    /dev/sda1 46M 11M 33M 25% /boot
    tmpfs 2.0G 0 2.0G 0% /dev/shm
    /dev/hdc 48M 48M 0 100% /media/RHEL_5.6 i386 DVD




    ... The problem I have is when i add stuff to the /home directroy the / directory fills up. this mean I can only add 2.3G of files to my system. Why does this happen and how can I use the 40G that is part of sda3's /home directroy.


    CHeers

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Hmm....

    If you're copying data and / is growing (while /home is not), then the data isn't going into /home.

    Code:
    cd /home
    df -ah
    dd if=/dev/zero bs=1M count=1000 of=1GB.file
    df -ah
    Did /home grow by 1GB?

  3. #3
    Just Joined!
    Join Date
    Apr 2011
    Posts
    4
    I was able to add a 1GB file to home using your command but I still have the same problem. . . maybe it is how I am copying them over. As this is a VM ware I am just dragging and dropping to from my windwos box to the /home folder. Should i copy them to / or root first and then using command line cp them to the Home directory?


    ....I also have a new problem. When i tested again just now I moved the files to the /home dir and then say that / was filling up. I then deleted them from the folder and cleaned out my recycle bin but i still show that my "/" is full. How can i get Reh hat check for free space, have already did a restart...


    Code:
    [root@localhost ~]
    # df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda2             3.8G  3.8G     0 100% //dev/sda3              40G  177M   38G   1% /home
    /dev/sda1              46M   11M   33M  25% /boot
    tmpfs                 2.0G     0  2.0G   0% /dev/shm
    /dev/hdc               48M   48M     0 100% /media/New
    [root@localhost ~]#

    looking at the properties of the "home" folder i see that its location is "/" and its Volume is /home.




    *Thanks for this help BTW

  4. #4
    Just Joined!
    Join Date
    Apr 2011
    Posts
    4
    Ok, found out what was going on here. When you copy files from VWware it stores them in the /tmp directory. It must them leave a shortcut to them in the folder you pick and that is what i was seeing.

    I copies the files from /tmp (which is part of "/") to home and now all is good.



    Cheers for the help anyway.

Posting Permissions

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