Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th March 2012, 03:24 AM
mrfool Offline
Registered User
 
Join Date: Mar 2012
Location: hell
Posts: 37
linuxfirefox
Accidentally remove my home directory [solved]

I accidentally remove my home directory /home/mr-fool using rm -fv /home/mr-fool
What should I do now since I can't even boot into my system? I try to copy the home directory in from my liveusb but I could not!

Last edited by mrfool; 17th March 2012 at 04:54 PM.
Reply With Quote
  #2  
Old 17th March 2012, 03:52 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfirefox
Re: Accidentally remove my home directory

Wait here a little while in case somebody has a better idea. But if you don't have a backup to restore from, I think I would re-install the whole thing. If valuable not-backed-up personal data was lost, I would lie down a while and wait for the blood flow to return to my brain, pick up the shattered remnants of my existence, and start that over, too. Sorry.

Maybe somebody else will have a better idea. If so, please say it now.
Reply With Quote
  #3  
Old 17th March 2012, 05:51 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
linuxfirefox
Re: Accidentally remove my home directory

I'd boot to the login screen, then hit CTRL-ALT-F2 (or F3 or F4) to get to a text terminal.

login as root

At this point you can create a new user manually.

useradd -c "<full name>" <username>
passwd <username>
reboot

Last edited by JEO; 17th March 2012 at 06:00 AM.
Reply With Quote
  #4  
Old 17th March 2012, 10:34 AM
SteveGYBE's Avatar
SteveGYBE Offline
Registered User
 
Join Date: Jun 2007
Location: Lytham St Annes, Lancashire, UK
Posts: 309
linuxfirefox
Re: Accidentally remove my home directory

Or if you don't want a new user name, try something like
Code:
usermod -m -d /home/mr-fool mr-fool
(If that's your real name!) to recreate a homedir with the default contents.
Reply With Quote
  #5  
Old 17th March 2012, 04:53 PM
mrfool Offline
Registered User
 
Join Date: Mar 2012
Location: hell
Posts: 37
windows_7firefox
Re: Accidentally remove my home directory

I reinstall Fedora instead :>
Reply With Quote
  #6  
Old 17th March 2012, 05:11 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346
linuxfirefox
Re: Accidentally remove my home directory

Quote:
Originally Posted by mrfool View Post
I reinstall Fedora instead :>
Why ? Do you junk your car when a headlight goes out too ?

Seriously - I agree most ppl don't want to spend a lot of time doing sysadm stuff, but this is fedora and you will need to be able to do the basics.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #7  
Old 17th March 2012, 05:59 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,847
linuxfirefox
Re: Accidentally remove my home directory

Well, you could have just copied the files from /etc/skel to where your home directory should be and chowned them appropriately, but it's too late now...
Reply With Quote
Reply

Tags
accidentally, directory, home, remove

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
no directory /home/###! logging in with home=/ tzwen Using Fedora 11 4th April 2009 01:08 PM
useradd used with no home directory still shows home dir in passwd file marko Using Fedora 0 15th October 2008 08:30 PM
How to restore data on /home/user accidentally removed satimis Linux Chat 0 15th November 2007 05:55 AM
fedora directory server with automounting home directory balorg Servers & Networking 2 7th August 2006 12:20 AM
Did I accidentally zap my bash config in home directory?! galland Using Fedora 6 25th June 2004 09:23 PM


Current GMT-time: 08:18 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat