Results 1 to 2 of 2

Thread: Unable to get to FailsafeX or root shell

  1. #1
    Join Date
    Nov 2007
    Location
    Cairo, Egypt
    Beans
    121
    Distro
    Ubuntu Development Release

    Exclamation Unable to get to FailsafeX or root shell

    1- On Ubuntu 13.10, I decided to set up Gnome 3 to test the 3.10 components. So, I added the official ppa by
    Code:
    sudo add-apt-repository ppa:gnome3-team/gnome3
    sudo apt-get update
    sudo apt-get dist-upgrade
    2- After encountering many problems, I decided that it's hard to handle and revert back using ppa-purge
    Code:
    sudo ppa-purge ppa:gnome3-team/gnome3
    The command displayed the packages to be downgraded and those to be removed, but I didn't pay much attention to the lists.
    3- After a reboot I get the login window but without the ubuntu logo beside the username. Entering my pw and hitting enter keeps the screen as it is.
    LoginScreen.jpg
    4- The problem is
    A- When I try to get to FailsafeX or enable networking for using the root shell, I get the following line and it hangs there.
    Code:
    fsck from util-linux 2.20.1
    /dev/sda1: clean, 428637/1310720 files, 4646644/5242880 blocks.
    RecoveryMenu.jpgNoChangeUponSelecting.jpg
    B- I tried to boot from a live USB and try to install to my original ubuntu driver by
    Code:
    sudo mount /dev/sda1     /mnt
    sudo mount --bind /dev  /mnt/dev
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys  /mnt/sys
    sudo chroot /mnt
    but issuing sudo apt-get update, despite reading my original repositories as on the hdd, seems to have a problem in connection (DNS?) for example:
    Code:
    W: Failed to fetch http://ppa.launchpad.net/wfg/0ad.dev/ubuntu/dists/saucy/Release.gpg  Could not resolve 'ppa.launchpad.net'
    Note: I have tested my internet connection by pinging Google in a different terminal window and it's fully functional.

  2. #2
    Join Date
    Nov 2007
    Location
    Cairo, Egypt
    Beans
    121
    Distro
    Ubuntu Development Release

    Lightbulb Re: How I solved this issue

    In case someone faced the same issue or similar one, here's how I solved it:
    1- Boot using the Ubuntu Live CD/USB
    2- Open a terminal window using the dash menu or simply press Ctrl+Alt+t
    3- Now we will mount the original Ubuntu installation to modify it directly from the Live CD
    Code:
    sudo mount /dev/sda1 /mnt
    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys /mnt/sys
    sudo chroot /mnt
    Note:
    - I assumed that sda1 is your root partition, if you are not sure use
    Code:
    sudo fdisk -l /dev/sda
    and find the partition in front of which, an asterisk is present in the Boot column
    something similar to
    Code:
      
    Device    Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048    41945087    20971520   83  Linux
    /dev/sda2        41945088    47187967     2621440   82  Linux swap / Solaris
    /dev/sda3        47187968    99616767    26214400    7  HPFS/NTFS/exFAT
    /dev/sda4        99616768  1953523711   926953472    5  Extended
    /dev/sda5        99618816  1026572287   463476736    7  HPFS/NTFS/exFAT
    /dev/sda6      1026574336  1953523711   463474688    7  HPFS/NTFS/exFAT
    - If it's not sda1, you have to replace the sda1 in the
    Code:
    sudo mount /dev/sda1 /mnt
    with the system partition of yours.
    4- In the same terminal window, we will use your original Ubuntu repositories present on your HDD
    Code:
    apt-get update
    apt-get upgrade
    Note:
    In some cases like mine, an Internet connection couldn't be established resulting in errors like:
    Code:
    W: Failed to fetch http://ppa.launchpad.net/wfg/0ad.dev/ubuntu/dists/saucy/Release.gpg  Could not resolve 'ppa.launchpad.net'
    - To work around this DHCP problem we have to edit /etc/resolv.conf using a command line text editor called nano
    Code:
    sudo nano /etc/resolv.conf
    - and add the following DNS servers, these are OpenDNS's.
    Code:
    nameserver 208.67.222.222
    nameserver 208.67.220.220
    - Press ctrl+X after pasting the lines above and press y to save the file.
    - Reissue the commands
    Code:
    apt-get update
    apt-get upgrade
    5- In my case while removing the Gnome 3 ppa components using ppa-purge, some essential libs and apps were removed. So, we are going to re-install them using
    Code:
    sudo apt-get install --reinstall ubuntu-desktop
    sudo apt-get dist-upgrade
    6- After completing the installation, your original Ubuntu installation on the hdd should be functional again. Reboot and access your system normally.

    More info on using the Live USB/CD recovery options can be accessed from here.

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
  •