LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   recovering lost directory in Linux OS (https://www.linuxquestions.org/questions/linux-newbie-8/recovering-lost-directory-in-linux-os-4175470289/)

dinakarlinux 07-20-2013 04:52 AM

recovering lost directory in Linux OS
 
I have lost a root/ user directory.tried to change the username, but unfortunately my root/user directory
is missing.How to recover it?

DinoFly 07-20-2013 05:57 AM

You could use a search a bit here is a thread about your issue:

http://www.linuxquestions.org/questi...ectory-199677/

Regards

DinoFly 07-20-2013 06:06 AM

Alternatively you can simply create directory with
Code:

mkdir /root
Than recreate all the files, If you need templates of the shell files you can check them on "/etc/skel/".

If you can't log into your system, or can not start your system, than use live (cd/usb) or use recovery cd.

Hope you wont have issues, just follow the onscreen instructions. It is not that hard.

LanMant 07-21-2013 02:23 AM

and its not in your trash.

Have you checked in .trash in that partition

ls -la
is .trash listed and if so

cd .trash

ls -l


All times are GMT -5. The time now is 03:12 AM.