LinuxQuestions.org
Review your favorite Linux distribution.
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 11-18-2006, 06:48 AM   #1
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Rep: Reputation: 15
How add another logical drive


How can I add another Logical drive to the exsisting extended. (when I try fdisk /dev/hda it gives options to create primary only)
 
Old 11-18-2006, 09:15 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Post your partition information i.e. the output of "fdisk -l" command
 
Old 11-18-2006, 10:32 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
While we are waiting for fdisk -l, note that sometimes the extended partition ends before the end of the disk. I had this happen recently and had to resize the extended partition---I think I used GParted or QTParted.

I don't know how mine got that way--or how to use fdisk to avoid it. (I WANT TO FIND OUT, but I keep sidetracking.... )
 
Old 11-20-2006, 07:37 AM   #4
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by michaelk
Post your partition information i.e. the output of "fdisk -l" command
ok her goes


Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 4997 29896965 f W95 Ext'd (LBA)
/dev/hda3 4998 4998 8032+ 83 Linux
/dev/hda5 1276 2550 10241406 7 HPFS/NTFS
/dev/hda6 2551 3825 10241406 7 HPFS/NTFS
/dev/hda7 3826 3921 771088+ 83 Linux
/dev/hda8 3922 4431 4096543+ 83 Linux
/dev/hda9 4432 4558 1020096 83 Linux
/dev/hda10 4559 4654 771088+ 83 Linux
/dev/hda11 4655 4750 771088+ 83 Linux
/dev/hda12 4751 4846 771088+ 83 Linux
/dev/hda13 4847 4871 200781 82 Linux swap
/dev/hda14 4872 4884 104391 b W95 FAT32
/dev/hda15 4885 4897 104391 83 Linux
/dev/hda16 4898 4910 104391 83 Linux



Correct me if Im wrong. It seems that size of the extended partition is automatically set after setting the space allocations for the logical drives at the time of linux installation. Extended will have the total of all logicals. Then there after we can't crate more logicals in the extended using fdisk, without deleting an exsisting logical to free some space.

Last edited by cnm; 11-20-2006 at 07:39 AM.
 
Old 11-20-2006, 07:54 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
You have 87 free blocks in the extended partition so you should be able to create another logical partition. In theory you should be able to create 64 partitions on an IDE drive. You do not have any free space to create a primary partition.

Last edited by michaelk; 11-20-2006 at 07:56 AM.
 
Old 11-20-2006, 08:18 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by michaelk
You have 87 free blocks in the extended partition so you should be able to create another logical partition. In theory you should be able to create 64 partitions on an IDE drive. You do not have any free space to create a primary partition.
Umm...I think there are 87 **cylinders** left. Each cylinder is 8+ MB, giving a total of 700+ MB (70 blocks).

Since 700MB is not useful for much except swap space, I would call this disk full...Time to delete some things--or buy another drive.
 
Old 11-20-2006, 10:08 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
blocks, cylinders..... whatever. I was still asleep this morning....
 
Old 11-20-2006, 11:13 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
It's called "sleep-posting". I have done it often--even while awake...
 
Old 11-21-2006, 01:17 AM   #9
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
Umm...I think there are 87 **cylinders** left. Each cylinder is 8+ MB, giving a total of 700+ MB (70 blocks).

Since 700MB is not useful for much except swap space, I would call this disk full...Time to delete some things--or buy another drive.
OK got it 700MB free in extended. But how did you say 70 blocks?
 
Old 11-21-2006, 07:46 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Quote:
/dev/hda2 1276 4997 W95 Ext'd (LBA)
/dev/hda16 4898 4910 83 Linux
Your extended partition is from cylinders 1276 to 4997. Your last logical (hda16)ends at 4910 so you have 4997-4910=87 cylinders unallocated.
 
Old 11-21-2006, 09:38 AM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by cnm
OK got it 700MB free in extended. But how did you say 70 blocks?
OOOOOOOOOOOPPPSSS!!!
A "block" is typically 1KBytes (actually 1024 Bytes = 2 sectors)

So ~700MB is ~700K blocks
That's of course what I MEANT to say........
 
Old 11-25-2006, 03:55 AM   #12
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
OOOOOOOOOOOPPPSSS!!!
A "block" is typically 1KBytes (actually 1024 Bytes = 2 sectors)

So ~700MB is ~700K blocks
That's of course what I MEANT to say........

Ok got it THANKS A LOT :-)
 
  


Reply



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 to Add an Logical Volume from Volgroup post install gev_dv Linux - Software 1 03-01-2006 06:34 PM
io Stress on logical drive kaganis Linux - General 1 08-09-2005 10:11 PM
How to add Logical Drives kool_kid Slackware 10 03-18-2005 07:08 AM
Add logical ntfs partition to GRUB loader ! Bonch Debian 1 12-09-2004 10:01 AM
How to add logical partitions in linux ? copernicus Linux - General 2 10-21-2003 07:05 AM

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

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