-1

the problem is that my user folder is missing my home/ directory is empty , i can't log in as the admin account, stuck in lightdm loop but only the guest user works but with no access to root .... even with the live cd can't see my user directory the only thing that indicate that all my folders still exist that the size of that partition is the same.. allways having the same used space that after the problem accure . what can i do ? thnx

  • i found it after digging inside the system it's located root/.local/share/Trash/files/ have any idea how that accured – zguell Jun 27 '14 at 0:56
0

go into recovery mode (go down to the advanced options in the grub menu) and select "drop to root console" or something to that effect. enter "mount -o rw,remount /" type "useradd username -m -s /bin/bash" with your username instead of username, then "passwd username" and enter the password you want. Finally, to make it admin, type "adduser username sudo" again using the username of the account instead of the word username.

| improve this answer | |
  • sorry but i don't need to add a user. my account still there it's just not reachable because the user directory is gone .. it's somewhere there but i can't find it – zguell Jun 26 '14 at 23:23
  • create another user with a different name, copy that user's home folder under the name of the old one, and you will at least be able to log in as the old user, but if you deleted the home folder for that user then you're out of luck – sbergeron Jun 26 '14 at 23:27
  • if it has been moved to the trash, then use a root terminal from recovery mode to go to /home/username/.local/share/Trash and check what, if anything, resides there. If it is your home folder, then just mv it from there to where it belongs – sbergeron Jun 26 '14 at 23:32
  • or just use in a root prompt cd /home/.username/ if you think it got hidden for some reason – sbergeron Jun 26 '14 at 23:32
  • no it's not hidden and for sure i didn't delete it and i can't access the /home/username/.local/share/Trash because i can't even access the username directory . thank you – zguell Jun 26 '14 at 23:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.