Announcement

Collapse
No announcement yet.

Get my Kubuntu back!! [SOLVED]

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

    Get my Kubuntu back!! [SOLVED]

    Hi,

    Please assist me in getting my Kubuntu back which is installed on hdd1.

    Wanted to try PCLinuxOS so it was installed it to hda1 and now I can't boot to Kubuntu.

    So far, none of the boot options for Kubuntu I've tried in the PCLOS menu.lst have worked.

    title Ubuntu, kernel 2.6.20-16-generic
    root (hd1,0)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=8a1b78cd-5ce2-4880-8cfb-e2620daf84ed ro quiet splash
    initrd /boot/initrd.img-2.6.20-16-generic
    quiet
    savedefault

    Also tried different variations of “root=/dev/hdd1”


    The progress bar in Kubuntu gets so far then stops and a maintenance shell comes up and there's an error message that states:

    fsck 1.40-WIP (14-Nov-2006)
    /dev/hdd3: clean, 18187/2872320 files, 1478645/5737213 blocks
    fsck.ext3: Unable to resolve 'UUID=491827e6-6459-11db-b511-078c99b21e58'
    fsck.ext3: Unable to resolve 'UUID=4c082384-6459-11db-b0f3-2dcbe93647f5'
    fsck.ext3: Unable to resolve 'UUID=509f7e56-6459-11db-964f-8d21212be4d8'
    fsck.ext3: Unable to resolve 'UUID=5443918c-6459-11db-a245-a117feedc55c'
    fsck died with exit status 8


    Looking at “HOW TO: GRUB Methods - Toolkit for Installation, Rescue, Repair - Fixing Common GRUB problems” is a little over my head at this point.

    How can I boot to Kubuntu again?

    Thank you

    #2
    Re: Get my Kubuntu back!!

    Looks like your partition is trashed.
    Put a recovery cd, in prompt run a:

    Code:
    sudo fsck -p -y -f /dev/hdxx
    Where "hdxx" is the disk and partition your linux is installed.
    After that, your /lost+found may have some files, check them and delete if you don't need it.

    Comment


      #3
      Re: Get my Kubuntu back!!


      fsck 1.40-WIP (14-Nov-2006)
      /dev/hdd3: clean, 18187/2872320 files, 1478645/5737213 blocks
      fsck.ext3: Unable to resolve 'UUID=491827e6-6459-11db-b511-078c99b21e58'
      fsck.ext3: Unable to resolve 'UUID=4c082384-6459-11db-b0f3-2dcbe93647f5'
      fsck.ext3: Unable to resolve 'UUID=509f7e56-6459-11db-964f-8d21212be4d8'
      fsck.ext3: Unable to resolve 'UUID=5443918c-6459-11db-a245-a117feedc55c'
      fsck died with exit status 8
      It looks like your uuid's have been changed and kubuntu's fstab can't find them.

      That is no big problem.

      Try and boot with recovery mode. You will probably get the same error messages and at the end you will hopefully see something with Control-D. Press Ctrl+D this should load the recovery (root) mode. when that is finished type: startx

      In your root mode copy and paste this into a terminal:

      Code:
      ls -l /dev/disk/by-uuid/
      This will give you your new uuid's for each partition/drive. Copy this to an editor (kate) for better viewing. Now all you have to do is open /etc/fstab and replace the old uuid's with the new ones for every partition / drive, save. Reboot.

      For more reading on UUID:
      http://www.penguin.ch/dokuwiki/doku....t#mount_errors

      If the above doesn't work (you can't boot into recovery mode) Then use the kubuntu live cd to find your new uuid's (see above). Copy the new list to kate and save it to /home/userpclinux. Boot into pclinux activate your kubuntu partition in the control center then do Alt+F2 type kdesu kate, give your pclinux root password, navigate to your kubuntu partition then /etc/fstab then edit as described above, save, reboot.

      I hope this helps
      HP Pavilion dv6 core i7 (Main)
      4 GB Ram
      Kubuntu 18.10

      Comment


        #4
        Re: Get my Kubuntu back!!

        Fintan,

        The UUID's listed here are not the ones in Kubuntu's fstab. Should I put the UUID's listed above in Kubuntu's fstab? If so, how can you tell which UUID belongs with each partition/drive?

        Thank you

        Comment


          #5
          Re: Get my Kubuntu back!!

          Could you post your results for:

          Code:
          ls -l /dev/disk/by-uuid/
          ?
          HP Pavilion dv6 core i7 (Main)
          4 GB Ram
          Kubuntu 18.10

          Comment


            #6
            Re: Get my Kubuntu back!!

            lrwxrwxrwx 1 root root 10 Aug 19 17:38 1bf41332-200c-4452-a36f-d71bd5c367e7 -> ../../hda5
            lrwxrwxrwx 1 root root 10 Aug 19 17:38 7e999d33-a919-4edc-977f-fb0d768f1b1a -> ../../hda6
            lrwxrwxrwx 1 root root 10 Aug 19 17:38 85255944-d61f-4a46-b80b-a0873ff4460f -> ../../hda1
            lrwxrwxrwx 1 root root 10 Aug 19 17:38 8a1b78cd-5ce2-4880-8cfb-e2620daf84ed -> ../../hdd1
            lrwxrwxrwx 1 root root 10 Aug 19 17:38 dce81964-089a-4aa5-b389-75a3b610d80e -> ../../hdd2
            lrwxrwxrwx 1 root root 10 Aug 19 17:38 f1c866f4-116b-493a-a66f-c3e819d53ada -> ../../hdd3

            Comment


              #7
              Re: Get my Kubuntu back!!

              for example:

              1bf41332-200c-4452-a36f-d71bd5c367e7 -> ../../hda5

              means

              UUID=1bf41332-200c-4452-a36f-d71bd5c367e7 is the ID for /dev/hda5 (sda5)
              so you replace the UUID in your fstab for /dev/sda5 with the one above.

              For good measure you might want to compare the UUID for your root and any other partition you may be booting in your /boot/grub/menu.lst and replace them if needed.

              If you take your time it's a piece of cake.
              HP Pavilion dv6 core i7 (Main)
              4 GB Ram
              Kubuntu 18.10

              Comment


                #8
                Re: Get my Kubuntu back!!

                Fintan,

                Thank you for your reply. The following is the fstab file from Kubuntu.

                If I understand correctly, changes to this fstab will enable booting to Kubuntu from the PCLinux (which has taken over).

                Is this correct?


                For good measure you might want to compare the UUID for your root and any other partition you may be booting in your /boot/grub/menu.lst and replace them if needed.
                Also, are you referring to the PCLinux boot/grub/menu.lst?


                # /etc/fstab: static file system information.
                #
                # <file system> <mount point> <type> <options> <dump> <pass>
                proc /proc proc defaults 0 0
                # /dev/hdd1
                UUID=8a1b78cd-5ce2-4880-8cfb-e2620daf84ed / ext3 defaults,errors=remount-ro 0 1
                # /dev/hdd3
                UUID=f1c866f4-116b-493a-a66f-c3e819d53ada /home ext3 defaults 0 2
                # /dev/hda1
                UUID=491827e6-6459-11db-b511-078c99b21e58 /media/hda1 ext3 defaults 0 2
                # /dev/hda6
                UUID=4c082384-6459-11db-b0f3-2dcbe93647f5 /media/hda6 ext3 defaults 0 2
                # /dev/hda7
                UUID=509f7e56-6459-11db-964f-8d21212be4d8 /media/hda7 ext3 defaults 0 2
                # /dev/hda8
                UUID=5443918c-6459-11db-a245-a117feedc55c /media/hda8 ext3 defaults 0 2
                # /dev/hda5
                UUID=47d610c2-ab16-4a2b-b121-b7a95f745914 none swap sw 0 0
                # /dev/hdd2
                UUID=42a20b79-3e14-475f-9b2e-05d5081e355f none swap sw 0 0
                /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
                /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
                /dev/sda2 /mnt/ipod vfat user,noauto,umask=000 0 0

                Thank you

                Comment


                  #9
                  Re: Get my Kubuntu back!!

                  Could someone PLEASE guide me in the right direction?

                  the "blkid" command shows the following UUID's, which the majority are not the same as what's posted above.

                  blkid
                  /dev/hda1: UUID="85255944-d61f-4a46-b80b-a0873ff4460f" SEC_TYPE="ext2" TYPE="ext3"
                  /dev/hda5: TYPE="swap" UUID="1bf41332-200c-4452-a36f-d71bd5c367e7"
                  /dev/hda6: UUID="7e999d33-a919-4edc-977f-fb0d768f1b1a" SEC_TYPE="ext2" TYPE="ext3"
                  /dev/hdd1: UUID="8a1b78cd-5ce2-4880-8cfb-e2620daf84ed" SEC_TYPE="ext2" TYPE="ext3"
                  /dev/hdd2: TYPE="swap" UUID="dce81964-089a-4aa5-b389-75a3b610d80e"
                  /dev/hdd3: UUID="f1c866f4-116b-493a-a66f-c3e819d53ada" SEC_TYPE="ext2" TYPE="ext3"



                  Which UUID's need to be changed in Kubuntu's fstab?

                  Which UUID's should be used to make the change?





                  Comment


                    #10
                    Re: Get my Kubuntu back!!

                    As far as I can see the output from
                    Code:
                    ls -l /dev/disk/by-uuid/
                    and

                    Code:
                    blkid
                    are identical, which they should be.

                    You have hda7 and hda8 listed in your fstab but not in the outputs.

                    Do these partitions exist (doesn't look like it)? If not delete them from your fstab.

                    As far as which uuid's to use is concerned it doesn't matter as both outputs are identical as far the uuid's goes.
                    All uuid's in the kubuntu fstab which do not correspond with the output should be replaced. (hda5, hda6, hda1, hdd2)
                    HP Pavilion dv6 core i7 (Main)
                    4 GB Ram
                    Kubuntu 18.10

                    Comment


                      #11
                      Re: Get my Kubuntu back!!

                      Fintan,

                      THANK YOU, THANK YOU, THANK YOU!!!

                      For your patience, “spelling out” what needed to be done, and for hanging in there with me until this issue was resolved.

                      As you suggested, I deleted the entries in fstab and as you stated in a previous post, I just took my time and copied the UUID's you suggested. Thank you for pointing out the output for the UUID's was identical. Obviously, I wasn't thinking and didn't realize that.

                      Loading Super Grub would have been the next step and I'm glad that wasn't necessary.

                      As soon as I read your last post, I knew it would work!!! Thank you for “getting my Kubuntu back!”

                      In a few days, I'll do a little research to find out how to get the bootloader back on the hard drive with Kubuntu and change the boot screen to verbose and change the login screen.

                      Comment


                        #12
                        Re: Get my Kubuntu back!! [SOLVED]

                        I happy to be of help.

                        In a few days, I'll do a little research to find out how to get the bootloader back on the hard drive with Kubuntu and change the boot screen to verbose and change the login screen.
                        Okay. Can you post your KUBUNTU /boot/grub/menu.lst?

                        As for changing the login screen you can do that in system settings->appearance->kdm theme (or something to that effect. Mine is in german) and choose the one you want.

                        You can find more at
                        www.kde-look.org
                        under kdm themes (login screen) and bootsplash (that is the "theme" that shows your kde loading process).

                        Download the one(s) you want and You can install them with:
                        system settings->appearance->kdm theme
                        and
                        system settings->login screen

                        Have fun
                        HP Pavilion dv6 core i7 (Main)
                        4 GB Ram
                        Kubuntu 18.10

                        Comment


                          #13
                          Re: Get my Kubuntu back!! [SOLVED]

                          Hi Fintan,

                          Kubuntu menu.lst:

                          # menu.lst - See: grub(8), info grub, update-grub(8)
                          # grub-install(8), grub-floppy(8),
                          # grub-md5-crypt, /usr/share/doc/grub
                          # and /usr/share/doc/grub-doc/.

                          ## default num
                          # Set the default entry to the entry number NUM. Numbering starts from 0, and
                          # the entry number 0 is the default if the command is not used.
                          #
                          # You can specify 'saved' instead of a number. In this case, the default entry
                          # is the entry saved with the command 'savedefault'.
                          # WARNING: If you are using dmraid do not change this entry to 'saved' or your
                          # array will desync and will not let you boot your system.
                          default 0

                          splashimage=(hd1,0)/boot/KUBUNTU.xpm.gz

                          ## timeout sec
                          # Set a timeout, in SEC seconds, before automatically booting the default entry
                          # (normally the first entry defined).
                          timeout 60

                          ## hiddenmenu
                          # Hides the menu by default (press ESC to see the menu)
                          #hiddenmenu

                          # Pretty colours
                          #color cyan/blue white/blue

                          ## password ['--md5'] passwd
                          # If used in the first section of a menu file, disable all interactive editing
                          # control (menu entry editor and command-line) and entries protected by the
                          # command 'lock'
                          # e.g. password topsecret
                          # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
                          # password topsecret

                          #
                          # examples
                          #
                          # title Windows 95/98/NT/2000
                          # root (hd0,0)
                          # makeactive
                          # chainloader +1
                          #
                          # title Linux
                          # root (hd0,1)
                          # kernel /vmlinuz root=/dev/hda2 ro
                          #

                          #
                          # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

                          ### BEGIN AUTOMAGIC KERNELS LIST
                          ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
                          ## by the debian update-grub script except for the default options below

                          ## DO NOT UNCOMMENT THEM, Just edit them to your needs

                          ## ## Start Default Options ##
                          ## default kernel options
                          ## default kernel options for automagic boot options
                          ## If you want special options for specific kernels use kopt_x_y_z
                          ## where x.y.z is kernel version. Minor versions can be omitted.
                          ## e.g. kopt=root=/dev/hda1 ro
                          ## kopt_2_6_8=root=/dev/hdc1 ro
                          ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
                          # kopt=root=UUID=8a1b78cd-5ce2-4880-8cfb-e2620daf84ed ro

                          ## Setup crashdump menu entries
                          ## e.g. crashdump=1
                          # crashdump=0

                          ## default grub root device
                          ## e.g. groot=(hd0,0)
                          # groot=(hd1,0)

                          ## should update-grub create alternative automagic boot options
                          ## e.g. alternative=true
                          ## alternative=false
                          # alternative=true

                          ## should update-grub lock alternative automagic boot options
                          ## e.g. lockalternative=true
                          ## lockalternative=false
                          # lockalternative=false

                          ## additional options to use with the default boot option, but not with the
                          ## alternatives
                          ## e.g. defoptions=vga=791 resume=/dev/hda5
                          # defoptions=quiet splash

                          ## should update-grub lock old automagic boot options
                          ## e.g. lockold=false
                          ## lockold=true
                          # lockold=false

                          ## Xen hypervisor options to use with the default Xen boot option
                          # xenhopt=

                          ## Xen Linux kernel options to use with the default Xen boot option
                          # xenkopt=console=tty0

                          ## altoption boot targets option
                          ## multiple altoptions lines are allowed
                          ## e.g. altoptions=(extra menu suffix) extra boot options
                          ## altoptions=(recovery) single
                          # altoptions=(recovery mode) single

                          ## controls how many kernels should be put into the menu.lst
                          ## only counts the first occurence of a kernel, not the
                          ## alternative kernel options
                          ## e.g. howmany=all
                          ## howmany=7
                          # howmany=all

                          ## should update-grub create memtest86 boot option
                          ## e.g. memtest86=true
                          ## memtest86=false
                          # memtest86=true

                          ## should update-grub adjust the value of the default booted system
                          ## can be true or false
                          # updatedefaultentry=false

                          ## ## End Default Options ##

                          title Ubuntu, kernel 2.6.20-16-generic
                          root (hd1,0)
                          kernel /boot/vmlinuz-2.6.20-16-generic root=/dev/hdd1 ro quiet splash
                          initrd /boot/initrd.img-2.6.20-16-generic
                          quiet
                          savedefault

                          title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
                          root (hd1,0)
                          kernel /boot/vmlinuz-2.6.20-16-generic root=/dev/hdd1 ro single
                          initrd /boot/initrd.img-2.6.20-16-generic

                          title Ubuntu, memtest86+
                          root (hd1,0)
                          kernel /boot/memtest86+.bin
                          quiet

                          ### END DEBIAN AUTOMAGIC KERNELS LIST

                          # This is a divider, added to separate the menu items below from the Debian
                          # ones.
                          title Other operating systems:
                          root


                          # This entry automatically added by the Debian installer for an existing
                          # linux installation on /dev/hda1.
                          title PCLinuxOS (on /dev/hda1)
                          root (hd0,0)
                          kernel /boot/vmlinuz root=/dev/hda1 resume=/dev/hda5 splash=verbose vga=788
                          initrd (hd0,0)/boot/initrd.img
                          savedefault
                          boot


                          # This entry automatically added by the Debian installer for an existing
                          # linux installation on /dev/hda1.
                          title linux-nonfb (on /dev/hda1)
                          root (hd0,0)
                          kernel /boot/vmlinuz root=/dev/hda1 resume=/dev/hda5
                          initrd (hd0,0)/boot/initrd.img
                          savedefault
                          boot


                          # This entry automatically added by the Debian installer for an existing
                          # linux installation on /dev/hda1.
                          title failsafe (on /dev/hda1)
                          root (hd0,0)
                          kernel /boot/vmlinuz root=/dev/hda1 failsafe resume=/dev/hda5
                          initrd (hd0,0)/boot/initrd.img
                          savedefault
                          boot

                          ================================================== ===========

                          It is probably not correct from many many attempts at trying to boot to Kubuntu from PCLinux.

                          Does "default" need to be 1? Also, the Kubuntu entry needs to be changed, doesn't it?

                          Thank you

                          Comment


                            #14
                            Re: Get my Kubuntu back!! [SOLVED]

                            Fintan,

                            Thank you for your assistance. KDM Theme wasn't installed, but once it was, I was able to change the theme. That was easy.

                            There were a lot of updates and after updating, the Kubuntu menu.lst is as follows:

                            # menu.lst - See: grub(8), info grub, update-grub(8)
                            # grub-install(8), grub-floppy(8),
                            # grub-md5-crypt, /usr/share/doc/grub
                            # and /usr/share/doc/grub-doc/.

                            ## default num
                            # Set the default entry to the entry number NUM. Numbering starts from 0, and
                            # the entry number 0 is the default if the command is not used.
                            #
                            # You can specify 'saved' instead of a number. In this case, the default entry
                            # is the entry saved with the command 'savedefault'.
                            # WARNING: If you are using dmraid do not change this entry to 'saved' or your
                            # array will desync and will not let you boot your system.
                            default 0

                            splashimage=(hd1,0)/boot/KUBUNTU.xpm.gz

                            SNIP

                            title Ubuntu, kernel 2.6.20-16-generic
                            root (hd1,0)
                            kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=8a1b78cd-5ce2-4880-8cfb-e2620daf84ed ro quiet splash
                            initrd /boot/initrd.img-2.6.20-16-generic
                            quiet
                            savedefault

                            title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
                            root (hd1,0)
                            kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=8a1b78cd-5ce2-4880-8cfb-e2620daf84ed ro single
                            initrd /boot/initrd.img-2.6.20-16-generic

                            title Ubuntu, memtest86+
                            root (hd1,0)
                            kernel /boot/memtest86+.bin
                            quiet

                            ### END DEBIAN AUTOMAGIC KERNELS LIST

                            # This is a divider, added to separate the menu items below from the Debian
                            # ones.
                            title Other operating systems:
                            root


                            # This entry automatically added by the Debian installer for an existing
                            # linux installation on /dev/hda1.
                            title PCLinuxOS (on /dev/hda1)
                            root (hd0,0)
                            kernel /boot/vmlinuz root=/dev/hda1 resume=/dev/hda5 splash=verbose vga=788
                            initrd (hd0,0)/boot/initrd.img
                            savedefault
                            boot


                            # This entry automatically added by the Debian installer for an existing
                            # linux installation on /dev/hda1.
                            title linux-nonfb (on /dev/hda1)
                            root (hd0,0)
                            kernel /boot/vmlinuz root=/dev/hda1 resume=/dev/hda5
                            initrd (hd0,0)/boot/initrd.img
                            savedefault
                            boot


                            # This entry automatically added by the Debian installer for an existing
                            # linux installation on /dev/hda1.
                            title failsafe (on /dev/hda1)
                            root (hd0,0)
                            kernel /boot/vmlinuz root=/dev/hda1 failsafe resume=/dev/hda5
                            initrd (hd0,0)/boot/initrd.img
                            savedefault
                            boot

                            What steps will get GRUB back on the hard drive where Kubuntu is and show the text on the screen as it is booting up?


                            Also, the following packages are installed. Do all of these need to be installed?

                            linux-generic (2.6.20.16.28.1)
                            linux-headers-2.6.20-16 (2.6.20-16.31)
                            linux-headers-2.6.20-16-generic (2.6.20-16.31)
                            linux-headers-generic (2.6.20.16.28.1)
                            linux-image-2.6.20-16-generic (2.6.20-16.31)
                            linux-image-generic (2.6.20.16.28.1)
                            linux-restricted-modules-2.6.20-16-generic (2.6.20.5-16.29)
                            linux-restricted-modules-common (2.6.20.5-16.29)
                            linux-restricted-modules-generic (2.6.20.16.28.1)

                            Thank you for your assistance.

                            Comment

                            Working...
                            X