LinuxQuestions.org
Visit Jeremy's Blog.
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 04-29-2004, 08:44 AM   #1
adamsjw2
Member
 
Registered: Jan 2003
Distribution: Mandrake 9 & SuSE 81.
Posts: 40

Rep: Reputation: 15
Can I Add Extended Partition after Install?


Hi All,
I have just setup a system with the following partitioning scheme:
kernel 2.6.5-r1

/dev/hda1 ntfs WinXP
/dev/hda2 /boot linux
/dev/hda3 swap swap
/dev/hda4 /root linux Gentoo

Now I want to load another Linux OS, FREEBSD, and I realized that I can only have 4 primary paritions. Is it possible to add an extended partition without having to reformat my whole drive? I've got 60 gig of space that I can use.
TIA,
Jim
Maysville KY USA
 
Old 04-29-2004, 10:04 AM   #2
flipboi
Member
 
Registered: Oct 2003
Location: Manila
Distribution: Fedora Core 2, FreeBSD 5.2.1
Posts: 46

Rep: Reputation: 15
No. Only up to 4 primary partitions are allowed at any time. An extended partition counts as a primary partition. You can add a new hard disk if you like.
 
Old 04-29-2004, 11:00 AM   #3
Apol
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
You do not have to re-format the whole drive. only linux.

Change your / partition into an extended
 
Old 04-29-2004, 11:30 AM   #4
adamsjw2
Member
 
Registered: Jan 2003
Distribution: Mandrake 9 & SuSE 81.
Posts: 40

Original Poster
Rep: Reputation: 15
HI all and thanks for your quick response. I'm thinking that I should image or backup my root partition, then change my former root partition to extended and recopy my root partition back. I don't think I can change my primary to extended without wiping the data on it and therefore killing my /root.
Or, I could change my swap to extended then put my swap in a new partition and change my fstab to reflect the new swap.
I just don't want to lose my Gentoo /root setup. It's taken too long to build it the way that I want.
I'm still open to suggestions,
Thanks,
Jim
 
Old 04-29-2004, 12:01 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
I agree, the easiest would be to delete the swap partition and then create a new extended partiton using the 60 GB free space. All additional partitions will be logicals inside the extended paritition.

If you want to regain the old swap space you will need to resize your /.
 
Old 04-29-2004, 03:58 PM   #6
Apol
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
I only use fdisk.. maybe others are different, but If the swap is set up to a confined space on the HD, the extended you are making in that spot would be limited to the original size of the swap.. again, maybe other partition editors do this differently.
 
Old 04-29-2004, 05:13 PM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Nah, they're saying he's 60 gigs unformatted - he could delete swap, leave it vacant, and create extended partitions out of the 60, not the swap. That's why michaelk was saying the swap space would be wasted without resizing /.

But you want FreeBSD, adamsjw2? That's not a Linux and, if I'm not mistaken (and may well be) that introduces another wrinkle - I think the BSDs require a primary partition to make 'slices' out of, or whatever - you can't boot a BSD from an extended. So you'd have to wipe one of your primaries and put BSD on it, anyway. I nominate hda1.
 
Old 04-29-2004, 07:33 PM   #8
adamsjw2
Member
 
Registered: Jan 2003
Distribution: Mandrake 9 & SuSE 81.
Posts: 40

Original Poster
Rep: Reputation: 15
digiot,
Thanks for your reply.
I agree about getting rid of HDA1. I'm only keeping it because of MS Access. As soon as I can find a Linux replacement, it's gone.
I also agree about FreeBSD. I'm not going to put it on this box, I need to concentrate on learning Gentoo inside and out. I've been using MEPIS on another box and IPCOP as my firewall. So I was thinking about FREEBSD for possibly a firewall, but nah!

I'll put the new MEPIS when it moves out of beta and that may be it.
Jim
 
Old 04-29-2004, 07:47 PM   #9
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Making an extended partition using PartitionMagic would be easy. You would not have to delete or reinstall anything. That’s one reason so may linux users shell out the $ for PM.

My suggestion using PM would be to convert hda2, hda3 and hda4 to logical partitions, thus creating 1 extended partition out of the linux stuff and giving you 2 primary partitions to work with. Although I usually put the extended partition at the end of the drive, it can be anywhere. The extended partition can also have unallocated space in it.

If you do this, look at my comments in the following thread before you start:

“Reseizing linux partition? (Advice needed)”
http://www.linuxquestions.org/questi...partitionmagic


If you haven’t dealt with extended and logical partitions before, look at my comments in this tread before you start:

“parted”
http://www.linuxquestions.org/questi...partitionmagic
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Install fedora 4 on extended partition sparkyboy Linux - Software 1 07-20-2005 04:16 PM
Boot off of extended partition? oasisbhrnw99 Linux - Newbie 2 10-25-2004 12:49 PM
Moving from extended partition to primary partition joelbudgor Linux - General 5 05-26-2004 07:08 PM
Booting from an extended partition - need a partition table editor Ouch_Taser Linux - General 2 02-10-2004 07:22 PM
Can install Linux in extended partition? Manuel Tejada Linux - General 3 08-23-2002 09:29 PM


All times are GMT -5. The time now is 02:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration