Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-20-2013, 05:52 AM   #1
LQ Newbie
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
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?
Old 07-20-2013, 06:57 AM   #2
Registered: Nov 2007
Distribution: Fedora, CentOS,
Posts: 72

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

Old 07-20-2013, 07:06 AM   #3
Registered: Nov 2007
Distribution: Fedora, CentOS,
Posts: 72

Rep: Reputation: Disabled
Alternatively you can simply create directory with
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.
Old 07-21-2013, 03:23 AM   #4
LQ Newbie
Registered: Sep 2012
Distribution: Xubuntu 13.04
Posts: 1

Rep: Reputation: Disabled
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering data from lost+found directory on ext3 fs kayasaman Linux - General 4 07-31-2009 02:55 PM
LXer: Recovering Lost Data On Linux Or Unix Using The Coroner's Toolkit (TCT) LXer Syndicated Linux News 0 05-19-2009 02:02 AM
Recovering lost files? Wocky Linux - Hardware 2 01-02-2007 02:45 PM
recovering lost data???? tnelson42345 Linux - Software 3 08-25-2006 12:27 PM
Recovering Lost Picture Data From NTFS Partition Using Linux YianniM Linux - Software 1 05-06-2006 03:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration