Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Rep:
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!
Last edited by leupi; 12-13-2009 at 06:24 PM.
Reason: Forgot the attachment
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.
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.
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.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
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?
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.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
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...
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
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.
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.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
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.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
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.
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.