Find the answer to your Linux question:
Results 1 to 6 of 6
Unfourtunate, I had a boot hard drive failure (I think a head crash, no bother) Being a relative noob, I though it fairly smart of me to have the all ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! lizardking's Avatar
    Join Date
    Aug 2006
    Location
    St-Lazare, Quebec
    Posts
    28

    Hard Drive Crash - but had /home on another!


    Unfourtunate, I had a boot hard drive failure (I think a head crash, no bother)

    Being a relative noob, I though it fairly smart of me to have the all the users /home on a seperate drive, thus I was anticipating no problems.

    I get another drive, re-install Mandriva 2006 onto it and get ready to mount /home.

    Here is the problem....How do I get the old user /home to be recognized by the new installation? I have lost the /etc/password file. I have tried to assign users the same name as before and copy the data over to the new drive partition but KDE will not start, (.DCOP and other issues, I think it may be UserID numbers) I've tried to just mount the /home partition, same KDE start problems.
    I've googled a little and most of the How-To stuff describes migration of the system, I trashed a system and have a new one installed and just want to use the existing /home files and ID's.

    Anyone willing to point me in the right direction?

    Thanx in advance!

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi lizardking !

    did you add entry for /home partition in /etc/fstab file?






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined! lizardking's Avatar
    Join Date
    Aug 2006
    Location
    St-Lazare, Quebec
    Posts
    28
    Howdy devils_casper!

    Thanks for the quick reply...Yes, The /etc/fstab (when updated) holds the /home at hdb1. But when this is true, all users (except root) cannot start kde. When booting failsafe, /home appears mounted correctly. If I 'undo' the /hdb1 mount, then only the users that I created during the second install can log-in and run kde.

    I've tried copying the data from /hdb1 onto the /home directory that was created with the second install (onto hda1) but this doesn't seem to work.....

    I know I could just copy the data files over and get everyone to reset passwords, but this would tend to be a very loose security set-up if I had say, 50 users.

    Any other thoughts?

    (edited because of my terible speling)

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    simply copying files wont work. you have to preserve permissions and symlinks.
    copy home folder of one user in new partition and check if it works.
    create a home folder of any user in new /home partition.
    cd to /home/<username> folder ( existing home folder )
    Code:
    find . -depth -print0 | cpio --null --sparse -pvd /<home_partition>/<user_home_folder>






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Just Joined! lizardking's Avatar
    Join Date
    Aug 2006
    Location
    St-Lazare, Quebec
    Posts
    28
    WooooHoooo!!!!!

    Thanks a whole bunch devils_casper!

    That worked perfectly, the family is very happy!

    Banana's for you!



    I am humbled by your answer and will strive to learn!

  7. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    i am glad i could help you. thanx for bananas !






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •