Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running OpenSuse 11.3 in a virtual machine (Parallels for MAC Tiger). I initially used the default disk space of 8GB, but now I needed more space so I expanded it to 20GB, but in Linux, the partitions (2 in total) still have the same size. How can I expand them to get to use the new space I allocated?
The configuration below was originally automatically set by the system
4GB /dev/sda2 mounted on /
2.2GB /dev/sd3 mounted on /home
You probably resized the partition, but not the fs inside of it. To resize ext2/3 fs's you can use the resize2fs tool. Not much idea about the rest of fs's.
Please don't use all these commands as described above. There is a simple way to extend your disk and it's called qparted. Look for it on internet. There are several bootable CD's available containing a minimal linux distribution and this program. You simply boot from CD and start qparted. Qparted will detect your harddisk and it's structure. select the partition and extend the size.
Please don't use all these commands as described above. There is a simple way to extend your disk and it's called qparted. Look for it on internet. There are several bootable CD's available containing a minimal linux distribution and this program. You simply boot from CD and start qparted. Qparted will detect your harddisk and it's structure. select the partition and extend the size.
I don't advise using QParted. In my humble opinion it is the quickest way to send your partitions to hell. It happened to me in the past, and the latest QParted release is many years old. No bugfixes ever happens in QParted, and the last version is based in qt 3.3.x.
So, please, don't disregard the usage of well tested tools that have been working for far longer than a decade in favour of tools that have (at most) alpha-quality like QParted.
If you want to use a GUI I suggest using GParted instead. At least, it's being actively developed and bug-fixed regularly.
You probably resized the partition, but not the fs inside of it. To resize ext2/3 fs's you can use the resize2fs tool. Not much idea about the rest of fs's.
I tried resize2fs /dev/sda2 1500000, so it told me "The containing partition or device is only 1311232 (4k) blocks. You requested a size of 1500000", so i tried
resize2fs /dev/sda2 1311232
it claims that it had expanded it "The file system on /dev/sda2 is now 1311232 long", but when I fdisk -l, i still see the same original size. I tried reboot, but still the same thing.
I am considering a reinstall since the system is new, but i would still like to know how it is done because i am sure i will need it in the future.
same thing. it pretends it works, but nothing happens. first i tried your suggestion alone, rebooted, then tried it again and the resize command after. is it possible it is not saving because it is a VM?
sadly i did not have any problems installing opensuse on a VM, but i get all kinds of errors when i try to install it on other machines. i tried 3 different machines with different types and powers CPUs
I admit I don't use Suse myself prefer redhat / centos or crunchbang
I don't think this is what I need. I have acronis, but I am working in a virtual machine. The partition has been allocated, the problem is getting Linux to use it.
I always wanted to use redhat, but back then when it was free I chose to use slackware because it came with a book that I bought
Now I like openSuse because the installation looks very professional and starts up in a high resolution without having to try and figure things out. Also the fact that is sponsored by Novell makes me feel comfortable that it works well. I tried Ubuntu, but i didn't like it that much.
I tried resize2fs /dev/sda2 1500000, so it told me "The containing partition or device is only 1311232 (4k) blocks. You requested a size of 1500000", so i tried
resize2fs /dev/sda2 1311232
it claims that it had expanded it "The file system on /dev/sda2 is now 1311232 long", but when I fdisk -l, i still see the same original size. I tried reboot, but still the same thing.
We have to separate two things here. Fdisk only sees partitions, it's fs-agnostic. So it will just list the partitions that are listed in an MBR-based partition table, and nothing else. It can list the fs-type for many fs's, but that's about it. It doesn't properly see the fs inside a given partition it just reads a byte (a number) and let us know that number in a human readable format (fs type).
You have to look at the fdisk -l output carefully to know whether the partitions are there and whether there's free space. You have to look at the bound of partitions. If there's no free space then you will have to make it using parted or one of its GUIs first. All in all, if you truly need to resize partitions and move them around I'd first backup and use GParted (there's a livecd on their site if you don't have any).
If you can't understand the fdisk -l output just post it here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.