Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: No such file or directory

  1. #1
    Join Date
    Jan 2011
    Beans
    16

    No such file or directory

    Hey all. Racking my brain trying to figure this out. Hoping for some help.

    So, I've got a Ubuntu 10.04 Server edition installed as a VMWare ESXi VM. It's been working great for about 6 months. This morning, after not making any changes, I started seeing some errors. First problem was that my website (managed by apache2) was offline. SSH/ftp didn't work either. So I go through the console through vSphere. Tried a quick ifconfig, and I got this:
    Code:
    bash: /sbin/ifconfig: No such file or directory
    mmk. Tried ls /sbin/ifconfig, got this:
    Code:
    bash: /bin/ls: No such file or directory
    dir /sbin/ifconfig DOES work. PS also returns the 'no such file or directory' error.

    Tried to ping 8.8.8.8:
    Code:
    connect: Network is unreachable
    My $PATH appears correct. I have rebooted as well as doing a complete shutdown/power up. No, I don't have a snapshot from last night (or anytime that recent) that I can revert to. I have tried running these commands as root and another sudo user.

    Commands known to work: dir, vi, dmesg, rmdir, mkdir, ifup (but it then returns ifconfig not found), shutdown, reboot, fsck (but I chose no to prevent damage)
    Commands known NOT to work: ifconfig, ps, ls

    Anyone have any ideas? I'll be monitoring this thread pretty close for a few hours so I can provide any answers and try anything recommended pretty quickly.

  2. #2
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: No such file or directory

    something wired has happen to your server. do a

    updated

    &

    locate ifconfig

    what does it say

  3. #3
    Join Date
    Jan 2011
    Beans
    16

    Re: No such file or directory

    Updated is not a valid command?

    locate ifconfig returns several locations, including /sbin/ifconfig, /usr/lib/libsh/.backup/ifconfig, and then 4 .gz files.

  4. #4
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,918
    Distro
    Ubuntu Development Release

    Re: No such file or directory

    Hi

    It should be

    Code:
    sudo updatedb
    locate ifconfig
    You can also use

    Code:
    which ifconfig
    Check your paths

    Code:
    echo $PATH
    Kind regards
    Last edited by matt_symes; January 10th, 2011 at 03:58 PM.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

  5. #5
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,918
    Distro
    Ubuntu Development Release

    Re: No such file or directory

    duplicate post
    Last edited by matt_symes; January 10th, 2011 at 03:55 PM.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

  6. #6
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,918
    Distro
    Ubuntu Development Release

    Re: No such file or directory

    duplicate post
    Last edited by matt_symes; January 10th, 2011 at 03:56 PM.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

  7. #7
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: No such file or directory

    Quote Originally Posted by ajcis55 View Post
    Updated is not a valid command?

    locate ifconfig returns several locations, including /sbin/ifconfig, /usr/lib/libsh/.backup/ifconfig, and then 4 .gz files.


    oh its updatedb than rerun locate ifconfig

    your results shows that ifconfig is present in /sbin/


    try again after updatedb

  8. #8
    Join Date
    Jan 2011
    Beans
    16

    Re: No such file or directory

    updatedb appeared to run correctly, without any notifications.

    Ran locate ifconfig again and had the same result. which ifconfig also return /sbin/ifconfig.

    Note that I am currently running commands as root (using sudo su).

  9. #9
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: No such file or directory

    Quote Originally Posted by ajcis55 View Post
    updatedb appeared to run correctly, without any notifications.

    Ran locate ifconfig again and had the same result. which ifconfig also return /sbin/ifconfig.

    Note that I am currently running commands as root (using sudo su).
    lets reset the permission

    Code:
    chmod 777 /sbin/ifconfig
    than run it

    Code:
    /sbin/ifconfig

  10. #10
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: No such file or directory

    Quote Originally Posted by ajcis55 View Post
    updatedb appeared to run correctly, without any notifications.

    Ran locate ifconfig again and had the same result. which ifconfig also return /sbin/ifconfig.

    Note that I am currently running commands as root (using sudo su).
    lets reset the permission

    Code:
    chmod 777 /sbin/ifconfig
    than run it

    Code:
    /sbin/ifconfig

Page 1 of 4 123 ... LastLast

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
  •