Results 1 to 4 of 4

Thread: Accidentally foobarred my Ubuntu Precise /home with a Fuduntu install - reinstall?

  1. #1
    Join Date
    Apr 2011
    Location
    Cinnamon land
    Beans
    363
    Distro
    Ubuntu 14.04 Trusty Tahr

    Thumbs down Accidentally foobarred my Ubuntu Precise /home with a Fuduntu install - reinstall?

    Hi
    Just installed fuduntu (2012.4) to a partition of my computer alongside Ubuntu. I think I committed a fatal error however by telling fuduntu to use the same /home folder as Ubuntu (which has separate /home and / partitions). After my first Fuduntu update (it's a rolling release which takes application and kernel updates as they come) I restarted in Ubuntu 12.04.1 LTS, filled in username/password, but could not log in.
    LightDM simply returned me to the login screen. I suppose fuduntu must have modified some config files...

    How can I revert them and manage to login properly again? Would reinstalling make Ubuntu wipe the config files to make them to its own liking again?

    Thanks
    Ubuntu Manual - Good Tutorials
    Webupd8 - Cinnamon! - Synapse
    Some just want to watch the world LEARN


  2. #2
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Accidentally foobarred my Ubuntu Precise /home with a Fuduntu install - reinstall

    Did you use the same username when you installed fuduntu as you have in ubuntu? If it was not different it is possible that fuduntu may have changed permissions of all the files in /home.

    However it may be worth starting ubuntu in recovery mode, assuming you can, then mounting the ubuntu partitions as read/write instead of read only with
    Code:
    mount -o rw,remount /
    though as it is the /home partition, not root that is at fault, you may not even need that command.

    You can then try changing ownership of the /home partition back to your ubuntu username with
    Code:
    chown -R username:username /home/username
    and also permissions to the ubuntu default with
    Code:
    chmod -R 755 /home.#/username
    It is also worth looking for the UID of the fuduntu user to see if that is different from the ubuntu UID of 1000 for the first user, though I am not sure if or how you can change that back; perhaps the chown and chmod commands will do it for you.

    This is, indeed a salutary lesson not to try and share the same user in a /home partition; use the same partition by all means, but make sure you have a different username and therefore home folder within /home for each OS
    DISTRO: Xubuntu 14.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  3. #3
    Join Date
    Apr 2011
    Location
    Cinnamon land
    Beans
    363
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Accidentally foobarred my Ubuntu Precise /home with a Fuduntu install - reinstall

    Quote Originally Posted by ajgreeny View Post
    Did you use the same username when you installed fuduntu as you have in ubuntu? If it was not different it is possible that fuduntu may have changed permissions of all the files in /home.
    Yes I did...

    Quote Originally Posted by ajgreeny View Post
    However it may be worth starting ubuntu in recovery mode, assuming you can, then mounting the ubuntu partitions as read/write instead of read only with
    Code:
    mount -o rw,remount /
    though as it is the /home partition, not root that is at fault, you may not even need that command.

    You can then try changing ownership of the /home partition back to your ubuntu username with
    Code:
    chown -R username:username /home/username
    and also permissions to the ubuntu default with
    Code:
    chmod -R 755 /home.#/username
    It is also worth looking for the UID of the fuduntu user to see if that is different from the ubuntu UID of 1000 for the first user, though I am not sure if or how you can change that back; perhaps the chown and chmod commands will do it for you.

    This is, indeed a salutary lesson not to try and share the same user in a /home partition; use the same partition by all means, but make sure you have a different username and therefore home folder within /home for each OS
    I'll have a quick go at that. I could login to a tty on my Ubuntu, but no X, so I can run commands.
    The 'id' command says the UID is 500 on fuduntu.

    I found this help page http://www.cyberciti.biz/faq/howto-c...-user-name-id/ so would the command
    Code:
    usermod -u 1000 nad
    be correct? And can I run that from inside fuduntu without making a horrible mess, thus having the same UID on Fuduntu and Ubuntu?
    Last edited by blackbird34; November 14th, 2012 at 12:22 AM. Reason: clarity
    Ubuntu Manual - Good Tutorials
    Webupd8 - Cinnamon! - Synapse
    Some just want to watch the world LEARN


  4. #4
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Accidentally foobarred my Ubuntu Precise /home with a Fuduntu install - reinstall

    Sorry, but I am as lost as you when it comes to the safety of changing the UID in either Ubuntu or Fuduntu, the latter of which I have heard of but never looked at or used.

    If Ubuntu is you main OS, try changing the user UID in fuduntu to 1000 the same as Ubuntu to see if that helps.

    Here, I shall have to leave this to others as I am now out of my depth.

    Good Luck.
    DISTRO: Xubuntu 14.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

Tags for this Thread

Bookmarks

Posting Permissions

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