Announcement

Collapse
No announcement yet.

How do I allocate more HD space for Kubuntu?

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

    #46
    I guess it worked. Booted, took a while, but I don't know how to tell what it booted from.
    this is current Partition ManagerClick image for larger version

Name:	partitions 5.jpg
Views:	1
Size:	66.4 KB
ID:	640641
    Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

    Comment


      #47
      Can you help me clear the syntax errors? Then it looks like the earlier install of 13.10 should...what? be deleted in favor of a new install?

      Generating grub.cfg ...
      Found linux image: /boot/vmlinuz-3.0.0-32-generic
      Found initrd image: /boot/initrd.img-3.0.0-32-generic
      Found linux image: /boot/vmlinuz-3.0.0-12-generic
      Found initrd image: /boot/initrd.img-3.0.0-12-generic
      Found memtest86+ image: /boot/memtest86+.bin
      Found Ubuntu 11.10 (11.10) on /dev/sda3
      Found Ubuntu 13.10 (13.10) on /dev/sda5
      error: syntax error.
      error: Incorrect command.
      error: syntax error.
      error: line no: 295
      Syntax errors are detected in generated GRUB config file.
      Ensure that there are no errors in /etc/default/grub
      and /etc/grub.d/* files or please file a bug report with
      /boot/grub/grub.cfg.new file attached.
      done
      Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

      Comment


        #48
        It booted from sda6 which looks like it was your 11.10 install. You can tell because it's the one that's locked in Partition Manager. At least we made it further this time.

        Are you currently running from the install you normally use? Based on the above output, we backed up the 11.10 install, but the total amount of space used is too low. Lets do a couple more things.

        First, let's mount both new partitions and the other install. If you get an error about "already mounted" or "file exists" ignore them and forge ahead. Do this list of commands;
        Code:
        sudo -i
        mkdir /mnt/sda6
        mkdir /mnt/sda4
        mkdir /mnt/sda3
        mount /dev/sda3 /mnt/sda3
        mount /dev/sda4 /mnt/sda4
        mount /dev/sda6 /mnt/sda6
        This time, I showed you a new command: "sudo -i" puts you in superuser mode and leaves you there. You will notice the prompt changed from $ to # - that's how you know you're still in superuser mode. This way you don't have to type sudo every line. When you're done, to exit superuser mode, just type "exit". Once you've done the above, do this and post the results:

        Code:
        df -h

        Please Read Me

        Comment


          #49
          To fix the grub error, copy and paste the contents of /etc/grub.d/40_custom

          Please Read Me

          Comment


            #50
            Filesystem:

            root@Petersen:~# df -h
            Filesystem Size Used Avail Use% Mounted on
            /dev/sda6 27G 22G 4.4G 84% /
            udev 1.6G 12K 1.6G 1% /dev
            tmpfs 656M 1.1M 655M 1% /run
            none 5.0M 4.0K 5.0M 1% /run/lock
            none 1.6G 3.2M 1.6G 1% /run/shm
            /dev/sda3 26G 966M 24G 4% /mnt/sda3
            /dev/sda5 63G 29G 31G 49% /media/138c7e8a-ab14-461c-9bce-ed83424a14ba
            /dev/sda4 2 6G 172M 24G 1% /media/f5832725-1864-49c2-87f7-8d7b464eae56
            /dev/sda4 26G 172M 24G 1% /mnt/sda4
            root@Petersen:~#root@Petersen:~# exit
            logout
            granpasmurf@Petersen:~$

            filesystem.odt
            Last edited by GranPaSmurf; Feb 08, 2014, 05:26 AM.
            Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

            Comment


              #51
              Originally posted by oshunluvr View Post
              ...the contents of /etc/grub.d/40_custom
              granpasmurf@Petersen:~$ /etc/grub.d/40_custom
              # This file provides an easy way to add custom menu entries. Simply type the
              # menu entries you want to add after this comment. Be careful not to change
              # the 'exec tail' line above.
              menuentry 'SDA3' {
              insmod gzio
              insmod part_msdos
              insmod btrfs
              set root='hd0,msdos3'
              search --no-floppy --fs-uuid --set=root <UUID OF SDA3 HERE>
              configfile /boot/grub/grub.cfg
              }
              Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

              Comment


                #52
                search --no-floppy --fs-uuid --set=root <UUID OF SDA3 HERE>
                Change:

                <UUID OF SDA3 HERE>

                to:

                cf388ed2-d38c-4ae4-9e16-caca379970c1

                For the other thing; with sda3 mounted at /mnt/sda3, let me see the results of

                du -s /mnt/sda3

                Please Read Me

                Comment


                  #53
                  Originally posted by oshunluvr View Post
                  Change:

                  <UUID OF SDA3 HERE>

                  to:

                  cf388ed2-d38c-4ae4-9e16-caca379970c1
                  well duh! might be time for me to actually read what I am copying and sending

                  Originally posted by oshunluvr View Post
                  Change: For the other thing; with sda3 mounted at /mnt/sda3, let me see the results of

                  du -s /mnt/sda3
                  812872 /mnt/sda3
                  Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

                  Comment


                    #54
                    Something must be wrong with my rdiff-backup command. Let me look into it...

                    Please Read Me

                    Comment


                      #55
                      It looks like you can't use rdiff-backup to copy all the files under "sys" while the system is running. So boot to the older 11.10 install on sda5 (should be in your grub menu). Then do the mkdir and mount commands like above:

                      sudo -i
                      mkdir /mnt/sda6
                      mkdir /mnt/sda3
                      mount /dev/sda3 /mnt/sda3
                      mount /dev/sda6 /mnt/sda6


                      Then try rdiff-backup again only slightly different:

                      rdiff-backup -v5 --print-statistics --exclude /home --exclude /tmp --exclude /proc --exclude /media --exclude /cdrom /mnt/sda6 /mnt/sda3

                      The "-v5" option should give you some output as it runs and the "--print-statistics" option will show some ending results. Once this is complete, do the "df -h" again and let's see the results.

                      Please Read Me

                      Comment


                        #56
                        sorry, I don't know how to select which install to boot from.

                        this is ///etc/grub.d/40_custom

                        #!/bin/sh
                        exec tail -n +3 $0
                        # This file provides an easy way to add custom menu entries. Simply type the
                        # menu entries you want to add after this comment. Be careful not to change
                        # the 'exec tail' line above.
                        menuentry 'SDA3' {
                        insmod gzio
                        insmod part_msdos
                        insmod btrfs
                        set root='hd0,msdos3'
                        search --no-floppy --fs-uuid --set=root <cf388ed2-d38c-4ae4-9e16-caca379970c1>
                        configfile /boot/grub/grub.cfg
                        }
                        Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

                        Comment


                          #57
                          Your grub menu should have a list when you boot. After 10 seconds, it launches the default. If you hit any key during the 10 seconds, it cancels the timer. I assume the last install you did is 13.10 on sda5 and that's the one you want to keep. So when you reboot, when the grub menu appears, hit the down arrow to the third or forth line where 11.10 is listed and boot to that. Alternately, you can boot to a liveCD or USB and do the same stuff.

                          Please Read Me

                          Comment


                            #58
                            I have a live CD ready, but...we never got around to installing 13.10.
                            BASH:
                            ranpasmurf@Petersen:~$ sudo -i
                            [sudo] password for granpasmurf:
                            root@Petersen:~# mkdir /mnt/sda3
                            mkdir: cannot create directory `/mnt/sda3': File exists
                            root@Petersen:~# mkdir /mnt/sda6
                            mkdir: cannot create directory `/mnt/sda6': File exists
                            root@Petersen:~# mount /dev/sda3 /mnt/sda3
                            root@Petersen:~# mount /dev/sda6 /mnt/sda6
                            root@Petersen:~# rdiff-backup -v5 --print-statistics --exclude /home --exclude /tmp --exclude /proc --exclude /media --exclude /cdrom /mnt/sda6 /mnt/sda3
                            Using rdiff-backup version 1.2.8
                            Found interrupted initial backup. Removing...
                            Unable to import win32security module. Windows ACLs
                            not supported by filesystem at /mnt/sda6
                            escape_dos_devices not required by filesystem at /mnt/sda6
                            -----------------------------------------------------------------
                            Detected abilities for source (read only) file system:
                            Access control lists On
                            Extended attributes On
                            Windows access control lists Off
                            Case sensitivity On
                            Escape DOS devices Off
                            Escape trailing spaces Off
                            Mac OS X style resource forks Off
                            Mac OS X Finder information Off
                            -----------------------------------------------------------------
                            Unable to import win32security module. Windows ACLs
                            not supported by filesystem at /mnt/sda3/rdiff-backup-data/rdiff-backup.tmp.0
                            escape_dos_devices not required by filesystem at /mnt/sda3/rdiff-backup-data/rdiff-backup.tmp.0
                            -----------------------------------------------------------------
                            Detected abilities for destination (read/write) file system:
                            Ownership changing On
                            Hard linking On
                            fsync() directories On
                            Directory inc permissions On
                            High-bit permissions On
                            Symlink permissions Off
                            Extended filenames On
                            Windows reserved filenames Off
                            Access control lists On
                            Extended attributes On
                            Windows access control lists Off
                            Case sensitivity On
                            Escape DOS devices Off
                            Escape trailing spaces Off
                            Mac OS X style resource forks Off
                            Mac OS X Finder information Off
                            -----------------------------------------------------------------
                            Backup: must_escape_dos_devices = 0
                            Fatal Error: Fatal Error: The file specification
                            '/home'
                            cannot match any files in the base directory
                            '/mnt/sda6'
                            Useful file specifications begin with the base directory or some
                            pattern (such as '**') which matches the base directory.
                            root@Petersen:~# df -h
                            Filesystem Size Used Avail Use% Mounted on
                            /dev/sda6 27G 22G 3.7G 86% /
                            udev 1.6G 12K 1.6G 1% /dev
                            tmpfs 656M 1.1M 655M 1% /run
                            none 5.0M 0 5.0M 0% /run/lock
                            none 1.6G 3.2M 1.6G 1% /run/shm
                            /dev/sr1 700M 700M 0 100% /media/Kubuntu 11.10 i386
                            /dev/sda3 26G 956M 24G 4% /mnt/sda3
                            /dev/sda6 27G 22G 3.7G 86% /mnt/sda6
                            root@Petersen:~#
                            Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

                            Comment


                              #59
                              Well, according to this:
                              root@Petersen:~# df -h
                              Filesystem Size Used Avail Use% Mounted on
                              /dev/sda6 27G 22G 3.7G 86% /
                              You're running from the hard drive, not the liveCD.

                              There seems t be some confusion so let's start over somewhat.

                              First, eject the CD and let your system boot all by itself. Then log in, open a terminal and cut and paste this command.

                              lsb_release -a && mount && df -h

                              Then do this command:

                              sudo update-grub

                              post the results of both commands here.

                              Please Read Me

                              Comment


                                #60
                                Sorry, confusion is what I do best. I should have said, "dug out the live disk, tested it and have it ready if needed."
                                There is a 13.10 installation...somewhere. I got it so messed up it would not boot so re-installed 11.10 and that is what I am now running, have been for months. Silly me, I thought I was overwriting the 13.10...like if I were running windows. When we are done with the refurbishment I would like to either fix 13.10 or re-install it. I prefer it and would like it to be the only install on my system, further freeing HD space.
                                Thanks for your patience, I know my fumbling is making this project take overlong.
                                :
                                granpasmurf@Petersen:~$ lsb_release -a && mount && df -h
                                No LSB modules are available.
                                Distributor ID: Ubuntu
                                Description: Ubuntu 11.10
                                Release: 11.10
                                Codename: oneiric
                                /dev/sda6 on / type ext4 (rw,errors=remount-ro,commit=0)
                                proc on /proc type proc (rw,noexec,nosuid,nodev)
                                sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
                                fusectl on /sys/fs/fuse/connections type fusectl (rw)
                                none on /sys/kernel/debug type debugfs (rw)
                                none on /sys/kernel/security type securityfs (rw)
                                udev on /dev type devtmpfs (rw,mode=0755)
                                devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
                                tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
                                none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
                                none on /run/shm type tmpfs (rw,nosuid,nodev)
                                binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
                                Filesystem Size Used Avail Use% Mounted on
                                /dev/sda6 27G 22G 3.6G 86% /
                                udev 1.6G 8.0K 1.6G 1% /dev
                                tmpfs 656M 1.1M 655M 1% /run
                                none 5.0M 0 5.0M 0% /run/lock
                                none 1.6G 3.2M 1.6G 1% /run/shm
                                granpasmurf@Petersen:~$ sudo update-grub
                                [sudo] password for granpasmurf:
                                Generating grub.cfg ...
                                Found linux image: /boot/vmlinuz-3.0.0-32-generic
                                Found initrd image: /boot/initrd.img-3.0.0-32-generic
                                Found linux image: /boot/vmlinuz-3.0.0-12-generic
                                Found initrd image: /boot/initrd.img-3.0.0-12-generic
                                Found memtest86+ image: /boot/memtest86+.bin
                                Found Ubuntu 11.10 (11.10) on /dev/sda3
                                Found Ubuntu 13.10 (13.10) on /dev/sda5
                                error: syntax error.
                                error: Incorrect command.
                                error: syntax error.
                                error: line no: 295
                                Syntax errors are detected in generated GRUB config file.
                                Ensure that there are no errors in /etc/default/grub
                                and /etc/grub.d/* files or please file a bug report with
                                /boot/grub/grub.cfg.new file attached.
                                done
                                granpasmurf@Petersen:~$
                                Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

                                Comment

                                Working...
                                X