Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

All my files, gone.

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
Kanibal



Joined: Fri Jan 18, 2013 9:51 pm
Posts: 4

PostPosted: Wed Jan 23, 2013 5:27 am    Post subject: All my files, gone. Reply with quote

I had been running 12.04 for a few days and it was awful, couldn't find my drives couldn't connect to the internet. Blah blah. So I pick up Linux Format and load the new 12.10 on to my desktop and even though I selected the option for it not to delete my files, it did. I'm a whole new user. I imagine I misinterpreted something, that's my fault. But is there a way to get my files back? ._.
_________________
I try but am so lost.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Wed Jan 23, 2013 8:38 am    Post subject: Reply with quote

Did you create a different user? If so, your files are probably still in the old user directory. Try this command to see how much in in the home directories.

Code:
sudo du -sch /home/*

_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Kanibal



Joined: Fri Jan 18, 2013 9:51 pm
Posts: 4

PostPosted: Thu Jan 24, 2013 5:08 am    Post subject: Reply with quote

nelz wrote:
Did you create a different user? If so, your files are probably still in the old user directory. Try this command to see how much in in the home directories.

Code:
sudo du -sch /home/*


Woah, ohkay that worked. Surprised So how do I access those files since on 12.10 it's saying I'm the only user.
_________________
I try but am so lost.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Thu Jan 24, 2013 9:09 am    Post subject: Reply with quote

It would have helped if you'd posted the output, but basisically you move the files you want from the old home directory tot he new one and then make then readable with

Code:
chown -R newusername: /home/newuser

_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Kanibal



Joined: Fri Jan 18, 2013 9:51 pm
Posts: 4

PostPosted: Thu Jan 24, 2013 9:36 pm    Post subject: Reply with quote

nelz wrote:
It would have helped if you'd posted the output, but basisically you move the files you want from the old home directory tot he new one and then make then readable with

Code:
chown -R newusername: /home/newuser

You're right. So this is what I get after entering my password.
Code:
11G   /home/erica
17G   /home/kaemen
27G   total

So "erica" is the old profile. I access those files with that code? Or I use a different code and use that one to make them readable?
_________________
I try but am so lost.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Fri Jan 25, 2013 9:46 am    Post subject: Reply with quote

Code:
sudo chown -R kaeman: /home/erica


will transfer the ownership of the files to you. Then you can use whichever file manager you prefer to move the ones you want into your home directory.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Kanibal



Joined: Fri Jan 18, 2013 9:51 pm
Posts: 4

PostPosted: Fri Jan 25, 2013 11:11 pm    Post subject: Reply with quote

After I enter my password I don't get any feedback just another prompt to enter a command. I figured it might have just done it anyways but I went through a separate file directory and still found nothing. I also entered my profile name correctly I didn't just copy and paste. (Not knocking the fact it was mispelled just letting you know that isn't the issue.)
_________________
I try but am so lost.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Sat Jan 26, 2013 8:00 am    Post subject: Reply with quote

you shouldn't get any output, most *nix commands only get verbose when things go wrong. The commands only changes the ownerships, they will still be in the old home directory but you can read and move them now.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast