Results 1 to 8 of 8

Thread: Recreating home partition/directory

  1. #1
    Join Date
    Apr 2006
    Beans
    59

    Recreating home partition/directory

    I am using ubuntu 12.04 on thinkpad t43 .
    I had installed ubuntu replacing the original xp.
    I needed to reinstall windows xpsp3 and i did that and in the processes deleted the home partition.
    I have made the system dual using grub4dos.
    Logging as root into ubuntu I modified the /etc/fstab making appropriate modifications.
    I created a home directory (it is blank- unfortunately ubuntu /etc/skel directory does not contain the ome direectory contents)
    Now my problem is that I cannot login into the graphical mode (level 5)
    I created a new user but nothing happened the user also cannot login into the graphical mode
    Any solutions?
    (Note my pc ram cannot go beyond 2GB and it is a p4 . So i dont wont to use virtual box for ubuntu. Similarly I am not for Xp into virtual box because I would need a new license then)

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Recreating home partition/directory

    Lets see details. Normally I thought if /home did not mount, it just created a new default.

    Post the link to the BootInfo report that this creates. Is part of Boot-Repair:
    https://help.ubuntu.com/community/Boot-Info
    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    https://help.ubuntu.com/community/Boot-Repair
    You can repair many boot issues with this or 'Create BootInfo' report (Other Options) & post the link it creates, so we can see your exact configuration and diagnose advanced problems.
    LighterWeight (Lubuntu based) Boot-RepairCD
    http://sourceforge.net/projects/boot-repair-cd/files/
    Install in Ubuntu liveCD or USB or Full RepairCD with Boot-Repair (for newer computers)
    https://help.ubuntu.com/community/LinuxSecureRemix

    Update If you want to move data to /home.
    To move /home uses rsync- Be sure to use parameters to preserve ownership & permissions
    https://help.ubuntu.com/community/Pa...ng/Home/Moving
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  3. #3
    Join Date
    Apr 2006
    Beans
    59

    Re: Recreating home partition/directory

    Thanks.
    The partition is gone and over written.
    I have made changes to /etc/fstab and able to safely boot to level 3 but not to level 5 graphical mode
    Now I have created the users home directory using mkdir -p /home/username
    But the contents / configurations inside this are needed
    Standard is that one should copy from /etc/skel. But in that there is nothing.
    Now the users cannot boot to graphical mode.
    Somefiles such as .dkim etc are needed.
    creating user with useradd did not help
    My specific requirement is to be ale to boot to level 5 graphical boot. I need to do everything for that
    Kindly advise
    Last edited by chinna saaeb; May 18th, 2013 at 06:25 PM.

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Recreating home partition/directory

    I do not know where default /home settings come from.
    My /etc/skel only has one Desktop entry and that is examples. And that is the same in several older versions also.

    Does not rebooting create settings?
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  5. #5
    Join Date
    Apr 2006
    Beans
    59

    Re: Recreating home partition/directory

    No, rebooting does not create it.

  6. #6
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Recreating home partition/directory

    Are you booting as a user not root? So UID is 1000 which should be the first user.

    https://help.ubuntu.com/community/HomeFolder
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  7. #7
    Join Date
    Apr 2006
    Beans
    59

    Re: Recreating home partition/directory

    Thanks
    Logging in as a user not as a root.
    The given link has only general notes.
    Knowing what happens when a user is created - what ubuntu does at the underlying layer will provide me a solution
    In Redhat / fedora the contents of /ect/skel are copied into the newly created users home. But here what happens we don't know

  8. #8
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Recreating home partition/directory

    Quote Originally Posted by chinna saaeb View Post
    Thanks
    Logging in as a user not as a root.
    The given link has only general notes.
    Knowing what happens when a user is created - what ubuntu does at the underlying layer will provide me a solution
    In Redhat / fedora the contents of /ect/skel are copied into the newly created users home. But here what happens we don't know
    The same happens in Ubuntu too. In my skel directory there are 3 hidden (dot) files: .bash_logout .bashrc and .profile. Non of this files are needed for a GUI login.


    Did you chown the home directory of the user?

    useradd is low level utility for adding users. Try to create the user with the adduser command which, by default, will create the home directory with skeletal configurations.

    And what do you mean by you cannot login into the GUI. Does the display manager start? Do you get any error messages during the boot?

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
  •