Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Expanding disk size

  1. #1

    Default Expanding disk size

    Can I expand my home partition size using Gparted or any other tool? My 10 GB partition for opensuse is almost full. I have another 10 GB ext3 partition which is not used. Can I merge this partition with my home partition?

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: Expanding disk size

    Yes. or maybe No
    But you better post
    Code:
    fdisk -l
    just so we can check your setup.
    It will depend on your partition layout.

    If it is possible, you will have to edit /etc/fstab too.

    Lets see what you have first. Wait around if I'm not about, someone else may reply too. I have to logout soon.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3

    Default Re: Expanding disk size

    fdisk -l

    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xf0000000

    Device Boot Start End Blocks Id System
    /dev/sda1 1 14 112423+ 6 FAT16
    /dev/sda2 15 1320 10485760 7 HPFS/NTFS
    /dev/sda3 1320 6419 40960000 7 HPFS/NTFS
    /dev/sda4 * 6419 30402 192638976 f W95 Ext'd (LBA)
    /dev/sda5 6419 11519 40960000 7 HPFS/NTFS
    /dev/sda6 11519 15343 30720000 7 HPFS/NTFS
    /dev/sda7 15343 21717 51200000 7 HPFS/NTFS
    /dev/sda8 21718 27852 49274880 7 HPFS/NTFS
    /dev/sda9 27853 29132 10281568+ 83 Linux
    /dev/sda10 29133 30401 10193211 83 Linux
    sda10 is my opensuse partition and the unused one is sda9

  4. #4
    Join Date
    Nov 2008
    Location
    N. Wales
    Posts
    1,028

    Default Re: Expanding disk size

    sarin cv adjusted his/her AFDB on Wednesday 10 Jun 2009 07:16 to write:

    >
    > fdisk -l
    >
    > Disk /dev/sda: 250.0 GB, 250059350016 bytes
    > 255 heads, 63 sectors/track, 30401 cylinders
    > Units = cylinders of 16065 * 512 = 8225280 bytes
    > Disk identifier: 0xf0000000
    >
    > Device Boot Start End Blocks Id System
    > /dev/sda1 1 14 112423+ 6 FAT16
    > /dev/sda2 15 1320 10485760 7 HPFS/NTFS
    > /dev/sda3 1320 6419 40960000 7 HPFS/NTFS
    > /dev/sda4 * 6419 30402 192638976 f W95 Ext'd (LBA)
    > /dev/sda5 6419 11519 40960000 7 HPFS/NTFS
    > /dev/sda6 11519 15343 30720000 7 HPFS/NTFS
    > /dev/sda7 15343 21717 51200000 7 HPFS/NTFS
    > /dev/sda8 21718 27852 49274880 7 HPFS/NTFS
    > /dev/sda9 27853 29132 10281568+ 83 Linux
    > /dev/sda10 29133 30401 10193211 83 Linux
    >
    > sda10 is my opensuse partition and the unused one is sda9
    >
    >


    One of the easiest ways is to just mount the extra drive inside you home dir
    as a directory and use that as extra storage.

    Don`t forget in linux disks are just treated as a directory.

    all you have to do is make a dir in home named whatever you want and then
    use YaST to mount your disk to that dir with user r/w perms on boot.


    But looking at you setup it might be easier to just copy your home over to
    the new drive and use that solely as your home leaving the old drive for /.

    This is done by mounting the new drive to a temp mount point like /mnt then
    copying all of the old /home/* over, use Yast partitioning to then tell it
    to be mounted as /home on boot if all goes well and it mounts OK you can
    then as root umount the new drive delete the contents or the old /home then
    remount the new drive this will free up the old space.

    Note, you do not copy the /home just the contents like your account and any
    others in there, and in YaST designate the whole drive as /home.

    HTH

    --
    Mark

    Nullus in verba
    Nil illegitimi carborundum

  5. #5
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: Expanding disk size

    @baskitcaise
    Has already made a good suggestion.

    I can tell you it can be done. And my preference would be to dd my /home to sda9 and then delete sda 10 and expand 9.
    It's a bit fiddly and some edit in fstab required but quite easy really.

    As suggested you could just create a folder in /home
    eg: /home/your_username/home2
    And mount sda9 there in fstab
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,844
    Blog Entries
    14

    Default Re: Expanding disk size

    Here's another option + why:
    (Replace ExtraSpace by whatever you want, Documents idem. I just guess the Documents folder is growing fastest, the idea is to virtually keep things where they are)
    Leave partitions as they are.
    Mount /dev/sda9 in /mnt/ExtraSpace
    Create a folder /mnt/ExtraSpace/"YourUserName"
    Move Documents folder to /mnt/ExtraSpace/"YourUserName"
    Make a symbolic link in your home to /mnt/ExtraSpace/Documents: ln -s /mnt/ExtraSpace/Documents ~/Documents
    Now your homedir looks the same, yet the Documents folder is on the /dev/sda9 partition

    Advantage is that the partition is not mounted somewhere in your homedir, allowing it to be accessed by other users.
    Disadvantage is, that you'd have to do that for all users except root.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7

    Default Re: Expanding disk size

    thanks u for ur suggestions.... I will defenitely try one of them... what I meant was to merge the two partition so that I can take backups easily...

  8. #8

    Default Re: Expanding disk size

    and I have an idea in my mind... anyways I can merge two partitions using Gparted... so I can merge sda10(suse partition) to sda9.. so there will be only sda9 now...and allocate the free space to /home then change the fstab and menu.lst accordingly... will this work???

    I prefer to have only one partition so that It can be better managed...

  9. #9
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: Expanding disk size

    I would backup anything important first. Always a good idea.

    Boot Parted Magic or similar and try deleting sda9
    Focus over to sda10 and see how it feels about taking up the now free space.

    You pretty much have to do it yourself as we can't. Some good advice and ideas have been made.
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  10. #10

    Default Re: Expanding disk size

    Quote Originally Posted by sarin_cv View Post
    ...what I meant was to merge the two partition so that I can take backups easily...
    It doesn't/shouldn't make backups any harder having two parttions...maybe its fractionally neater, but, in other respects, you don't see it unless you look in fstab/mtab.

    If you have one directory that is growing wildly (say, AV files, downloads or something) it is a very easy solution, or you have some users that you can put on one disk and some on the other.

    As this all appears under /home, you back up home and get all of it, unless you are doing something really peculiar.

Page 1 of 2 12 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
  •