Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
So I recently installed Ubuntu on a blank 250GB HD.. When I was doing the partitions I separated the / and /home and /bin etc Ultimately I gave 30GB to ...
  1. #1
    Just Joined! markious's Avatar
    Join Date
    Apr 2010
    Posts
    22

    [SOLVED] Expanding /home partition

    So I recently installed Ubuntu on a blank 250GB HD..

    When I was doing the partitions I separated the / and /home and /bin etc

    Ultimately I gave 30GB to my /home.


    However I kind of need a bit more space now.

    There is still a lot of empty space on my HD and I want to know is it possible to increase the size of my /home by about 20 GB?


    Cheers

    Mark

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Its really easy to resize partitions but we have to check partition structure of your Hard disk first.
    Execute this in Terminal :
    Code:
    sudo fdisk -l
    df -h
    Post output here.

    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    The Parted Magic LiveCD usually makes easy work of managing partitions so you might want to give it a try. I think the Ubuntu liveCD has gparted on it as well, which should work.
    Last edited by oz; 05-02-2010 at 03:41 PM.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  4. #4
    Just Joined! markious's Avatar
    Join Date
    Apr 2010
    Posts
    22
    Ok I did that
    #

    ##output##

    Code:
    mark@mark-laptop:~$ sudo fdisk -l
    [sudo] password for mark: 
    
    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 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: 0x000df18f
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        1338    10740736   83  Linux
    /dev/sda2            1338        5581    34085889    5  Extended
    /dev/sda5            1338        5095    30179328   83  Linux
    /dev/sda6            5095        5399     2440192   82  Linux swap / Solaris
    /dev/sda7            5399        5581     1464320   83  Linux
    
    mark@mark-laptop:~$ df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              11G  3.9G  5.8G  41% /
    none                  620M  304K  620M   1% /dev
    none                  624M  752K  623M   1% /dev/shm
    none                  624M  100K  624M   1% /var/run
    none                  624M     0  624M   0% /var/lock
    none                  624M     0  624M   0% /lib/init/rw
    /dev/sda5              29G  2.1G   25G   8% /home
    /dev/sda7             1.4G   50M  1.3G   4% /boot

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    There is a lot of free space but problem is, there are 2 partitions between /home and free space.

    Boot up from Ubuntu LiveCD. It has Disk Utility in System - Administration menu. ( You can use PartedMagic LiveCD too. Disk Utility of Ubuntu and PartedMagic are based on same package, parted. )


    1. Increase the size of /dev/sda7 (/boot) partition to 20GB by sliding its Right side handle. Hit Apply button.
    2. Shrink sda7 partition to 200MB by moving its Left slider. This will create a free space between sda6 (swap) and sda7 partition.
    3. Resize sda6 to use free space.
    4. Shrink sda6 by moving its left slider to create free space between sda5 (/home) and sda6.
    5. Resize sda5 to use all the free space between sda5 and sda6.

    You have create 1GB /boot (/dev/sda7) partition but 120MB for /boot is more than enough. Resize it to 200MB to be on safer side ( in case you want to keep a lot of old kernels in /boot).
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined! markious's Avatar
    Join Date
    Apr 2010
    Posts
    22
    Quote Originally Posted by devils casper View Post
    There is a lot of free space but problem is, there are 2 partitions between /home and free space.
    There's not really tat much space, as I have to import a lot of music .

    Quote Originally Posted by devils casper View Post
    Boot up from Ubuntu LiveCD. It has Disk Utility in System - Administration menu.
    Do I need to use the Ubuntu Live CD? As there is Disk Utility already on my System when I boot in normally?


    Quote Originally Posted by devils casper View Post
    1. Increase the size of /dev/sda7 (/boot) partition to 20GB by sliding its Right side handle. Hit Apply button.
    2. Shrink sda7 partition to 200MB by moving its Left slider. This will create a free space between sda6 (swap) and sda7 partition.
    3. Resize sda6 to use free space.
    4. Shrink sda6 by moving its left slider to create free space between sda5 (/home) and sda6.
    5. Resize sda5 to use all the free space between sda5 and sda6.

    You have create 1GB /boot (/dev/sda7) partition but 120MB for /boot is more than enough. Resize it to 200MB to be on safer side ( in case you want to keep a lot of old kernels in /boot).

    Thanks Ill do this now in a minute

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You can resize mounted partitions. You have to boot up from LiveCD only. If you don't have Ubuntu LiveCD, download PartedMagic LiveCD or USB.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined! markious's Avatar
    Join Date
    Apr 2010
    Posts
    22
    Quote Originally Posted by devils casper View Post
    You can resize mounted partitions. You have to boot up from LiveCD only. If you don't have Ubuntu LiveCD, download PartedMagic LiveCD or USB.
    Cheers mate will do that now

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Alright ! Do let us know how it goes. Good luck !
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined! markious's Avatar
    Join Date
    Apr 2010
    Posts
    22
    Having a slight problem with this.

    When I boot up using my Ubuntu Live CD and go into Disk Utility It will not let me increase the size of the /boot partition (I cannot slide it to the right).

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...