LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 12-13-2009, 06:04 PM   #1
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Rep: Reputation: 30
Questions regarding partitioning


I have a dual boot system with Ubuntu 9.10 and Windows XP Pro. I have an older Dell D600 laptop and recently upgraded the hard drive to ~230GB. The BIOS did not recognize that size hard drive so I had to partition it to a 75GB partition for Windows, another 50GB for Windows, 40GB for Linux, and that left me with about 75GB that I was going to eventually use for Linux.

I just used gparted and tried to allocate that unallocated 75GB into to additional partitions but got the following message:
Quote:
If you want more partitions you should first create an extended partition. Such a partition can contain other partitions. Because an extended partition is also a primary partition it might be necessary to remove a primary partition first.
I am attaching a screenshot of what gparted is showing. I would really like to just have the new sda4 partition another Linux partition and then create another Linux partition with the remaining unallocated space. What would be the easiest way of doing this?

Thanks!
Attached Images
File Type: png partitions.png (76.5 KB, 7 views)

Last edited by leupi; 12-13-2009 at 06:24 PM. Reason: Forgot the attachment
 
Old 12-13-2009, 06:36 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,828

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Well that's a mess. You need to get that unallocated space contiguous (beside) the extended so it can grow. Then you can allocate another logical within that. You might be able to move sda3 and sda4 up to the end to achieve that - NTFS can be a pain sometimes, but you might be o.k.
 
Old 12-13-2009, 06:39 PM   #3
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,713

Rep: Reputation: 191Reputation: 191
Why...

Looking at your screenshot of GParted, I wonder why you did not place the two Windows primary partitions as the first and second primaries, then format the rest as an extended partition with however many logical partitions for linux you would like.

Is it because of the BIOS limitations? If not, you might make another try by deleting everything after your Windows installation on the first primary and starting again.

Last edited by thorkelljarl; 12-16-2009 at 08:36 AM.
 
Old 12-13-2009, 06:51 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
To me, the best way to set up a disk like that is something like:

Code:
Windows (NTFS)     15-20GB     Primary
Linux Swap         4GB         Primary--at the end of the drive
Linux              15-20GB     Primary
Extended--filling the rest of the space:
    Shared data:   ext3 or FAT32   ~100GB  Logical
    More Linux partitions if desired
    Balance left as spare
Note that some partitioners will expand the extended partition as new logicals are created---others will allow you to set the size of the extended. In either case, keep the unallocated area in or after the extended partition.

Last edited by pixellany; 12-13-2009 at 06:52 PM.
 
Old 12-13-2009, 08:42 PM   #5
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
OK, I see that I kinda blew it when I set up my original partitions. From what I am seeing, I am allowed three primary partitions and 63 logical partitions on an IDE drive. I take it that all of the logical partitions have to be set up in one extended partition. Am I correct in this assumption?

My limitation is that I am only allowed a partition of up to ~75GB (BIOS limitation for my Dell D600), not sure what the actual number was, it's been a while since I originally partitioned this drive.

I could set up a primary partition of 70GB for Windows (NTFS), and then another primary partition of 40GB for Windows data (NTFS). Now I could set up an extended partition with the rest of the 240GB drive, which would be 130GB. This could be used for Linux and be divided into, theoretically, up to 63 logical partitions.

If all of this sounds correct I am more than happy to blow this away and start over (would rather fix what I have but am not really seeing any way of doing that). Am I on the right track here?

Thanks for all of the advice so far...
 
Old 12-13-2009, 08:54 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,828

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
NTFS needs a (one) primary partition, and it can be quite small - the other can be a logical. The choice is yours. I find logicals for most more flexible.
Don't plan on more than 15 partitions total - this was introduced with the libata updates a while back. Haven't checked it the limit has been relieved since.
 
Old 12-13-2009, 09:04 PM   #7
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
I see no reason for more than five partitions (much less 15). So perhaps one primary partition of 70GB for Windows and then the rest (170GB) as an extended drive. In the extended partition I can then put a 40GB logical partition for Windows data and then configure however many Linux partitions that I need (maybe three, Linux, swap, data). Sorry for the continual asking, I only wish to do this one more time...
 
Old 12-14-2009, 11:42 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
I take it that all of the logical partitions have to be set up in one extended partition. Am I correct in this assumption?
Correct---an "extended partition" entry in the main partition table is simply the beginning of a linked list to all the logical partitions.
 
Old 12-14-2009, 07:49 PM   #9
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
I seem to still be doing something wrong. I blew everything away and then reinstalled both Windows and Linux. I created a 50GB partition (sda1) and installed XP on that. I never got the option to create an extended partition so I proceeded to create my Linux partitions as logical, the three of them total about 76GB. That leaves me with 107GB as unallocated. When I try to create a partition within that, I only have the option of primary.

Can you tell me what I am doing wrong?
Attached Images
File Type: png partitions.png (102.2 KB, 2 views)
 
Old 12-14-2009, 08:05 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,828

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
You've filled the extended. From gparted highlight the extended, use the partition menu option to resize it, and drag the right edge all the way to the end of the disk. Then hit resize/move to confirm, and then "Apply" to actually do it. After that you should be fine - may need a reboot.
 
Old 12-14-2009, 08:14 PM   #11
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
I'm not exactly sure where the 'partition menu option' is. I assume that you are referring to the graphical partition display at the top. It is not allowing me to drag anything. When I highlight the extended, any reference to resize/move is greyed out and inaccessible.

7002 posts? Wow...

Appreciate any insight
 
Old 12-14-2009, 08:24 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,828

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Up the top - between "device" and "Help". You running as root ?. From a terminal run "sudo gparted" instead.
 
Old 12-14-2009, 08:29 PM   #13
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
I have been running as root, at least it always asks for the root password whenever I start gparted. I started it from the command line as you suggested but as you can see from the screenshot, I still do not have access to resize/move.
Attached Images
File Type: png Screenshot.png (110.9 KB, 2 views)
 
Old 12-14-2009, 09:10 PM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,828

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Hmmm - I always do it from a liveCD; try that maybe.
 
Old 12-14-2009, 09:14 PM   #15
leupi
Member
 
Registered: Mar 2004
Location: Annapolis, Maryland, USA
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 457

Original Poster
Rep: Reputation: 30
I will try that. Is gparted on the standard Ubuntu Live CD or do I need to download it elsewhere and burn a CD? I would imagine that that is the case as I had to install it separately after my Ubuntu installation. I appreciate all of the help tonight. If you ever get to Annapolis, I'm buying you a beer
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitioning Questions davidstvz Debian 9 05-27-2009 11:37 AM
Partitioning questions. Syrabane Linux - Newbie 2 12-15-2008 02:10 PM
Partitioning questions 200mg Linux - Newbie 2 03-27-2008 10:08 AM
Partitioning questions Hampster Mandriva 2 01-12-2005 04:19 AM
partitioning is necessary/okay, but I have a few questions beginnerx Linux - Newbie 2 09-26-2003 06:11 PM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration