Need to resize sda1 but sda2 & sda3 is between sda1 and unallocated space.
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.
Copy the files from your boot partition (sda2) to a CD or USB stick. Delete sda2 and sda3, resize sda1 and create new partitions. You will need to re-install Grub after creating a new boot partition if you feel the need for a separate boot partition and have the files copied back to that partition.
I'm not clear on why exactly this is a problem.
If you're using gparted or something similar, you should be able to do all if this with a few mouse clicks.
If you're trying to use command line tools, then it's a bit more difficult, and I'm not entirely comfortable giving advice on that, because I usually boot a live CD and use Gparted if I need to move or resize partitions.
Copy the files from your boot partition (sda2) to a CD or USB stick. Delete sda2 and sda3, resize sda1 and create new partitions. You will need to re-install Grub after creating a new boot partition if you feel the need for a separate boot partition and have the files copied back to that partition.
Ok I will try that when I get home. I have never had to manually install Grub so how would I do that?
I'm not clear on why exactly this is a problem.
If you're using gparted or something similar, you should be able to do all if this with a few mouse clicks.
I am using gparted but sda2 & sda3 are in the way stopping me from extending the size of sda1. I had a 160Gb drive then used dd to 500Gb drive and the result is sda1 , sda2 ,sda3 then the rest of the drive as unallocated. I want sda1 to include the unallocated partition aswell.
So why wasn't that info in the original post ?.
Go and read that link on how to ask a question.
Let's see a screenshot of gparted, or the output of "fdisk -l" from a terminal. Your profile doesn't include your distro (hint), so I can't be sure, but you may need root or sudo for that to produce anything.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.