[SOLVED] Is it straight forward to expand a partition
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Hi! I have a hard drive with two partitions. I want to remove one of the partitions and expand the other one to the fullest. Which program do I need and do I need to backup my data first before doing this? Thx folks!
I remembered it was a program that had parted in it's name like gparted and parted. I had to ask to be sure. I hate backing up because it just takes extra time, but it must be done just in case something goes wrong.
GParted has an online manual (link below) in case you want more details or run into problems. Also, as suggested, put GParted on a CD or flash drive as you can't modify a mounted system. Anytime you are modifying partitions, you should back up any data you care about.
GParted has an online manual (link below) in case you want more details or run into problems. Also, as suggested, put GParted on a CD or flash drive as you can't modify a mounted system. Anytime you are modifying partitions, you should back up any data you care about.
Quote:
Originally Posted by jefro
Almost all partition programs need to run on an unmounted partition.
Expansion is pretty safe and unlikely to cause problems. It's shrinking a partition and its filesystem that is the far more complex operation (a lot of data has to be moved). It's still advisable to have a good backup, though, just in case the expansion operation runs into some unforseen problem (faulty disk, system crash, etc.).
Expansion is pretty safe and unlikely to cause problems. It's shrinking a partition and its filesystem that is the far more complex operation (a lot of data has to be moved). It's still advisable to have a good backup, though, just in case the expansion operation runs into some unforseen problem (faulty disk, system crash, etc.).
Gotcha! I will do that backup even though I hate to. :-]
I posted link to way that you didn't need to boot live.
I must have missed that line in your post. I was skimming quickly on all the posts. I just read your post again and yes, you did indeed mention the resizing of a mounted partition. I just have to decide which method to use, the gparted method or the method from your link. :-]
Note as the link in Jefro's reply says that enlarging the partition and enlarging the filesystem on the remaining partition require different utilities. Fdisk, gdisk and gparted only change the partition's size. Which utility is required to expand the filesystem depends on the filesystem type. e.g., resize2fs works for EXTx.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.