LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need to resize sda1 but sda2 & sda3 is between sda1 and unallocated space. (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-resize-sda1-but-sda2-and-sda3-is-between-sda1-and-unallocated-space-831778/)

tony128 09-12-2010 07:39 PM

Need to resize sda1 but sda2 & sda3 is between sda1 and unallocated space.
 
sda1 = root, sda2 = boot, sd3 = swap.

AlucardZero 09-12-2010 07:40 PM

So do it.

See link in sig.

yancek 09-12-2010 08:42 PM

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.

lostzinzthought 09-12-2010 09:13 PM

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.

tony128 09-12-2010 11:22 PM

Quote:

Originally Posted by yancek (Post 4095599)
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?

tony128 09-12-2010 11:31 PM

Quote:

Originally Posted by lostzinzthought (Post 4095620)
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.

syg00 09-13-2010 12:15 AM

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.


All times are GMT -5. The time now is 04:26 PM.