LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-12-2010, 07:39 PM   #1
tony128
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
Need to resize sda1 but sda2 & sda3 is between sda1 and unallocated space.


sda1 = root, sda2 = boot, sd3 = swap.
 
Old 09-12-2010, 07:40 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
So do it.

See link in sig.
 
Old 09-12-2010, 08:42 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
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.
 
Old 09-12-2010, 09:13 PM   #4
lostzinzthought
Member
 
Registered: Sep 2010
Location: USA
Distribution: Slackware13.1
Posts: 47

Rep: Reputation: 4
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.
 
Old 09-12-2010, 11:22 PM   #5
tony128
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
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?
 
Old 09-12-2010, 11:31 PM   #6
tony128
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lostzinzthought View Post
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.
 
Old 09-13-2010, 12:15 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dev SDA1 causes low disk space lauraross Debian 22 06-30-2010 03:47 AM
Use fdisk to make sda2 sda1 mpmackenna Linux - General 1 01-25-2010 08:18 PM
dd'd $Wi%$&*@ws onto sda1 from hda1, how make it bootable? lugoteehalt Debian 13 04-22-2008 08:01 AM
sda1 to sda2 mount varun_saa Mandriva 8 02-22-2007 01:25 PM
How do I switch the labels "/dev/sda1" with "/dev/sda3" vonst Linux - General 10 05-27-2006 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration