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?

Yes. or maybe No
But you better post

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.

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

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

@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

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.

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…

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…

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.

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.

the problem is I have only 2GB left in the sda10 partition… I use the ntfs partitions for other things such as downloads & AVs…this ext3 is a dedicated linux partition… Does the kde updations cost much disk space? Is der anything I can delete to free up space?

Is der anything I can delete to free up space?
Ask a question like that in a Linux forum and expect some radical but logical suggestions!

How on earth do we know what you can delete. Try setting this up
Clear Temp Files at Boot - openSUSE Forums

reboot

you may gain a little.

i did as one of u suggested… i copied my home directory(using rsync -avz) to the other partition and mounted it as /home …

:slight_smile: I had set up the max days in temp variable already… I meant is there anything like this tmp directory which I can delete… like some old installation files, old kde version folders…etc…I don’t know where these files get stored…so just asked…