At 11pm last night, way after I should have been in bed, in my only half-awake state, I did something really stupid.
I opened Virtual Box and tried to create a new virtual machine. This error message came up: "Directory for virtualbox-vms = /home/bimmer/dale. Cannot be accessed." I could not see any bimmer directory, only /home/dale. I created a directory /home/bimmer, then tried again. Got the same message. Did the command "del -m bimmer". Needless to say, there is no now directory under /home. Evidently, where I was seeing /home/dale, the system was seeing /home/bimmer/dale.
So.... Is there anyway to restore the dale directory and its contents?
TIA!
[SOLVED] Help! How to restore deleted home directory?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] Help! How to restore deleted home directory?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Help! How to restore deleted home directory?
You could copy these basic login/bash files:
then check them for username, etc. But that might not be enough for a desktop environment.
OR! Create a new user, then copy the files from there.
Code: Select all
$ ls -al /etc/skel
...
-rw-r--r-- 1 root root 220 Aug 31 2015 .bash_logout
-rw-r--r-- 1 root root 4000 May 17 2016 .bashrc
-rw-r--r-- 1 root root 655 Nov 21 2016 .profile
OR! Create a new user, then copy the files from there.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
Re: Help! How to restore deleted home directory?
Thanks Flemur for your quick reply!
After creating new user, it copied the /etc/skel/ files over to the new user but how do I find the files under my orig user name to restore them?
After creating new user, it copied the /etc/skel/ files over to the new user but how do I find the files under my orig user name to restore them?
Re: Help! How to restore deleted home directory?
What is your username for the system? I assume dale. If there is no directory /home/dale anymore, it has been deleted and likely you did it - half awakened - inside of the terminal. This means, that the deleted files are not in any trash bin and the only chance to get them back is either your backup or the try to restore them with testdisk - to be found in the repositories.
Re: Help! How to restore deleted home directory?
Asumming /home/dale was your home directory, there's no way just creating a /home/bimmer directory could move /home/dale to /home/bimmer/dale.
Re: Help! How to restore deleted home directory?
Thanks guys for your replies!
So, what I did was simply create a new user and password and at least, I have my desktop back and have used a fairly old 'Back in Time' backup on a thumb drive to restore some files I needed. One VALUABLE lesson for me here is, I MUST spend some time learning my way around the terminal much better than my current level. Not being what some might consider a 'geek', I'm simply a guy that got fed up with the MS OS several years ago and opted to go with the Linux OS. I've never looked back with any sort of pie in the sky longings to go back!
My goal now is to upgrade to LM 18 and then life will be 'wonderful' since I'm under the impression that it will play nicely with my iPhone
Dale
So, what I did was simply create a new user and password and at least, I have my desktop back and have used a fairly old 'Back in Time' backup on a thumb drive to restore some files I needed. One VALUABLE lesson for me here is, I MUST spend some time learning my way around the terminal much better than my current level. Not being what some might consider a 'geek', I'm simply a guy that got fed up with the MS OS several years ago and opted to go with the Linux OS. I've never looked back with any sort of pie in the sky longings to go back!
My goal now is to upgrade to LM 18 and then life will be 'wonderful' since I'm under the impression that it will play nicely with my iPhone
Dale
Re: Help! How to restore deleted home directory?
That's a good one, and what about 'I need to make backups more often'?dalexunil wrote: One VALUABLE lesson for me here is, I MUST spend some time learning my way around the terminal much better than my current level.
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Re: [SOLVED] Help! How to restore deleted home directory?
I think another lesson is---use the GUI to create and delete/trash directories.
Re: [SOLVED] Help! How to restore deleted home directory?
Could you expand your thoughts on this one? I do not understand what you are meaning.JerryF wrote:I think another lesson is---use the GUI to create and delete/trash directories.
Dale
Re: [SOLVED] Help! How to restore deleted home directory?
Instead of using the Terminal to run commands (such as del, in your case), use your file manager. With deleting, you can put it in Trash. That way, if you somehow delete the wrong directory, you can always retrieve it.