Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Is there a way to expand that last ext4 partition, to takeover that unallocated space, without losing any data that already exist on the ext4 partition?
I can give you a firm and confident answer: Perhaps.
If you are using LVM and have space to extend the volume group, then yes and most likely without downtime.
If you are NOT using LVM, then it is possible. It is likely to will require unmounting the storage for the adjustment.
If you are using native disk, it is safer to back up the file system, blow it away, create the larger replacement, mount it, and restore that backup.
Simple enough with gparted - it's a GUI that allows you to point and click.
Grow the extended first, then grow the logical - gparted will expand the filesystem at the same time. Never used it on a thumb drive though.
Ext4 handles online expansion fine.
What did you try to expand? You must first expand the extended partition (partition 3). Then you can expand partition 5 to use the new space in the extended partition.
With gparted I tried to expand the last ext4 partition (4.3GB), as shown in the screen shot attached. Its the only one that can be expanded to take over the rest of the unallocated space(7.1GB). gparted would not do it.
Partition 5 exists within the extended partition (partition 3) and cannot be extended until you grow the extended partition. In gparted, select the extended partition. You may need to select it from the list rather than the graph, since it's hard to grab the edge of the extended partition if there is no unallocated space within it. You should then be able to resize it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.