Announcement

Collapse
No announcement yet.

How to make more room for Kubuntu?

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

    How to make more room for Kubuntu?

    On my main computer I'm currently dual booting Win7 and Kubuntu 11.04. On one of the hard drives Win7 and Kubuntu both share the drive.

    When I first set up this drive, I gave Win7 a majority of the space, and Kubuntu only 40GB because I was just testing it out.

    However I love using Linux, and want to make the Kubuntu side bigger, so I don't have to store all of my /home files somewhere else.

    Here's the current setup of the drive.

    100MB - Win7 System
    207GB - Windows 7
    4GB - Linux Swap
    43GB - Kubuntu 11.04
    341 GB - Multimedia (NTFS)

    My thought was to move everything from the Multimedia partition to one of the two 1TB drive's I also have in the computer. Then I would like to somehow let Kubuntu have all of that 341 GB.

    Is this possible? Is this something that Gparted can do, just delete that partition and expand the Kubuntu partition?

    Would it be easier to just reinstall 11.04 on one of the TB drives?

    #2
    Re: How to make more room for Kubuntu?

    From within Kubuntu, open a console and type:
    Code:
    sudo fdisk -l
    Copy and paste the output in your reply. This will enable us to provide you with a qualified answer to your question.
    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: How to make more room for Kubuntu?

      Disk /dev/sda: 640.1 GB, 640135028736 bytes
      255 heads, 63 sectors/track, 77825 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk identifier: 0xc1b24c24

      Device Boot Start End Blocks Id System
      /dev/sda1 * 1 13 102400 7 HPFS/NTFS
      Partition 1 does not end on cylinder boundary.
      /dev/sda2 13 27095 217532271 7 HPFS/NTFS
      /dev/sda3 27095 33207 49094657 5 Extended
      /dev/sda4 33207 77826 358397952 7 HPFS/NTFS
      Partition 4 does not end on cylinder boundary.
      /dev/sda5 27095 27581 3906560 82 Linux swap / Solaris
      /dev/sda6 27581 33207 45187072 83 Linux

      Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
      255 heads, 63 sectors/track, 121601 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk identifier: 0xf5e5f5e5

      Device Boot Start End Blocks Id System
      /dev/sdb1 1 121602 976759808 7 HPFS/NTFS

      Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
      255 heads, 42 sectors/track, 182401 cylinders
      Units = cylinders of 10710 * 512 = 5483520 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk identifier: 0x000000aa

      Device Boot Start End Blocks Id System
      /dev/sdc1 1 182402 976759808 7 HPFS/NTFS

      Comment


        #4
        Re: How to make more room for Kubuntu?

        I've done this with KDE Partition Manager many times and never had any problems. It can be a lengthy process but it's worth it to give your Kubu some room to breathe.
        Home: Kubuntu 12.04-amd64; Intel i7-860 on Intel DH55PJ; Nvidia 9500GT; 6GB RAM
        Network Slave: Xubuntu 11.10-x86; Intel P4-Prescott on MSI; 2GB RAM; Nvidia FX5200
        Portable: Xubuntu 11.10-amd64; Asus EeePC 1015PEM

        Comment


          #5
          Re: How to make more room for Kubuntu?

          Here's what I would do to get done what you've requested:

          1) Boot to a liveCD or USB device and run the partition manager.
          2) Move your media (stuff on /dev/sda4) to one of the other drives.
          3) Backup anything you have on your Kubuntu install to one of the other drives.
          4) With the partition manager:
          a) Delete /dev/sda4 and /dev/sda5.
          b) Create a new swap partition at the beginning of the available free space.
          c) Move and expand the linux install partition to fill all the space remaining.
          5) Edit the /etc/fstab file in your install to reflect the new swap partition's UUID.

          NOTE: Sometimes for whatever reasons, parted (the tool that does most of step 4) will not re-order the partitions during a delete-create session correctly. If your partitions are not in order when you exit the partition manager; open a terminal and run sudo fdisk /dev/sda and enter the commands x f w before you quit the livecd session and reboot.

          The reason for deleting the swap and re-making it is it's much faster than trying to move what is essentially an empty partition.

          MY SUGGESTIONS:

          Rather than do the above, I would take this opportunity to create a separate /home partition for your install. There are a dozen good reasons to do this - one of which is why you're going through all this now.

          If this were my system, I would:

          Steps 1 and 2 as above.
          3) Move everything you have on your Kubuntu install under /home to one of the other drives.
          4) With the partition manager:
          a) Delete /dev/sda4 and /dev/sda5.
          b) Create a new swap partition at the beginning of the available free space.
          c) Move the linux install partition to the beginning of the free space and shrink it to 20GB.
          d) Create a new partition for /home to fill all the space remaining.
          5) Edit the /etc/fstab file in your install to reflect:
          a) The new swap partition's UUID.
          b) Add an entry to mount your new /home partition at boot.
          6) Move the /home files into your new /home partition.

          NOTE: When you move the files to and from /home, be sure you preserve ownership and permissions. The note from above regarding partition numbering still applies.

          Please Read Me

          Comment


            #6
            Re: How to make more room for Kubuntu?

            I keep Gparted on a live USB, just for operations such as this. In fact, I just used it this morning to make a new partition to install Linux Mint. To me this is the easiest way to go.

            Comment


              #7
              Re: How to make more room for Kubuntu?

              oshunluvr - Thanks for the how to! Step #2 in progress, got an hour to go until it's copied.

              Comment


                #8
                Re: How to make more room for Kubuntu?

                Good Luck! - I'll check back in an hour or so if you have any issues...

                Please Read Me

                Comment


                  #9
                  Re: How to make more room for Kubuntu?

                  OK, Got most of it completed.

                  Couldn't shrink the linux partition to 20GB because there was already 25GB of stuff. So I left it and created the new partition with the rest of the space and gave it the /home label.

                  Rebooted, got the grub rescue prompt, and realized that I forgot to edit the /etc/fstab file.

                  Going to go back in and do that.

                  Need to dig out the kubuntu cd so I can access the system as a live CD. Can't remember all the commands to do it from the command line in Gparted.

                  Comment


                    #10
                    Re: How to make more room for Kubuntu?

                    25gb without /home? Wow - you've got a lot of stuff installed!

                    Please Read Me

                    Comment


                      #11
                      Re: How to make more room for Kubuntu?

                      When I first installed it, I had a lot of fun raiding the repos. I figured with my fast internet connection, just grab it all and see what happens.

                      Since I've got everything backed up anyway, would this be a good time to just frag it and install the 64 bit instead?

                      Comment


                        #12
                        Re: How to make more room for Kubuntu?

                        Teunis - Thanks for the info, it's settled, I'll upgrade to 64-bit. I'm running a dual core with 4GB RAM anyway, might as well take advantage of all 4 GB of ram.

                        OS- thanks again for going step by step on how to move the partitions around. Again the things you can do in the linux world that you can't do in windows is amazing!

                        Update - Now running 64-bit, and it seems that this computer is more responsive than when it was running 32-bit.

                        Comment


                          #13
                          Re: How to make more room for Kubuntu?

                          I made the switch to Kubuntu from PCLinuxOS because they had no plans to go 64 bit.

                          I have a Quad-core and do a bit of video encoding and it's at least 4 times faster than 32 bit - I highly recommend it! 8)

                          Please Read Me

                          Comment


                            #14
                            Re: How to make more room for Kubuntu?

                            I did what you are proposing on a home computer last month.

                            I moved put all my multimedia files onto a networked external drive NAS for around $150 (like the 2 Tb WD My Book Ethernet version (Live Home Network Drive), or the Buffalo LinkStation, or the Seagate GoFlex Home Network Storage version), so it could easily be accessed by any computer on the LAN (since we have a mix of OS's on many family computers in the house).

                            After confirming a successful copy to the external drive, I used GParted from the Ubuntu Natty LiveCD (or KDE Partition Manager from the Kubuntu Natty Live CD) to delete the multimedia partition on the computer's hard drive, and then merely expanded the Kubuntu partition to fill the resulting free space. That's it!

                            My hard drives are each 500 Gb to 1 Tb, so it took some time (about 2-3 hours), but it was painless.

                            I've never used more than 100 Gb on any Linux distro, even with video editing (which I also do a lot of). I can't fathom needing 341 Gb for a Linux distro, but, of course, it's the temp files for apps that takes up space. Still, I like having all my OS's on a single hard drive and all my data files on separate (for me external) drives. It makes things a bit more portable that way. More than once I've had to relocate my data files from one physical location to another, and it's just easier to move a data hard drive than an entire computer.

                            UbuntuGuide/KubuntuGuide

                            Right now the killer is being surrounded by a web of deduction, forensic science,
                            and the latest in technology such as two-way radios and e-mail.

                            Comment


                              #15
                              Re: How to make more room for Kubuntu?

                              If you ever get into a situation where there just physically is not enough room on a drive, you can recover several Gigs doing this, and it works well for flash media or SSD's and the OS runs FASTER on those kinds of devices by doing this:

                              http://po-ru.com/diary/linux-liposuc...on-the-eee-pc/

                              I currently don't want to wear out the drive on a computer I use as a server (an Asus EEE-BOX), and have a Western Digital external drive that has built in power saving features where all of my shares are.

                              No drives are running when the machine is idle and no shares are being accessed via Samba.

                              Kubuntu is on an 8GB SD card . It was using about 6.5 GB of that space.
                              inserted into the machines slot.

                              When /usr is compressed, it is using 3.5 GB. I have a ton of apps installed because I am using the EEE-BOX as a media center.

                              I also used the logic to squash my .wine folder in my home directory.

                              Of course, if you were to do a full system upgrade, well, those upgraded packages take up full package space rather then overwrite the old packages, so there is the trade-off.

                              Comment

                              Working...
                              X