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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-19-2012, 01:35 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2011
Posts: 24
Rep: 
|
Fdisk Value out of range
Dear All,
I am using Windows 7 and linux both on my laptop.
But when i am trying to create new partition(extended partition) in my Linux using fdisk..it giving me value out of range error.. Please suggest.. I googled it but nothing fixed it.
Below are the already created partitions on my laptop
*****************************************
[root@dhcppc1 ~]# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 7649 61440561 7 HPFS/NTFS
/dev/sda2 7650 38912 251120047+ f W95 Ext'd (LBA)
/dev/sda5 15299 22947 61440561 7 HPFS/NTFS
/dev/sda6 22948 30596 61440561 7 HPFS/NTFS
/dev/sda7 30597 38912 66798238+ 7 HPFS/NTFS
/dev/sda8 7650 7681 256977 83 Linux
/dev/sda9 7682 9976 18434556 8e Linux LVM
/dev/sda10 9977 11888 15358108+ 83 Linux
/dev/sda11 11889 13163 10241406 83 Linux
/dev/sda12 13164 14438 10241406 83 Linux
/dev/sda13 14439 14699 2096451 82 Linux swap / Solaris
/dev/sda14 14700 14954 2048256 83 Linux
/dev/sda15 14955 15081 1020096 83 Linux
Partition table entries are not in disk order
***************************************
DOS Compatibility flag is not set
Command (m for help): fdisk /dev/sda
f: unknown command
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n
Partition number (1-4): 18
Value out of range.
Partition number (1-4):
***************************************
|
|
|
|
03-19-2012, 01:58 PM
|
#2
|
|
Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,644
|
Quote:
|
Partition number (1-4): 18
|
Uh...
18 is NOT in the range 1-4
In disk partitioning you are allowed 4 primary partitions of which the 4th can be the extended the partition. All partitions after 4 are subsets of 4. There is a limit to the number of such subset partitions. Your partition table is very strange.
Given that you have an LVM partition why bother with other Linux partitions? You can use LVM tools to create as many logical volumes (LVs) as the Volume Group (VG) has space for.
|
|
|
1 members found this post helpful.
|
03-19-2012, 06:01 PM
|
#3
|
|
Senior Member
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Fedora, Ubuntu, Debian
Posts: 1,344
|
You have to choose anyone from 1 to 4 numbered partitions.
|
|
|
|
03-19-2012, 06:49 PM
|
#4
|
|
Moderator
Registered: Aug 2002
Posts: 10,684
|
Any primary partition can be the extended partition.
It appears the problem is fdisk will only allow the creation of 15 partitions. What version of Redhat are you running? What kernel version are you running. This was an old limitation of the SCSI subsystem that AFAIK was fixed in the 2.6.28 kernel.
You could create a primary partition but with the remaining unallocated space the size will only be around 8 MB. Without knowing if the linux partitions contain i.e. data or multiple OSs it is difficult to provide you with options
|
|
|
1 members found this post helpful.
|
03-19-2012, 06:49 PM
|
#5
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,219
|
The libata libraries emulate SCSI - 15 partitions is the nominal limit, unlike the older IDE interface.
I guess fdisk is just giving you the option to create the primary partitions that were skipped when the extended was created. Of course that would require space outside of the extended ...
|
|
|
1 members found this post helpful.
|
03-20-2012, 01:05 AM
|
#6
|
|
LQ Newbie
Registered: Sep 2011
Posts: 24
Original Poster
Rep: 
|
First of all, Thank you for looking into this issue..
Offcourse 18 is not in range of 1 to 4. But when i enter 1, it says delete the partition before you create it. when i enter 2-4, it take just default value and do nothing. As i was already having sda15, so was trying to create partion 16,17,18..
Yes I have LVM, i can use it also..but what i was trying to do was, i was trying to delete this LVM partition and then was trying to create new partion.. I am just doing experiments to learn more..
|
|
|
|
03-20-2012, 01:40 AM
|
#7
|
|
LQ Newbie
Registered: Sep 2011
Posts: 24
Original Poster
Rep: 
|
@ michaelk
Below are the details
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
kernel :- 2.6.18-164.el5PAE.
Please help me to create extended partitions.
|
|
|
|
03-20-2012, 06:30 AM
|
#8
|
|
Moderator
Registered: Aug 2002
Posts: 10,684
|
You can not create any more without deleting an existing partition.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:56 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|