Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

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

  1. #11
    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

    Did you do the chroot and update-grub? On another thread few weeks ago I noticed it gets stuck on the new vs old UUID when copying the root partition too (I copied only /home in my case). The grub.cfg and the grub2 on the MBR might point to the old UUID.

    I would do a chroot and even reinstalling grub2 to the MBR so that it "gets" the new partitions correctly:
    Code:
    sudo mount /dev/sda1 /mnt
    sudo chroot /mnt
    update-grub
    grub-install /dev/sda
    exit
    sudo umount /mnt
    This is a short chroot version, not sure if you need the longer one just for update-grub. In case it complains about something, like missing /dev, try inserting these lines between the first mount and the chroot command:
    Code:
    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys /mnt/sys
    That is what needs mounting and binding for full chroot and it has to work.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  2. #12
    Join Date
    Oct 2007
    Beans
    66

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

    I couldn't boot into the new install so I had done update-grub from the original drive.

    Now from live disk with the target drive, I get:

    % chroot
    % mount /dev/sda1 /mnt
    % chroot /mnt
    chroot: failed to run command `/bin/zsh': No such file or directory

    Should I try this from the original drive?

    EDIT: okay, I did it from the original drive. The only part that didn't look right was umount at the end, /mnt: device is busy.
    Last edited by qianian; February 3rd, 2013 at 01:42 AM.

  3. #13
    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

    Hold on, what is that chroot command first? And don't run update-grub before you are "inside" the chroot successfully. It doesn't work in the live session, and it's pointless to run it from the original disk too. You want the new disk working.

    Boot the machine with the ubuntu cd in live session, open terminal and execute one by one to enter the chroot into sda1 which is your root partition on the new disk I believe (note, before you start running this all should be unmounted, if either mounting of sda1 was done, unmount or use that mount point instead of /mnt):
    Code:
    sudo mount /dev/sda1 /mnt
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /sys /mnt/sys
    sudo chroot /mnt
    update-grub
    grub-install /dev/sda
    exit
    sudo umount /mnt/sys
    sudo umount /mnt/dev
    sudo umount /mnt/proc
    sudo umount /mnt
    That is the full list, run it one by one and carefully with the spelling.
    Also, the cd you use doesn't need to be the exact same version of ubuntu but it does need to be the same architecture. If the installed OS is 64bit, the cd has to be of 64bit version.
    The error you mention in your last post when trying chroot I think happens if you try to use different architecture.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  4. #14
    Join Date
    Oct 2007
    Beans
    66

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

    Okay, I see what you mean about being in chroot now.

    I ran it again from live CD and properly unmounted everything, then reboot. I now get the login screen, which goes black with "Checking battery state", then returns to the login screen.

  5. #15
    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

    OK, so it has nothing to do with grub now. When it returns to the login screen, can you log in or not?

    I have seen that message about batery state mentioned, but don't know exactly when it shows. If you search the forum or google it should turn up some threads.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  6. #16
    Join Date
    Oct 2007
    Beans
    66

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

    Bummer! No, it repeats it every time I enter my password.

    This is one suggestion I found: http://askubuntu.com/questions/22350...n-a-login-loop
    Last edited by qianian; February 3rd, 2013 at 02:15 AM. Reason: add url

  7. #17
    Join Date
    Apr 2012
    Beans
    5,605

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

    I may be wrong about this but I *think* 'Checking battery state' just happens to be the last thing that happens before switching to the GUI session on vt7 - I don't think the it has any particular significance apart from that

    At this point I would be looking at ~/.xsession-errors and possibly the /var/log/lightdm/x-0-greeter.log file for clues

  8. #18
    Join Date
    Oct 2007
    Beans
    66

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

    I'm not sure how to show the /var/log/lightdm/x-0-greeter.log to you because I have to be in the virtual terminal to sudo.

    Okay, what do you think of:

    ~/.xsession-errors
    Backend : gconf
    Integration : true
    Profile : unity
    Adding plugins
    Initializing core options...done
    Initializing composite options...done
    Initializing opengl options...done
    Initializing decor options...done
    Initializing vpswitch options...done
    Initializing snap options...done
    Initializing mousepoll options...done
    Initializing resize options...done
    Initializing place options...done
    Initializing move options...done
    Initializing wall options...done
    Initializing grid options...done
    I/O warning : failed to load external entity "/tmp/guest-vysQPZ/.compiz/session/102212cffc3180992b135985424626766800000018540036"
    Initializing session options...done
    Initializing gnomecompat options...done
    Initializing animation options...** Message: applet now removed from the notification area
    done
    Initializing fade options...done
    ** Message: using fallback from indicator to GtkStatusIcon
    Initializing unitymtgrabhandles options...done
    Initializing workarounds options...done
    Initializing scale options...done
    compiz (expo) - Warn: failed to bind image to texture
    Initializing expo options...done
    Initializing ezoom options...done

    (compiz:1926): GConf-CRITICAL **: gconf_client_add_dir: assertion `gconf_valid_key (dirname, NULL)' failed
    Initializing unityshell options...done
    Initializing annotate options...done
    Initializing blur options...done
    Initializing clone options...done
    Initializing colorfilter options...done
    Initializing commands options...done
    Initializing cube options...done
    Initializing imgjpeg options...done
    Initializing kdecompat options...done
    Initializing mag options...done
    Initializing neg options...done
    Initializing obs options...done
    Initializing opacify options...done
    Initializing put options...done
    Initializing resizeinfo options...done
    Initializing ring options...done
    Initializing rotate options...done
    Initializing scaleaddon options...done
    Initializing screenshot options...done
    Initializing shift options...done
    Initializing staticswitcher options...done
    Initializing switcher options...done
    Initializing thumbnail options...done
    Initializing water options...done
    Initializing winrules options...done
    Initializing wobbly options...done
    Setting Update "run_command_terminal_key"
    Setting Update "fullscreen_visual_bell"
    Setting Update "autoraise"
    Setting Update "autoraise_delay"
    Setting Update "toggle_window_shaded_key"
    Setting Update "fullscreen_visual_bell"
    Setting Update "autoraise"
    Setting Update "autoraise_delay"
    Setting Update "toggle_window_shaded_key"
    Setting Update "fullscreen_visual_bell"
    Setting Update "main_menu_key"
    Setting Update "run_command_terminal_key"
    Setting Update "run_key"
    compiz (core) - Warn: failed to receive ConfigureNotify event on 0x1600004

    ** Message: moving back from GtkStatusIcon to indicator

  9. #19
    Join Date
    Oct 2007
    Beans
    66

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

    I still can't log in in the graphical session, only Guest user and the other Ctrl+Alt+Fn sessions. Any help?

  10. #20
    Join Date
    Oct 2007
    Beans
    66

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

    Anyone think it might be different if I install from Live Disk while the drive is installed rather than on a USB adapter? I really need to log in.

Page 2 of 3 FirstFirst 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
  •