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!
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.
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.
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.
Or if you don't want a new user name, try something like(If that's your real name!) to recreate a homedir with the default contents.Code:usermod -m -d /home/mr-fool mr-fool
I reinstall Fedora instead :>
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...