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.

[Help!] Rearranged an account and now all i have are symbolic links.

Discussion in 'General Discussion' started by sirandy84, Jan 31, 2011.

  1. sirandy84

    sirandy84 Registered

    Joined:
    Jan 31, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello gus! I have made a huge mistake and i would like to know if you have any ideea if there is something to be done in order to fix it...
    I have attached today a new HDD on the server and i have tried to move first my account (ASIB - is the name).So, i have used Rearrange function in WHM. The thing is that..i have interrupted it by mistake clicking back in web browser. So..i had 90% of ASIB on home and about 10% on /Home 2. I looked in home2 and i saw only few files that were no so important for me so i decided to delete entire folder and try to rearrange again without noticing that rearrange wants to move the account from home 2 (probably where he had a flag ) to home 1.
    the result looks like this :

    [root@magic home]# cd asib
    -bash: cd: asib: Too many levels of symbolic links

    [root@magic home2]# cd asib
    -bash: cd: asib: Too many levels of symbolic links

    and on home2, ll :
    lrwxrwxrwx 1 root root 10 Jan 31 10:30 asib -> /home/asib

    Thanks!
     
  2. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    It seems the symlink is causing issue. As you don't have data in /home2/asib you can unlink the symbolic link.

    If you have a symbolic link ATEST that pointed to BTEST as follows:

    ATEST -> BTEST

    Execute the below given step :

    rm -f ATEST

    That's it!
     
  3. sirandy84

    sirandy84 Registered

    Joined:
    Jan 31, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I can delete symbolic links..but they are pointing to nowhere..basically now is a loop between symbolic links.
    The original flies i cannot find. I think the only solution is a recovery system for Linux...but..i am not very familiar with none..
     
  4. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    This symbolic link exists. Right?

    lrwxrwxrwx 1 root root 10 Jan 31 10:30 asib -> /home/asib

    This is the one you need to unlink.
     
  5. sirandy84

    sirandy84 Registered

    Joined:
    Jan 31, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    The symbolic link exists in both locations :

    [root@magic home]#
    lrwxrwxrwx 1 root root 11 Jan 31 10:30 asib -> /home2/asib


    and

    [root@magic home2]# ll
    lrwxrwxrwx 1 root root 10 Jan 31 10:30 asib -> /home/asib

    home points to home2
    home 2 points to home..
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    So, you do not currently have any files on the system for the user at all? You are going to have to remove the symlinks and then restore the account if you have a cPanel backup using the force flag:

    Code:
    /scripts/restorepkg --force username
    You don't need to restore the entire system, simply restore the account using a backup you have of it. If you do not have a backup and have a provider who might make backups, see if they have one. Otherwise, the data is likely lost if it isn't the machine.
     
  7. sirandy84

    sirandy84 Registered

    Joined:
    Jan 31, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Yep..no backups..so..everything..lost!
     
  8. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Oh ! That's a very bad news! Good luck anyways!
     

Share This Page