I want to expand my / partition, should i reinstall?

Hey there everyone!

I just installed openSUSE 11, and it’s the best distro I’ve ever seen. the problem is, I made the / partition with only 5gb. I would like to expand it to 7 or 8gb, which would be nice to me.

Is there an easy way to do that, or should I reinstall openSUSE?

I had some problems in the past while trying to do that…so if anyone could help me…i would appreciate!

I would use space from the /home partition!

Thanks!

if you installed on LVM in theory it can be resized. if it is a plain FS it might be hard depending on your skills and extra space. If you have 9gb to spare you could theoretically mount that under a /bla and copy / into it and then change the /etc/fstab and grub and stuff. with lvm you can resize if you have extra space when you boot of a rescue cd.

if you are at all insecure about this reinstalling might be the most simple thing to do. for desktops I usually install in one single partition so I will not run out either in / or /home

stefan

Stefan’s advice is good. Although I loke ot have a separate /home partition for the added security/peace of mind.

Resizing the root partition requires that it be unmounted, which you can’t do from inside Suse because you can’t unmount a running root partition. So generally folk use something like Gparted on a cd and boot the cd to do the job.

But I’m with Stefan in that the direct and easy solution for you would be to reinstall.

Thanks for the answers!

Actually that’s what I tried first, to mount a single partition. But when I tried to edit the partition table (when installing) I clicked on remove partition (so I could join both partitions) and it disappeared, instead of showing as a unmounted partition.

So I installed the way openSUSE thought was best =).

Well, I will reinstall everything then!

Thanks again!

I use Parted Magic LiveCd/Liveusb; never failed me yet.

However, anytime you go messing with the partitions; always backup your important stuff.
I copy some important config files to a backup folder in /home, then image the /home partition.

Hope this catches you in time.

stefan1975 schrieb:
> if you installed on LVM in theory it can be resized.

Are there any docs on that? I threw all keyword combinations I could
think of at the openSUSE Wiki search function but never got any relevant
hit - only always the same articles about PPC partitioning, XEN and
MacBooks.

Thanks,
Tilman


Tilman Schmidt t.schmidt@phoenixsoftware.de
Phoenix Software GmbH www.phoenixsoftware.de
Adolf-Hombitzer-Str. 12 Amtsgericht Bonn HRB 2934
53227 Bonn, Germany Geschäftsführer: W. Grießl

well on RHEL i used this tutorial in the past:

redhat.com | Red Hat Support

which worked and should on openSUSE as well.

stefan

stefan1975 schrieb:
> Tilman Schmidt;1824031 Wrote:
>> stefan1975 schrieb:
>> > if you installed on LVM in theory it can be resized.
>>
>> Are there any docs on that? I threw all keyword combinations I could
>> think of at the openSUSE Wiki search function but never got any relevant
>> hit - only always the same articles about PPC partitioning, XEN and
>> MacBooks.
>
> well on RHEL i used this tutorial in the past:
>
> ‘redhat.com | Red Hat Support’
> (http://kbase.redhat.com/faq/FAQ_96_4842.shtm)
>
> which worked and should on openSUSE as well.

Great. That document and the ones it links to answered all my questions.
(Including whether I could shrink one partition in order to give more
space to another one - sadly, the answer is: no.)

Thanks,
Tilman


Tilman Schmidt t.schmidt@phoenixsoftware.de
Phoenix Software GmbH www.phoenixsoftware.de
Adolf-Hombitzer-Str. 12 Amtsgericht Bonn HRB 2934
53227 Bonn, Germany Geschäftsführer: W. Grießl

Great. That document and the ones it links to answered all my questions.
(Including whether I could shrink one partition in order to give more
space to another one - sadly, the answer is: no.)

Have to disagree - I’m sure I did this on Suse 9.1, but that was some time (years) ago and you had to use the command line, ie was not possible via yast or any gui. My system is still running fine and has even survived distro updates. I don’t yet know if the old posts really are available here, but check the old postings on forums.suselinuxsupport.de if not.
At that time (Suse 9.1) LVM documentation from Suse really sucked, but LVM is a great (if underused) linux feature.

I also had no problems re-partitioning, however if you’ve only just started, maybe easier just to reinstall. Advice to back up everything you value cannot be recommended too strongly if you want to play with partitions.

enjoy!

Is next to trivial.

Besides the Parted Live mentioned earlier, perhaps better (and no worse) is the gparted live cd.

Easy to use, only time it’s caused a corruption for me was a very stupid mistake (installed updates which required a reboot, then tried to re-size before executing that reboot to complete the install)

GParted – LiveCD

al1ster schrieb:
>> Great. That document and the ones it links to answered all my
>> questions.
>> (Including whether I could shrink one partition in order to give more
>> space to another one - sadly, the answer is: no.)
>> Have to disagree - I’m sure I did this on Suse 9.1, …]

Good to hear. The RHEL FAQ said that LVM could resize partitions both
ways but ext3 filesystems could not be shrunk. But I see now that the
GParted feature table does claim action “Shrink” as supported on ext3.

> I also had no problems re-partitioning, however if you’ve only just
> started, maybe easier just to reinstall.

Not quite. :slight_smile: The system has been in regular use for half a year, and
now my partition for VirtualBox images turns out to be way too small,
while the one with the Samba shares is still half empty. As each one
of these has a two-digit number of gigs of data in it already, I’d
like to avoid having to restore either of them from tape if I possible.

> Advice to back up everything
> you value cannot be recommended too strongly if you want to play with
> partitions.

I have a tendency to back up data I value even if I don’t play with
partitions. Call me paranoid. :slight_smile:

Thanks,
Tilman


Tilman Schmidt t.schmidt@phoenixsoftware.de
Phoenix Software GmbH www.phoenixsoftware.de
Adolf-Hombitzer-Str. 12 Amtsgericht Bonn HRB 2934
53227 Bonn, Germany Geschäftsführer: W. Grießl