LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-20-2013, 05:52 AM   #1
dinakarlinux
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
DinoFly
Member
 
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:

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

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

Rep: Reputation: Disabled
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.
 
Old 07-21-2013, 03:23 AM   #4
LanMant
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
 
  


Reply


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


All times are GMT -5. The time now is 12:53 PM.

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