LinuxQuestions.org
Register a domain and help support LQ
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-04-2004, 04:31 AM   #1
jfchui
LQ Newbie
 
Registered: Mar 2004
Location: Sydney
Distribution: Redhat
Posts: 9

Rep: Reputation: 0
Partition fundamental questions


This must be a very basic question. Excuse me to repeat asking, although I've read many posts. I need some clarifications to be very sure.

Question 1) In M$ Windows world, it only recognises a maximum of 4 primary partitions for each IDE drive. Alternately I can define 3 primary partitions plus 1 extended partition, M$ will recognise them. Is this true?

Question 2) The above stated limitation remains unchanged when I am installing Linux onto the disk. Is that true? (In other words, I can only define at most 3 primary partitions plus one extended partition.)

Question 3) This is my existing partition map of my 80 gb drive:
a) primary dos partition - 4 gb with installed with Windows 98
b) extended partition - 40 gb. All its space are already 'occupied' for use under Windows. Although I do divided the 40 gb into 4 chunks. 2 chunks is FAT32 and 2 chunks are NTFS.
c) primary parttions - 10 gb used by WindowsXP.
d) 26 GB unallocated.

I want to add 4 partitions in order to install one Linux distro, do I need to re-organize my hard disk? The 4 partitions (total ~15 gb) I need would be:
/ for root (10 gb)
/boot (100 mb)
/swap (1 gb)
/home (5 gb)

Because there is still ~10 gb unused capacity, I want to keep it aside for future use - for instance, in case I need to try a different favor of Linux. Please outline briefly the ways to allocate space for these 4 new partitions.
 
Old 04-04-2004, 04:58 AM   #2
American Psycho
Member
 
Registered: Mar 2004
Location: chroot /dev/hda3
Distribution: LFS
Posts: 88

Rep: Reputation: 15
you can do all of those just under root and / if you want

but just remember, you get 4 primary and one extended with your other partitions, but all fat32 and linux partitions must be primary instead of logical
 
Old 04-04-2004, 06:21 AM   #3
ekman
Member
 
Registered: Apr 2004
Location: Sweden
Posts: 41

Rep: Reputation: 15
1. Yes
2. Yes. Physically at least. There is something called "Logical Volume Manager" (LVM)
on Linux, but is is quite complicated and probably not for a newbie.
3. If you want partitions as described, then yes, you have to re-organize.

On the extended partition you can have many logical partitions (at least 16),
so the trick is to create a really big extended partition with many logical partitions.

And linux partitions can all be logical, including /boot (if you are using GRUB) and
swap. They do not have to be primary as stated in the reply above.

Regards,
L Ekman
 
Old 04-04-2004, 07:30 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Actually you can have up to 64 partitions on IDE but only 16 on SCSI.
Quote:
Question 3) This is my existing partition map of my 80 gb drive:
a) primary dos partition - 4 gb with installed with Windows 98
b) extended partition - 40 gb. All its space are already 'occupied' for use under Windows. Although I do divided the 40 gb into 4 chunks. 2 chunks is FAT32 and 2 chunks are NTFS.
c) primary parttions - 10 gb used by WindowsXP.
d) 26 GB unallocated.
Will you have to reorganize? It appears to be the case but I can't tell for sure unless I know how the drive is exactly partitioned. You will need to resize the extended partition to include the unallocated space.

If the drive is partitioned as:
Primary partition 1
primary partition 2 - extended
primary partition 3
Then you will need to move the primary partition to the end of the disk and then resize the extended partition.
 
Old 04-04-2004, 11:06 AM   #5
jfchui
LQ Newbie
 
Registered: Mar 2004
Location: Sydney
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally posted by michaelk
Actually you can have up to 64 partitions on IDE but only 16 on SCSI.

Will you have to reorganize? It appears to be the case but I can't tell for sure unless I know how the drive is exactly partitioned. You will need to resize the extended partition to include the unallocated space.

If the drive is partitioned as:
Primary partition 1
primary partition 2 - extended
primary partition 3
Then you will need to move the primary partition to the end of the disk and then resize the extended partition.
Thanks. Yes, I think the above is my existing drive map. I hope what you wrote "primary partition 2 - extended" means the same term ("extended partition") used by Win2000 or WinXP. My understanding in the way to distinguish an extended from primary is that: an extended allows me to define multiple logical drives under Window/dos environment, while this is not possible with "primary".

It is good to hear all Linux partitions may be logical within the extended partition.

More clarifications to be exactly sure, please.
1) I assume I can mix "Windows type partitions" (partitions with FS of type FAT32 or NTFS) with Linux type partitions within the "extended" one. Is it true that I normally need to define all logical drives for use by Win/dos first, then after that, define more partitions for use by Linux in the extended?

2) Apparently I should have made a much larger "extended" in the very beginning. So now I need to increase the size of the existing "extended" from 50 gb to 55 GB. I usually borrow another disk drive to copy everything out and do the re-partitioning using Windows fdisk command. This is because I don't have any partitioning tools such as "partiition magic". Is there a free-to-use one to make my above task easier (I mean no need to move data to another hard disk)?

Thanks
 
Old 04-04-2004, 01:45 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
parted is a free linux utility for resizing partitions.

I'm probably splitting hairs. A partition has an identifier assocatied with it. An extended partition is a primary that has an identifier of extended type and in your case it is 0x0F. Since you define a primary partition as extended you can create logicals that reside in that space.

Primary partitions have a number from 1-4. Logicals are assigned from 5 and up. Your first statement was correct there are only 4 primary partitions and one of the primaries can be identified as an extended.

http://www.redhat.com/docs/manuals/l...artitions.html

You can mix partition types in any order.
 
Old 04-23-2004, 07:38 AM   #7
jfchui
LQ Newbie
 
Registered: Mar 2004
Location: Sydney
Distribution: Redhat
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michaelk
parted is a free linux utility for resizing partitions.
I am still not very clear. Do you mean "parted" is a software available to me during installation?

It appears I need to re-organize my hard disk in order to install Linux, because I had failed to partition my hard disk correctly in the first place. To re-define my hard disk layout, I have a tools called "parted" that helps me to avoid copying things out - parted just re-sizes partitions.

The tools is good to avoiding copying out from hard disk and restore it back again. But is "parted" a Linux utility? How could I have access to it BEFORE my Linux is ever installed?
 
Old 04-23-2004, 07:47 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
No it isn't usually available during installation. I do not know what RH has for its disk utilities on its installer.

parted is a linux utility. Its similar to windows Partition Magic. You can download and run it from a CD or floppy disk.
 
  


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
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 05:15 PM
The Fundamental Differences Between Linux and Windows Charred Linux - News 23 10-30-2005 01:50 AM
Fundamental Question in C and C++ linux_ub Programming 5 07-28-2004 12:26 PM
Fundamental automated tasks dominant Linux - Newbie 6 02-20-2004 12:59 PM
Fundamental ipchains concept questionn... WeNdeL Linux - Security 2 12-19-2002 12:38 PM


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