The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mount problem

Discussion in 'General Discussion' started by domenetorget, Jun 7, 2005.

  1. domenetorget

    domenetorget Active Member

    Joined:
    Sep 26, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hokksund, Norway
    After a system-crash, my server is restored. Old hard drive is now hdc

    To restore accounts etc. from the old harddrive, I made a new folder: /old
    then:
    mount /dev/hdc3 /old

    then cd /old
    ls

    This is the message I get:
    /bin/ls: : No such file or directory


    The df -h command returns:

    /dev/hda3 72G 3.0G 65G 5% /
    /dev/hda1 99M 15M 80M 16% /boot
    none 501M 0 501M 0% /dev/shm
    /dev/hdb1 74G 6.6G 64G 10% /home3
    /dev/hdc3 72G 50G 19G 73% /old


    ...but where are the files??

    I really need help!
     
  2. Grooby

    Grooby Active Member

    Joined:
    May 26, 2005
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Doh!

    This is shell output corresponding to - YOU DONT HAVE /BIN/LS command :>

    try to use :

    whereis ls

    this will show you path to ls command

    or

    find / -name "ls"

    this should find your missing command :>

    after locate this file use ln command to link it to /bin/
    or just copy it to /bin/ dir ;)

    should help i think

    Adam
     
  3. Kerstin

    Kerstin Well-Known Member

    Joined:
    Apr 9, 2005
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Berlin
    You setting a other root password after restoring ;) and
    the permission the the old file directory was denieded. :mad:
     
  4. domenetorget

    domenetorget Active Member

    Joined:
    Sep 26, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hokksund, Norway
    The ls command works in every other directories.

    This is not the problem :(
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Looks like the disk is mounted with the wrong filesystem. What do you get with:

    fdisk -ul /dev/hdc
     
  6. domenetorget

    domenetorget Active Member

    Joined:
    Sep 26, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hokksund, Norway
    Nope. :(
    Changed rootpassword to old rootpassword.

    ls shows nothing
     
  7. domenetorget

    domenetorget Active Member

    Joined:
    Sep 26, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hokksund, Norway
    Disk /dev/hdc: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
    Units = sectors of 1 * 512 = 512 bytes

    Device Boot Start End Blocks Id System
    /dev/hdc1 * 63 208844 104391 83 Linux
    /dev/hdc2 208845 4305419 2048287+ 82 Linux swap
    /dev/hdc3 4305420 156248189 75971385 83 Linux
     
  8. Kerstin

    Kerstin Well-Known Member

    Joined:
    Apr 9, 2005
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Berlin
    I think so chirpy,

    domenetorgets partition is only viewable as a linux native ;) .

    Some errors had destroyed the file structure after remounting the drive
    in the restored system.
     
Loading...

Share This Page