LinuxQuestions.org
Visit Jeremy's Blog.
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 12-25-2007, 09:17 PM   #1
pa1000
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
need help partitioning


I want to install linux on sda2 but gparted will not allow me to make enough partitions for a /boot / and swap and I don't want to try to install without a swap partition. I have vista installed on sda3 and sda4 is full of data I don't want to delete as well.


here is what my partitions look like before attempting anything

http://i205.photobucket.com/albums/b...da-GParted.png



next I create an ext3 or ext2 partition of around 30gb and then attempt to create a swap partition. here is what I get


http://i205.photobucket.com/albums/b...Screenshot.png



okay however when I try to delete the primary partition and create an extended partition gparted will only allow me to create a primary partition, not a logical or extended partition


http://i205.photobucket.com/albums/b...wPartition.png




anyone know what I should do?
 
Old 12-25-2007, 09:36 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need to redefine your partitions so that the extended partition encompasses sda3, sda5 & sda6. They will be called sda5, sda6 & sda7 when you are done. You definately want to perform a backup first, in case you destroy the current partitions in the process. You may need to use fdisk to do it.

Before doing anything, get into the psuedo terminal and run "fdisk -l". Write down the start and end points of every partition. Looking at "fdisk -lu" might be a good idea as well. This will give the start and end points in sectors, which will probably be 256 byte blocks.
 
Old 12-25-2007, 09:47 PM   #3
pa1000
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
how do I redefine them?
 
Old 12-25-2007, 10:16 PM   #4
pa1000
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
the question also remains, why won't it let me make an extended partition when when I only had 3 other partitions, even if I delete sda1 leaving me with 2 partitions it still won't let me make an extended partition.
 
Old 12-26-2007, 12:05 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could try changing the start of /dev/sda4 to the point where /dev/sda3 starts. See if you can change the type of /dev/sda3 to extended. If gparted is smart enough it will remove the /dev/sda3 (primary partiton) entry and create a /dev/sda5 in its place, and move /dev/sda5 -> /dev/sda6 and /dev/sda6 -> /dev/sda7.

If gparted won't do this, you can try using fdisk. I would recommend changing the units that gparted uses if possible because working with exact sector numbers may be more exact than using fractions of megabytes. You don't want any rounding errors.

If neither gparted or fdisk will change the start of the extended partition, then you may need to resort to deleting the partitions and redefining them. You will need to redefine the partitions with the exact starting and ending points, but you will define /dev/sda4 as an extended partition starting at the exact point that /dev/sda3 is now. This is why I recommended writing down the partition table.

You might want to read the Wikipedia article on the MBR to understand the partition table.
 
  


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
Partitioning alexidoia Linux - Newbie 2 10-11-2004 03:41 PM
partitioning help bobby4004 Linux - Newbie 6 10-09-2004 09:22 PM
partitioning PlatinumRik Linux - Software 6 04-10-2003 07:11 PM
Partitioning? stalefx Linux - Software 4 04-08-2003 08:19 PM
partitioning Jay4hand Linux - Newbie 9 06-11-2002 04:57 PM

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

All times are GMT -5. The time now is 04:56 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