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.
I shrunk down one partition on an external drive and now I want to extend another; I'm in GParted, I've formatted partitions sdb1 and sdb3 to ext4 format, but when I try and extend sdb1 it doesn't give me the ability to do that.
A screenshot's attached; is there anything that anyone can see or think of that'd be obvious to most that I'm clearly missing here? Any assistance is appreciated, thanks!
there still seems to be /dev/sdb2, an NTFS (=Windows) partition, which is also still mounted.
If you are 300 percent sure you don't need that anymore, then you can unmount it and delete it - only after that can you expand one of the other partitions.
But, like gparted is also telling you, this is not a trivial thing to do, there's no guarantee that you don't lose data if there's e.g. a power outage, so you should have a backup, and it takes a long time.
Also it might be advisable to reboot after completing such an operation - and, if one of the altered partitions contains your system boot stuff, there's even a chance that your system won't boot; but that's only a small, solvable annoyance.
/dev/sdb1 can not be extended because there's no room to extend to.
208.66 + 68.39 + 188.71 = 465.76 That's the total size of the hard drive.
I should be more clear; how might i 'combine' the two non-NTFS partitions to become one large partition? That's what i meant by extend, wrong verbiage....
there still seems to be /dev/sdb2, an NTFS (=Windows) partition, which is also still mounted.
If you are 300 percent sure you don't need that anymore, then you can unmount it and delete it - only after that can you expand one of the other partitions.
But, like gparted is also telling you, this is not a trivial thing to do, there's no guarantee that you don't lose data if there's e.g. a power outage, so you should have a backup, and it takes a long time.
Also it might be advisable to reboot after completing such an operation - and, if one of the altered partitions contains your system boot stuff, there's even a chance that your system won't boot; but that's only a small, solvable annoyance.
This is an external drive, so no worries about the laptop not booting. The NTFS partition has a Win10 build for Virtualbox; i suppose i could move it, format the whole drive, and start again, but i figured I'd see if i could combine the ext4's into one without doing that.
Combining partitions is near impossible. You could theoretically use software to effectively mount them at the same spot, but that wouldn't be worth it IMHO.
I should be more clear; how might i 'combine' the two non-NTFS partitions to become one large partition? That's what i meant by extend, wrong verbiage....
You can't combine them when there's a third partition splitting them down the middle.
You could delete the second one, move the NTFS partition to the end of the drive, then expand the first one to fill the available space, but it would take a very long time and would be very risky. You'd be better off just backing up and reinstalling/repartitioning from scratch.
I should be more clear; how might i 'combine' the two non-NTFS partitions to become one large partition? That's what i meant by extend, wrong verbiage....
What I would do (by no means the only option):
Copy everything from the NTFS partition to a separate disk.
Mount both ext4 partitions, copy the files from sdb3 to sdb1
Unmount all three, then delete sdb2 and sdb3
Extend sdb1 as big as you want it
Create a new NTFS at the end and copy the files back.
I think it would be better to copy all relevant data to an external disk.
Then delete all partitions on the mentioned disk. Create the new ones.
Copy all data back.
I think it would be better to copy all relevant data to an external disk.
Then delete all partitions on the mentioned disk. Create the new ones.
Copy all data back.
Yeah, that's what i ended up doing. It's a fine line between clever and stupid, figured I'd just do the easy thing and learn better for next time
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.