Results 1 to 6 of 6

Thread: Mounted /var/www into wrong place, files vanished

  1. #1
    Join Date
    Sep 2013
    Beans
    4

    Unhappy Mounted /var/www into wrong place, files vanished

    I tried to mount --bind my /var/www/ to a dir into my /home/USER/www folder and I inverted the source and destination... Now I think that my /var/www/ is either pointing to nothing or everything is deleted and im about to cry HALP!!!!

    df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/simfs 524288000 389914816 134373184 75% /
    none 3145728 0 3145728 0% /run/shm
    /dev/simfs 524288000 389914816 134373184 75% /var/www
    /dev/simfs 524288000 389914816 134373184 75% /var/www
    /dev/simfs 524288000 389914816 134373184 75% /home/lithiume3/coding


    its on a VPS btw
    Last edited by sandyd; September 14th, 2013 at 08:46 PM. Reason: remove censor escaping from title

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Mounted /var/www into wrong place, files vanished

    Just umount the destination directory; the files should be still there.

  3. #3
    Join Date
    Sep 2013
    Beans
    4

    Re: Mounted /var/www into wrong place, files vanished

    I tried to umount

    dev/simfs 524288000 389914816 134373184 75% /home/lithiume3/coding

    and it's the same -___-

    Also sorry about the title

  4. #4
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Mounted /var/www into wrong place, files vanished

    How did you mount the directory? Can you post the exact command? Also please post the output of:
    Code:
    mount

  5. #5
    Join Date
    Sep 2013
    Beans
    4

    Re: Mounted /var/www into wrong place, files vanished

    I unmouted two more time the /var/www that was pointing to / and it fixed it :O thanks for the help

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Mounted /var/www into wrong place, files vanished

    You are welcome!

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
  •