Announcement

Collapse
No announcement yet.

Problems booting Kubuntu after failed upgrade

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems booting Kubuntu after failed upgrade

    HAD: Kubuntu 9.04

    DID: Confirm that I wanted to upgrade to 9.10

    Everything got downloaded and the computer was well into the upgrading/installation part when the local power company decided to mess things up by cutting the power.

    Now, when I try to boot, I get the Kubuntu logo and the bar travelling back and forth and after a while it drops to cli waiting for the different partitions. The last one is swap, and that's where it gets stuck.

    I have tried editing fstab and replacing the UUID's with the partition names.

    Here are my partitions:

    /dev/sda1 is monted to /
    /dev/sda2 is mounted to /home
    /dev/sda3 is swap

    I have replaced the UUID in the resume file with the /dev/sda3.

    Still no luck.

    Is there a way to continue the upgrade so it can finish? There is a lot of data on the /home partition that can not get lost. So I have to be a bit careful.

    I have upgraded several of the systems here in the house and have had no problems. And along comes the power company...!
    Regards,
    Oceanwatcher
    Blog: http://www.wisnaes.com/
    Pictures: http://www.oceanwatcher.com/
    Software tips (in Norwegian): http://www.datahverdag.com/

    #2
    Re: Problems booting Kubuntu after failed upgrade

    Suggestion. If, you are only having a problem during mounting of the swap, then comment it out of the fstab file and see if you actually are permitted to continue. You can then ensure that your upgrade was completed; run an other update / dist-upgrade to be sure. Reboot and confirm. Then, you can reformat/designate the swap partition with GParted (preferred), and then redesignate the swap in fstab.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Problems booting Kubuntu after failed upgrade

      Thank you for taking the time to answer.

      I commented out swap in fstab and rebooted. It still hangs waiting, so I pressed ESC to get to the recovery console ( I had to press ESC and Enter ).

      I used

      sudo mount -a /dev/sd1

      and got a message saying it was already mounted.

      Doing the same for sd2 produced no error. Trying it again told me it was mounted as /home.

      So far, so good.

      Control-D should terminate the shell and try again, so I did that.

      It still hangs, admittedly with less stuff written:

      One or more of the mounts listed in /etc/fstab cannot yet be mounted:
      (ESC for recovery shell)
      /: waiting for /dev/disk/by-uuid/da5d410b-85f0-4369-a024-d63296ace7ea
      /tmp: waiting for (null)

      Funny thing, I don't have any more UUID in fstab. Also, I don't have any /tmp set up in fstab.

      And both /dev/sda1 and /dev/sda2 are mounted...

      Any good ideas? :-)
      Regards,
      Oceanwatcher
      Blog: http://www.wisnaes.com/
      Pictures: http://www.oceanwatcher.com/
      Software tips (in Norwegian): http://www.datahverdag.com/

      Comment


        #4
        Re: Problems booting Kubuntu after failed upgrade

        Again, from a recovery boot. At the CLI, run fsck on sda1:
        Code:
        fsck /dev/sda1
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Problems booting Kubuntu after failed upgrade

          I assume you mean booting until it "hangs".

          I did this before, and tried it again now. In both cases the answer was that it is clean.

          In Windows, there is a way to force a check, even if it is flagged clean. Is it possible to do that in Linux too?

          I tried fixing sda2 as well. That one listed recovering journal and then clean.

          Tried control-D to try it again, and it still hangs the same way.

          I have seen some comments about this during some searches and some recommends remounting the partitions as rw. I have also seen something about grub, but not sure how to proceed there.

          Happy to try any suggestions :-)

          What about the /tmp? Where does it come from? And the UUID still in there - any way to get rid of it?

          I did a mount -a and checked that I could list the files on / and /home

          Then a control-D and the same message comes up again.

          What triggers the search for the UUID?

          Something strange here too:

          When running an fsck on a partition, I usually get a warning if it is mounted.

          Running it on /dev/sda1 never gives a warning. I also tried umount /dev/sda1 and then immediately tried listing the content on / by using ls. It worked fine as if it was still mounted...

          Sorry for making a post that is jumping a little around, I am testing things and making comments here as I am testing...
          Regards,
          Oceanwatcher
          Blog: http://www.wisnaes.com/
          Pictures: http://www.oceanwatcher.com/
          Software tips (in Norwegian): http://www.datahverdag.com/

          Comment


            #6
            Re: Problems booting Kubuntu after failed upgrade

            at the recoverey console have you tryed the folowing

            Code:
            sudo apt-get update && sudo apt-get dist-upgrade
            Code:
            sudo apt-get -f install
            Code:
            sudo dpkg --configure -a
            ?

            the Idea being that as you got your power shut down during install/configure it never finished!!

            VINNY





            i7 4core HT 8MB L3 2.9GHz
            16GB RAM
            Nvidia GTX 860M 4GB RAM 1152 cuda cores

            Comment


              #7
              Re: Problems booting Kubuntu after failed upgrade

              Hi Vinny,

              Yeah, tried it already. But - as there is no network (Kubuntu has barely started booting) I am getting network unreachable.

              Also, the filesystem is mounted as readonly. So I should probably remount them with the proper settings. What do I do to get that done?

              So that is where I am now...

              And yes, I know the upgrade did not finish. That is the whole point. Otherwise I would not be in this mess... :-)

              But it is a good thing you reminded me about this.
              Regards,
              Oceanwatcher
              Blog: http://www.wisnaes.com/
              Pictures: http://www.oceanwatcher.com/
              Software tips (in Norwegian): http://www.datahverdag.com/

              Comment


                #8
                Re: Problems booting Kubuntu after failed upgrade

                Here is one step further:

                In the recovery console, i typed this:

                Code:
                mount -n -o remount,rw /
                I tried starting the network, but that did not work. So no apt-get update. but as I know all the packages had finished downloading, I tried the apt-get dist-upgrade.

                I got an error on that too, but it suggested that I added --fix-missing

                So I ran
                Code:
                apt-get dist-upgrade --fix-missing
                And things are happening :-)

                If I can get it to boot properly now, the first thing to do will be a full new update and a forced fsck.
                Regards,
                Oceanwatcher
                Blog: http://www.wisnaes.com/
                Pictures: http://www.oceanwatcher.com/
                Software tips (in Norwegian): http://www.datahverdag.com/

                Comment


                  #9
                  Re: Problems booting Kubuntu after failed upgrade

                  The computer now boots properly up to the point where you log in.

                  I am typing my password, and it starts the rest of the boot process, but after a few seconds, I am being thrown back to the login screen again.

                  This, I suspect is a different problem as this also happens when I try to boot from a Kubuntu 9.10 live CD.

                  If anyone recognize this and can confirm it is a different problem, I'll open a new thread for it (unless you have a real easy and quick solution )
                  Regards,
                  Oceanwatcher
                  Blog: http://www.wisnaes.com/
                  Pictures: http://www.oceanwatcher.com/
                  Software tips (in Norwegian): http://www.datahverdag.com/

                  Comment


                    #10
                    Re: Problems booting Kubuntu after failed upgrade

                    After rebooting a couple of times, I was able to drop to a console and log in. Ran sudo apt-get update and sudo apt-get upgrade.

                    Both dpkg and wicd needed upgrading.

                    Is there a way to do a "health-check" on the installed packages?
                    Regards,
                    Oceanwatcher
                    Blog: http://www.wisnaes.com/
                    Pictures: http://www.oceanwatcher.com/
                    Software tips (in Norwegian): http://www.datahverdag.com/

                    Comment


                      #11
                      Re: Problems booting Kubuntu after failed upgrade

                      Originally posted by Oceanwatcher
                      sudo apt-get update and sudo apt-get upgrade.
                      You will, IMO, be better served if you run sudo apt-get dist-upgrade (as apposed to upgrade). upgrade does not deal with dependancies, but dist-upgrade does. See apt-get man page and look at the descriptions for upgrade vs dist-upgrade.
                      Windows no longer obstructs my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment


                        #12
                        Re: Problems booting Kubuntu after failed upgrade

                        Sorry. Typo. Should of course be dist-upgrade. So that one is done :-)

                        And still have the problem.
                        Regards,
                        Oceanwatcher
                        Blog: http://www.wisnaes.com/
                        Pictures: http://www.oceanwatcher.com/
                        Software tips (in Norwegian): http://www.datahverdag.com/

                        Comment

                        Working...
                        X