Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: New install and updated /etc/fstab rejects password

  1. #1
    Join Date
    Oct 2007
    Beans
    66

    New install and updated /etc/fstab rejects password

    After cloning my / and /home to a new hard drive, I updated the /etc/fstab UUIDs and installed the drive. Now I can't log in. The login page rejects my password. I even dropped to root in recovery mode and changed the passwords from there.

    Any help?

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: New install and updated /etc/fstab rejects password

    Hmm, if you correctly replaced the UUIDs that should be it. I would double check it again.

    Also, when you say "clone" I wonder what process did you use exactly. Something like copying a partition with Gparted, or simply copying the files with cp or rsync. I would do the latter, I don't really like copying partitions in Gparted yet there seems to be many tutorials using that.

    I think the UUID stays the same in that case. So, you might have double UUIDs on the system.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Oct 2007
    Beans
    66

    Re: New install and updated /etc/fstab rejects password

    Alright... I used Clonezilla. Is /etc/fstab the only place I need to change things?

  4. #4
    Join Date
    Apr 2012
    Beans
    5,411

    Re: New install and updated /etc/fstab rejects password

    can you login via a virtual terminal (ctrl-alt-F1 etc.) or ssh session?

    that will narrow it down to a true auth issue versus a X session startup issue

  5. #5
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: New install and updated /etc/fstab rejects password

    Boot the machine into live session, and in terminal check the UUIDs with:
    sudo blkid

    Then mount the root partition and check the content of /etc/fstab.

    EDIT PS: On another note, I don't know how clonezilla clones the partition exactly, personally I wouldn't used it. With linux it's very easy to copy the files, you don't need tools like clonezilla which have limitations especially if restoring on hdd of different size.

    In your place, I would check the partitions too with like:
    sudo parted -l

    If you still have the old disk I would consider doing it differently again. It will probably be faster than sorting this out. Is this a laptop or you can connect both disks at the same time?
    Last edited by darkod; February 2nd, 2013 at 08:17 PM. Reason: Deleted wrong remark about clonezilla, it does not clone free sectors
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  6. #6
    Join Date
    Oct 2007
    Beans
    66

    Re: New install and updated /etc/fstab rejects password

    I can log in successfully in a virtual terminal!

    I can connect externally to my original drive. I initially used fsarchiver but didn't think to update UUIDs so it couldn't mount /home.

    What are my options?

  7. #7
    Join Date
    Apr 2012
    Beans
    5,411

    Re: New install and updated /etc/fstab rejects password

    Quote Originally Posted by qianian View Post
    I can log in successfully in a virtual terminal!
    so maybe permissions on your home dir got screwed up? that would prevent your GUI session from starting

    Code:
    ls -ld ~
    ls -l ~/.{ICE,X}authority

  8. #8
    Join Date
    Oct 2007
    Beans
    66

    Re: New install and updated /etc/fstab rejects password

    Strange, I had used cp -ax for the /home contents (under a separate partition)

    $ls -ld ~
    drwxr-xr-x 3 1000 user 4096 Feb 1 07:29 /home/user
    $ls -l ~/.{ICE,X}authority
    ls : Cannot access /home/user/.ICEauthority: No such file or directory
    ls : Cannot access /home/user/.Xauthority: No such file or directory

    Same result with sudo ls. Should I re-copy /home contents using something else?

  9. #9
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: New install and updated /etc/fstab rejects password

    I recently moved from hdd to ssd and used cp -ax to copy my /home partition. It worked perfectly.

    Since you have the old disk at hand, I suggest to:
    1. Format the root partition on the new disk.
    2. Use cp -ax to copy the root partition too.
    3. Edit the /etc/fstab to change the root and /home UUID.
    4. Chroot into the new install and run update-grub (to capture the new UUID).

    That should be it I guess. You might need to also reinstall grub2 on the MBR but that's easy.

    The cp -ax is sufficient from my experience. You have another issue. It might be much faster redoing everything, including copying /home again if you used clonezilla for it too.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  10. #10
    Join Date
    Oct 2007
    Beans
    66

    Re: New install and updated /etc/fstab rejects password

    Done but now the new drive doesn't boot at all. After the select which version (normal, repair) to boot it goes to black screen and says what looks like an old UUID does not exist. What am I doing wrong?

    % blkid
    /dev/loop0: TYPE="squashfs"
    /dev/sda1: LABEL="/" UUID="a2720060-831e-4003-ad00-b448a945c9f2" TYPE="ext4"
    /dev/sda5: LABEL="home" UUID="18eecef8-913b-4019-abce-3e06f69b10df" TYPE="ext4"
    /dev/sda6: UUID="af6172b2-c4a3-443b-8a40-b21fb3cb6a97" TYPE="swap"
    /dev/sr0: LABEL="sysrcd-3.0.0" TYPE="iso9660"

    /etc/fstab:

    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc nodev,noexec,nosuid 0 0
    # / was on /dev/sda1 during installation
    UUID=a2720060-831e-4003-ad00-b448a945c9f2 / ext4 errors=remount-ro 0 1
    # /home was on /dev/sda5 during installation
    UUID=18eecef8-913b-4019-abce-3e06f69b10df /home ext4 defaults 0 2
    # swap was on /dev/sda6 during installation
    UUID=af6172b2-c4a3-443b-8a40-b21fb3cb6a97 none swap sw 0 0

Page 1 of 3 123 LastLast

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
  •