<---- template headericclude ----->
Accidentally remove my home directory
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2012
    Location
    hell
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Join Date
    Jun 2006
    Posts
    7,544
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  3. #3
    Join Date
    Jan 2006
    Posts
    2,810
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  4. #4
    Join Date
    Jun 2007
    Location
    Lytham St Annes, Lancashire, UK
    Posts
    687
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  5. #5
    Join Date
    Mar 2012
    Location
    hell
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Accidentally remove my home directory

    I reinstall Fedora instead :>

  6. #6
    stevea Guest

    Re: Accidentally remove my home directory

    Quote Originally Posted by mrfool
    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.

  7. #7
    Join Date
    Jul 2011
    Location
    Birmingham, UK
    Age
    41
    Posts
    2,759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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...

Similar Threads

  1. no directory /home/###! logging in with home=/
    By tzwen in forum Using Fedora
    Replies: 11
    Last Post: 4th April 2009, 01:08 PM
  2. Replies: 0
    Last Post: 15th October 2008, 08:30 PM
  3. Replies: 0
    Last Post: 15th November 2007, 06:55 AM
  4. fedora directory server with automounting home directory
    By balorg in forum Servers & Networking
    Replies: 2
    Last Post: 7th August 2006, 12:20 AM
  5. Replies: 6
    Last Post: 25th June 2004, 09:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]