LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-26-2011, 10:10 PM   #1
JPsHwayZe
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Rep: Reputation: 0
Cannot Create Extended Partition for Ubuntu/Swap-area after OSX/Win7 Dualboot Setup


Okay so first of all, let me give you a background info.

I have an HP Mini 311 with a 250GB hdd and 2GB Ram. I have successfully setup a tripple-boot with SnowLeopard/Win7/Ubuntu10.10 By Partitioning my harddrive first with "DiskPart.exe" on my Win7 USB as follows:

diskpart.exe
list disk
select disk 0
clean
convert GPT
create partition EFI size=200
create partition primary size=(size in mb for OSX)
create partition primary size=(size in mb for Win7)
list partition (make sure Win7 partition is active, it should be partition#3)
format fs=ntfs quick

Okay so First, using "Disk Utility," I format the OSX partiton to Extended(journaled) and install OSX accordingly.
Second, I install Windows 7.
Third, I use Netbookinstaller to install Chameleon 2.0 onto the OSX partition.
Fourth, using DIskPart.exe i set the Win7 Partition(#3) as active and then run the Repair(and Restart) option in the Win7 USB install media, to fix some boot error I do not know much about. Then use "DIskPart.exe" again, to set the EFI partition(#1) as active partition again.

I now have a fully operational dual-boot with SnowLeo and Windows 7.

I setup a triple-boot with SnowLeo/Win7/Ubuntu10.10 by using GParted to add and format 2 additional partitions. The first formatted Ext4 for Ubuntu to be installed onto and the second i set about 4GB as "Swap" area.
Then i just install Ubuntu with the Grub bootloader being installed onto the same partition as Ubuntu.

I now have a fully operational triple-boot with SnowLeo, Win7 and Ubuntu.

So I saw this link about creating an additional "storage" partition, on a dual-boot system, and setting it up so that Windows 7 and Ubuntu can share the same files automatically.
Here is the Link:
http://lifehacker.com/5403100/dual+b...erfect-harmony

I really want to set this up on my triple-boot system, and here is the problem i run into: Simply adding another partition, messes up my windows 7 boot entirely. And i figured out the cause of this might be due to harddrives only being able to handle 4 primary partitions. So i figure that if setup Ubuntu and the Swap-area into an Extended Partiton, this would solve all of my problems.

I cannot figure out how to setup an extended partition on my harddrive without messing something use up irreparably.

This is only my second Thread, so if you have any tips about the actual thread, like placement or edict, please let me know.

ANY advice at all will be greatly appreciated.

Last edited by JPsHwayZe; 01-26-2011 at 10:15 PM.
 
Old 01-26-2011, 10:46 PM   #2
deadalus.globalnode
Member
 
Registered: Feb 2010
Distribution: Arch linux and backtrack 4 r2
Posts: 53

Rep: Reputation: 3
I think your best bet would be if you have a live cd with gparted on it. I think you said that your very last partition was swap? If I remeber corectly the article was saying that you have a partition that windows and ubuntu can both access. So here is how I would do it.

Using gparted I would delete the swap after making sure it was unmounted( you can generaly boot a live cd with a no swap option, and since your swap is all temp stuff, deleting it for a bit shouldn't cause you any problems).

Use gparted to shrink your windows, OSX, and Ubuntu partitions untill you have the cumulative amount of free space that you would like.

Next use gparted to move the partition towards the front of the disk so that free/unalocated space ends up where the swap used to be(Note that shrinking and moving partitions should not destroy data as long as you don't shrink the partitions smaller than what is used, identified by the yellow on the partition).

Create an extended partition with the free space, recreate your swap, and make one more partition (probably fat32/NTFS?) for sharing between OS's.

Note: The moving/resizing will take a LONG time, so you may want to start in the morning and expect to do things inbetween. And I sugest you BACKUP Before you begin.

Hope this helps.

Last edited by deadalus.globalnode; 01-26-2011 at 10:49 PM.
 
Old 01-26-2011, 10:51 PM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
I really want to set this up on my triple-boot system, and here is the problem i run into: Simply adding another partition, messes up my windows 7 boot entirely. And i figured out the cause of this might be due to harddrives only being able to handle 4 primary partitions. So i figure that if setup Ubuntu and the Swap-area into an Extended Partiton, this would solve all of my problems.
Can you explain what exactly it is "messing up?"
 
Old 01-26-2011, 10:52 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
create partition EFI size=200
create partition primary size=(size in mb for OSX)
create partition primary size=(size in mb for Win7)
That's 3 you can only have 1 more primary.
 
Old 01-26-2011, 11:14 PM   #5
JPsHwayZe
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by deadalus.globalnode View Post
I think your best bet would be if you have a live cd with gparted on it. I think you said that your very last partition was swap? If I remeber corectly the article was saying that you have a partition that windows and ubuntu can both access. So here is how I would do it
I am using GParted though a live CD

Quote:
Originally Posted by deadalus.globalnode View Post
Using gparted I would delete the swap after making sure it was unmounted( you can generaly boot a live cd with a no swap option, and since your swap is all temp stuff, deleting it for a bit shouldn't cause you any problems).

Use gparted to shrink your windows, OSX, and Ubuntu partitions untill you have the cumulative amount of free space that you would like
When i initially setup my partitions, i set them up to the size i need, and leave room for Ubuntu, swap-area, and about 100GB for the "storage" partition.

Quote:
Originally Posted by deadalus.globalnode View Post
Next use gparted to move the partition towards the front of the disk so that free/unalocated space ends up where the swap used to be(Note that shrinking and moving partitions should not destroy data as long as you don't shrink the partitions smaller than what is used, identified by the yellow on the partition).
I set up my dual-boot so that all necessary unallocated space is at the end of the drive already.

Quote:
Originally Posted by deadalus.globalnode View Post
Create an extended partition with the free space, recreate your swap, and make one more partition (probably fat32/NTFS?) for sharing between OS's.
This is my main problem. GParted will not give me the option to add an extended partition nor a logical one, at all. Unless i create a new partition table using GParted.

Quote:
Originally Posted by corp769 View Post
Can you explain what exactly it is "messing up?
Windows 7 will no longer boot and i am unable to repair using USB install media.

Quote:
Originally Posted by EDDY1 View Post
That's 3 you can only have 1 more primary.
Yea thats why i started looking into Extended partitions, especially since Linux based operating systems do not need to be on primary partitions.

Last edited by JPsHwayZe; 01-27-2011 at 12:00 AM.
 
Old 01-26-2011, 11:22 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
This should help you figure it out.
http://www.justlinux.com/forum/showthread.php?t=147959
http://www.dedoimedo.com/computers/gparted.html
http://www.dedoimedo.com/computers/grub-2.html
 
Old 01-26-2011, 11:56 PM   #7
JPsHwayZe
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Yes i checked those out when you posted them in my other thread. i got a lot from the from them actually and bookmarked them for future scrutiny. The only thing is i didn't see anything in any of those links that explained why i cannot create an extended partition in GParted.
 
Old 01-27-2011, 12:17 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Are you sure osx isn't already extended (sda2)
 
Old 01-27-2011, 12:19 AM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
post output of fdisk -l,
 
Old 01-27-2011, 12:29 AM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Okay so First, using "Disk Utility," I format the OSX partiton to Extended(journaled) and install OSX accordingly.
Second, I install Windows 7.
That's the reason there.
 
Old 01-27-2011, 12:10 PM   #11
JPsHwayZe
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
That's the reason there.
OMG i did not realize that i had already setup an extended partition! sorry i guess that is why i am in the "Newbie" forum. haha
So anyways now that i know mac is installed onto an extended partition, can i add local partitions inside of this one (for Ubuntu, swap-area, and "storage")?

Ps i am configuring my system like i stated in my original post so that i can post the output of the code you said earlier.
 
Old 01-27-2011, 12:37 PM   #12
nicktickson122
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Rep: Reputation: 1
i chequered those out when you posted them in my different thinking. i got a lot from the from them actually and bookmarked them for time investigating. The exclusive feeling is i didn't see anything in any of those links that explained why i cannot make an protracted part in GParted.
 
Old 01-27-2011, 01:52 PM   #13
JPsHwayZe
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JPsHwayZe View Post
Yes i checked those out when you posted them in my other thread. i got a lot from the from them actually and bookmarked them for future scrutiny. The only thing is i didn't see anything in any of those links that explained why i cannot create an extended partition in GParted.
Quote:
Originally Posted by nicktickson122 View Post
i chequered those out when you posted them in my different thinking. i got a lot from the from them actually and bookmarked them for time investigating. The exclusive feeling is i didn't see anything in any of those links that explained why i cannot make an protracted part in GParted.
what?

Last edited by JPsHwayZe; 01-27-2011 at 04:37 PM.
 
Old 01-27-2011, 06:30 PM   #14
JPsHwayZe
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Okay so I figured out that mac will only install onto a GPT drive and it is not possible to put extended partitions onto a GPT drive, since i can have up to 128 primary partitions. I read this Here:
http://www.daniweb.com/forums/thread218597.html

So I also read somewhere that you can transfer a GPT partition with mac already installed on it to a MBR drive. Maybe this would solve my problem?

I am now going to create a whole new partition table with LiveGpartedCD and see if i can get that to work.

I know i need and EFI partition for a GPT drive, but am i supposed to install grub2 onto that?
 
Old 01-27-2011, 06:35 PM   #15
JPsHwayZe
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
post output of fdisk -l,
My computer will not output "fdisk -l" because my drive is formatted as GPT.
what can i do?
 
  


Reply

Tags
gparted, partitioning, tripleboot



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
How can I create extended partition without GParted? alan_ri Linux - Hardware 27 02-10-2008 06:31 PM
oracle 10g client on fedora core 6 installation, how to create swap area kaushikgm Linux - Newbie 1 08-11-2007 03:22 AM
Swap partition...primary or extended|logical? mr.v. Linux - Newbie 1 07-06-2006 03:30 PM
How can I unmount Swap and Extended on the Ubuntu 5.10 Live Cd cheetahman Ubuntu 10 03-28-2006 07:59 PM

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

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