File system corupted

Hello,

I have installed openSuse LXDE yesterday. When I have tried to copy my files from an external hard drive I have deletade the stock folders as I had already those on the hard drive (Documents, Photos etc) so the wouldnt double. Now I have huge problems.

After reboot all files in home/fw190 are shown on my desktop, PCManFM is showing that my desktop folder is in /home/fw190/de but after reboot it shows that it is in /home/fw190/s also in the window description it showed unaamed window.

How can I solve this mess? Is there a way to restore the originall file tree without loosing all the files?

I do not think the file stem is corrupted. That would mean that the internal structure of the file system wouldn’t be functionable anymore.

What you have done is putting files in the wrong place and/or deleting files that you need. And the applications you use (like your desktop environment) are now missing hose files and either report that, or create new ones and what all. But please do notblame the file system (whatever it is).

I assume you still have those backups (I guess that is the case, because who deletes his/her backups before it is proven for 1000% that the restore is OK).

Do nolt log in as the user. Use Ctrl-Alt-F1 to go to the real console. Log in as root (this is one of the very few exceptions where you are alowed to login as root). Then use the ncurces interface to YaST:

yast

Then remove that user not checking the “remove all files of that user” box (or how it is called). Then remove the home directory of that user. Then re-create the user with YaST. Now you should have the same situation as right after installation.
Log out. Use Ctrl-Alt-F7 to get to the GUI login and login as the new user. Your desktop will now create all sorts of default (confuuration) files as usual after a new created user.

Then you can try again to restore files to their correct place. Best is only to restore real user data (like documents, photographs, etc. in short those files you now what they are) and not al sorts of configuration files. Do not clear or remove directories like Documents, etc. there are already important things there. Only restore your own documents (you may of course restore them using the same directoryy tree you had them earlier).

On 07/26/2013 11:56 AM, Wurger wrote:
> When I have tried to copy my
> files from an external hard drive I have deletade the stock folders as I
> had already those on the hard drive (Documents, Photos etc) so the
> wouldnt double.

let me get clear:
both the external and internal drives had a “Documents, Photos etc”,
and you deleted those on the internal drive…(right?)

and, then did what? that is, how did you "copy my files from…)
did you do that at a command line with the cp command, or in a GUI
file manager (PCManFM? or?)

and, in either case did you copy the directory and its contents, or
only the directory contents? (it sounds like maybe you deleted
Documents on the internal and then copied the contents of the
Directory on the external directly into (what?) ~/Desktop or ??

and, what is the file system in use on the external drive (please say
it is a linux file system, and not ntfs or similar!! if it is not
linux (do NOT do the below, but say what is is)

as for (on the internal drive ) /home/fw190/de, did you create that
and the /home/fw190/s directory in LXDE? (i ask because i have
neither of those in my [default] LXDE install)

so, how to fix: since you just installed LXDE yesterday it would not
be such a problem to wipe it out and install new…THEN, do NOT
deleted anything on the new hard drive install, and instead copy the
contents of the external /Documents into the new and empty internal
/Documents…

NOTE: this assumes you still have the external drive with all good
files intact…

please THINK carefully, move more carefully and deliberately and
maybe wait for other (smarter) folks to chime in with their
idea…and whatever you do, read my sig caveat first.


dd
http://tinyurl.com/DD-Caveat
http://tinyurl.com/DD-Complaints

On 07/26/2013 12:56 PM, hcvv wrote:
> Then remove that user not checking the “remove all files of that user”
> box (or how it is called). Then remove the home directory of that user.
> Then re-create the user with YaST. Now you should have the same
> situation as right after installation.

this is a MUCH better way to recover a standard home…much better
than doing a full new install like i had thought of!!


dd

On 2013-07-26 13:06, dd wrote:
> On 07/26/2013 12:56 PM, hcvv wrote:
>> Then remove that user not checking the “remove all files of that user”
>> box (or how it is called). Then remove the home directory of that user.
>> Then re-create the user with YaST. Now you should have the same
>> situation as right after installation.
>
> this is a MUCH better way to recover a standard home…much better than
> doing a full new install like i had thought of!!

:slight_smile:

Another method is creating a new user, and copy those files across,
using ‘mc’ as the target user: if done as root, the files will be owned
by the second user.

By default, a user can read the files of another user (same group).


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

hcvv solution solved the problem - I had to only set up the browser and thunderbird settings again and now it works!

Thank you all for your help.

Congratulations. And enjoy openSUSE.