I have just deleted all of my wife's files

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
cakehead
Level 2
Level 2
Posts: 83
Joined: Sat Dec 30, 2006 4:24 pm
Location: Aberdeen, Scotland

I have just deleted all of my wife's files

Post by cakehead » Sun Dec 06, 2015 8:46 am

I have just been trying to set up my wife as a user and I deleted all of her files by mistake. Can a home directory be recovered or am I in serious trouble when she gets home.

User avatar
cogier
Level 3
Level 3
Posts: 177
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: I have just deleted all of my wife's files

Post by cogier » Sun Dec 06, 2015 9:25 am

Are you sure you have deleted them. If you are now logged in as the wife you will not be able to see the same files as in your login. If you have deleted the files check your 'Trash' or 'Rubbish bin' to see if the missing files are there. If you can't see the 'Trash' or 'Rubbish bin' on your Desktop open 'Desktop' from the main menu and set it to 'On'. You can, hopefully, recover them from there. The actual folder for deleted files is ~/.local/share/Trash/files

User avatar
administrollaattori
Level 14
Level 14
Posts: 5306
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: I have just deleted all of my wife's files

Post by administrollaattori » Sun Dec 06, 2015 9:26 am

http://askubuntu.com/questions/33800/ho ... nd-folders
If you have deleted anything on your computer using Linux OS; don't panic because everything is there. You only need a way to get your data back. For this, follow these easy steps:

Install scalpel by running this command:
sudo apt-get install scalpel

Open the scalpel file and edit scalpel configuration by this command:
sudo gedit /etc/scalpel/scalpel.conf

In the file just uncomment some lines, the important one is this line:

Mount the hard disk by its name the default is sda1 if you did not change it; other wise replace sda1 by the actual name of your driver partition
sudo scalpel /dev/sda1 -o donatien_output_folder

And you are done with your deleted documents.

User avatar
administrollaattori
Level 14
Level 14
Posts: 5306
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: I have just deleted all of my wife's files

Post by administrollaattori » Sun Dec 06, 2015 9:33 am

Actually if using TestDisk, there is an option to copy whole folder if needed.
TestDisk Step By Step
testdisk.png
Last edited by administrollaattori on Sun Dec 06, 2015 9:50 am, edited 1 time in total.

Cosmo.
Level 23
Level 23
Posts: 17829
Joined: Sat Dec 06, 2014 7:34 am

Re: I have just deleted all of my wife's files

Post by Cosmo. » Sun Dec 06, 2015 9:34 am

"Don't panic" is definitely the first important advice, you should follow. Doing anything in panic can easily destroy the recoverable data forever.

Next it would be important to know, what you did exactly.
Did you delete them in the file manager? How exactly (context menu, del key)?
Did you delete them in the terminal?
Did you format a partition?
Did you overwrite them with other files?
Anything else?


User avatar
cakehead
Level 2
Level 2
Posts: 83
Joined: Sat Dec 30, 2006 4:24 pm
Location: Aberdeen, Scotland

Re: I have just deleted all of my wife's files

Post by cakehead » Sun Dec 06, 2015 9:56 am

I have two HDD's in my computer, one for OS and one for /Home. I created a user account for my wife realised I made a mistake in her name and deleted it. I then created another account and her /Home file was missing. I have logged out of her account but I have not closed down the computer.

Cosmo.
Level 23
Level 23
Posts: 17829
Joined: Sat Dec 06, 2014 7:34 am

Re: I have just deleted all of my wife's files

Post by Cosmo. » Sun Dec 06, 2015 10:11 am

At first: Do as little as possible with the computer. Any action could create a file on the places where the files are stored and overwrite them. In this case they would be lost for eternity.

Second: The test disk approach should be the most promising way to go.

User avatar
Pierre
Level 17
Level 17
Posts: 7404
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: I have just deleted all of my wife's files

Post by Pierre » Sun Dec 06, 2015 10:25 am

just to clarify a little:

you created a user account for your Wife - with a mistake in her user-name,
and then deleted that user-name,, - that would also delete it's associated /home folder.

but - did you copy anything into that /home folder, ( music, documents, photos )
from some other place, that is still not kept in that other place?.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

User avatar
Flemur
Level 16
Level 16
Posts: 6105
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: I have just deleted all of my wife's files

Post by Flemur » Sun Dec 06, 2015 11:21 am

I created a user account for my wife realised I made a mistake in her name and deleted it. I then created another account and her /Home file was missing. I have logged out of her account but I have not closed down the computer.
So which files got deleted, and how did they get into the deleted and/or missing /home/herusername directory?
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
cakehead
Level 2
Level 2
Posts: 83
Joined: Sat Dec 30, 2006 4:24 pm
Location: Aberdeen, Scotland

Re: I have just deleted all of my wife's files

Post by cakehead » Sun Dec 06, 2015 12:42 pm

OK so I have my /Home folder on a separate 500Gb hard drive. I set up Mint on a 60Gb SSD. I created a user for my wife and her /home folder would not mount as I made a mistake in her user name. So I deleted the account and created another one, only the original /Home folder had been deleted with all of her photo's and stuff.

User avatar
gold_finger
Level 9
Level 9
Posts: 2886
Joined: Mon Mar 11, 2013 11:39 pm

Re: I have just deleted all of my wife's files

Post by gold_finger » Sun Dec 06, 2015 9:34 pm

@cakehead,

You need to give specifics of the situation and how you got there before anyone can give you a reasonable answer.

From what you've stated so far, this is the impression we get:
  • You've got Mint on a computer you use
  • You decided to add a username so your wife could also use Mint
  • You made a mistake in the username, so deleted it and made correct new one
  • Somehow this magically resulted in losing all of her data files, which makes no sense because a newly set-up user will have nothing but a home with empty standard directories: Documents, Downloads, Music, etc.
So, how did her data files get on to the new home you made that then got deleted? You had to have copied them to it from somewhere. (Don't you still have the originals?) Or, was she already using Mint (or another Linux distro) on that computer and had a home already which you then tried moving to the new username you made? Are you talking about files on her MS Windows home?

What process did you follow to add her as a new user?

Is Mint the only OS on computer, or are you dual booting with others (eg. Windows)?
Please add [SOLVED] to your thread if a solution is found. Go to your first post in the thread, hit "Edit" button and add [SOLVED] to the title of the post.

How To Format Your Forum Posts.

Try Linux Beginner Search Engine for Linux questions.

Neil Edmond
Level 5
Level 5
Posts: 885
Joined: Thu Dec 26, 2013 10:19 am
Location: N.E. AR USA

Re: I have just deleted all of my wife's files

Post by Neil Edmond » Sun Dec 06, 2015 9:53 pm

cakehead wrote:OK so I have my /Home folder on a separate 500Gb hard drive.
So was "her" /Home folder on this same 500GB hard drive as well?

User avatar
austin.texas
Level 20
Level 20
Posts: 12052
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: I have just deleted all of my wife's files

Post by austin.texas » Mon Dec 07, 2015 9:23 am

cakehead wrote:OK so I have my /Home folder on a separate 500Gb hard drive. I set up Mint on a 60Gb SSD. I created a user for my wife and her /home folder would not mount as I made a mistake in her user name. So I deleted the account and created another one, only the original /Home folder had been deleted with all of her photo's and stuff.
Neil Edmond wrote:
cakehead wrote:OK so I have my /Home folder on a separate 500Gb hard drive.
So was "her" /Home folder on this same 500GB hard drive as well?
Good question. The only way her files could have been deleted is if her /home (and files) was on the 60Gb SSD.

It appears that you re-installed Mint (?) to the 60Gb SSD. She was a user previously with the former Mint (?). So, was her stuff on the / partition that was overwritten when you "set up Mint on a 60Gb SSD" ?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Post Reply

Return to “Newbie Questions”