Announcement

Collapse
No announcement yet.

I cannot extend the size of Kubuntu 18.04

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

    #16
    I thought we were just trying to fix a possibly damaged filesystem on sda7! What the heck is this sfdisk?
    man sfdisk -- that re-orders/realigns partitions?!!! I hope not! We do not want to mess with the order of the partitions for now!
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #17
      I thought gparted would check and fix a filesystem. Or, fsck, https://linux.die.net/man/8/fsck . Now, I don't know if you need to use TestDisk or what.
      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

      Comment


        #18
        oshunluvr wrote me to write "sfdisk -r /dev/sda".
        After he advised me to run fsck on sda7.
        Thank you Qqmike for advising me te use gparted, but I didn't know what to do with it. I'm normally using the partition software of Kubuntu 18.04.
        The last time I wrote "sfdisk -r /dev/sda" in the terminal as I was logged in the partition sda7. Did I make a mistake? Was it better to write it in a terminal of a usb drive?

        Comment


          #19
          From the sfdisk man page:
          -r, --reorder device
          Renumber the partitions, ordering them by their start offset.
          That doesn't change their UUID, which is what should be used to mount them.
          Grub was looking for (hd0, gptx) where x was the partition location of the boot loader. More details and how to use Grub rescue here:
          https://linuxhint.com/grub_rescue_ubuntu_1804/
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #20
            to write "sfdisk -r /dev/sda".
            As he's pretty good with filesystems, better wait and see what he has in mind.
            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

            Comment


              #21
              ls gives:
              Code:
              (hd0) (hd0,msdos8) (hd0,msdos7) (hd0,msdos6) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
              any other command of the link provided by GreyGeek is declared as "Unknown".
              Last edited by nicrnicr; Nov 10, 2018, 01:22 PM.

              Comment


                #22
                Originally posted by nicrnicr View Post
                ls gives:
                Code:
                (hd0) (hd0,msdos8) (hd0,msdos7) (hd0,msdos6) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
                any other command of the link provided by GreyGeek is declared as "Unknown".
                That's because the examples used "gptX". You must replace gptX with msdosX, where X is a number. Try the "bad" commands again using the proper syntax..
                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment


                  #23
                  Thank you GreyGeek.
                  I tried the commands with "msdosX":
                  ls (hd0,msdos2)/
                  ls (hd0,msdos3)/
                  ls (hd0,msdos5)/
                  ls (hd0,msdos6)/
                  ls (hd0,msdos7)/
                  ls (hd0,msdos8)/
                  I also tried the commands without "msdosX" like lsmod, usb, lspci,

                  Comment


                    #24
                    Boy, you got yourself into a thing here, my friend, with the grub> prompt. In the old GRUB legacy, I could boot ANYTHING at that prompt. I have not had such luck with the newer GRUB2 that we use now. That said, and I haven't used this stuff for years, I did include some discussion and (hopeful) examples in my GRUB2 how-to:
                    GRUB 2: A Guide for Users

                    https://www.kubuntuforums.net/showth...l=1#post193705

                    It is difficult to navigate this huge document, but note the Table of Contents, Section 3:

                    SECTION 3 Fixing Things
                    A checklist of things to try to fix a broken system
                    A Troubleshooting Outline
                    Ctrl+Alt+Del will reboot your PC
                    Super Grub Disk: Very Important
                    Key commands: grub-mkconfig and sudo grub-install
                    Timeout & Default OS, changing
                    Kernel options, changing
                    To see or to hide the boot menu
                    Missing OS entry in the boot menu
                    Editing the boot menu during booting: "e" key
                    The GRUB prompt grub> -- What to do with it
                    => Getting information and booting an OS
                    Re-installing GRUB 2 using Live CD: Key Rescue Method
                    Using a Live CD to edit files in your OS
                    That section (that you must scroll down to access), contains discussion and a couple examples (booting by symlink), and it mentions that you can often boot by several other methods--these other methods are also covered in the how-to in the referenced sections. But, fact is, I think you should be able to boot by symink (discussed in Section 3). I have had mixed luck booting at the GRUB2 grub> prompt. However ... I did actually test everything in that how-to with real examples and printed what I found out. I did not include my many failures! (As I said, the old GRUB legacy was great, I never failed to boot by grub> there.)

                    I hope this helps.
                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment


                      #25
                      Originally posted by nicrnicr View Post
                      Thank you GreyGeek.
                      I tried the commands with "msdosX":
                      ls (hd0,msdos2)/
                      ls (hd0,msdos3)/
                      ls (hd0,msdos5)/
                      ls (hd0,msdos6)/
                      ls (hd0,msdos7)/
                      ls (hd0,msdos8)/
                      I also tried the commands without "msdosX" like lsmod, usb, lspci,
                      Are you using a capital O (oh) instead of 0 (zero)?
                      For one of the partitions you should have gotten something like this:


                      Did you do something else besides "sfdisk -r /dev/sda"?
                      Last edited by GreyGeek; Nov 10, 2018, 06:54 PM.
                      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                      – John F. Kennedy, February 26, 1962.

                      Comment


                        #26
                        It seems the partitions got lost.
                        Somehow, got way off track here, but not sure what to do now, except possibly TestDisk (unless you guys know how to "reverse" whatever sfdisk - did). Post #1 seemed to indicate a filesystem error, which I think would be fixable:
                        The error result is:
                        Grow partition ‘/dev/sda7’ from 149.01 GiB to 219.22 GiB
                        Job: Check file system on partition ‘/dev/sda7’
                        Command: e2fsck -f -y -v /dev/sda7
                        Check file system on partition ‘/dev/sda7’: Error
                        An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                        Comment


                          #27
                          Thank you GreyGeek.
                          I only did what I already described. I didn't write O but 0.

                          Comment


                            #28
                            I guess you are waiting on some kind of smart response. I don't have one, yet. I presume you can't find any partitions? There are options, like using TestDisk from a live USB Kubuntu session. Or, booting to a live Kubuntu USB, see if you can discover anything about the current status of things. For example, sudo fdisk -lu can be run from a live Kubuntu session, at Konsole. I presume you can also run your favorite command, too, sfdisk, perhaps with the two commands --list and --verify.
                            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                            Comment


                              #29
                              Thank you very much Qqmike for your further pieces of advice!
                              I booted with a live USB and uploaded the content of the partitions in this post and the following one. Some are not readable.
                              OS which seems to be a part of Windows.
                              Click image for larger version

Name:	OS.jpeg
Views:	1
Size:	69.5 KB
ID:	644050

                              149GB wich is sda7 and readable.
                              Click image for larger version

Name:	149GB.jpeg
Views:	1
Size:	53.8 KB
ID:	644051

                              50,6GB wich seems to be a part of Windows
                              Click image for larger version

Name:	50komma6.jpeg
Views:	1
Size:	48.1 KB
ID:	644052

                              unreadable Kubuntu 16.04
                              Click image for larger version

Name:	red Kubuntu 16.jpeg
Views:	1
Size:	72.2 KB
ID:	644053

                              I can't get rid of the following image that you can forget.
                              Attached Files
                              Last edited by nicrnicr; Nov 12, 2018, 03:53 AM.

                              Comment


                                #30
                                readable Kubuntu 16.04
                                Click image for larger version

Name:	green Kubuntu 16.jpeg
Views:	1
Size:	44.6 KB
ID:	644054

                                The partition of Loop device is not shown as it is that of the USB flash drive.

                                For the last 103,6GB partition, I show the homes of the two users aui and auie and the unreadable home in auie's home.
                                aui's home
                                Click image for larger version

Name:	103komma6 aui s home.jpeg
Views:	1
Size:	43.9 KB
ID:	644055

                                auie's home
                                Click image for larger version

Name:	103komma6 auie s home.jpeg
Views:	1
Size:	48.2 KB
ID:	644056

                                The unreadable home in auie's home
                                Click image for larger version

Name:	home of 103komma6 auie s home.jpeg
Views:	1
Size:	45.5 KB
ID:	644057
                                Last edited by nicrnicr; Nov 12, 2018, 04:44 AM.

                                Comment

                                Working...
                                X