LinuxQuestions.org
Help answer threads with 0 replies.
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 03-19-2012, 02:35 PM   #1
mail2vivek1
LQ Newbie
 
Registered: Sep 2011
Posts: 24
Blog Entries: 1

Rep: Reputation: Disabled
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):

***************************************
 
Old 03-19-2012, 02:58 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,045
Blog Entries: 14

Rep: Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214
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.
Old 03-19-2012, 07:01 PM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You have to choose anyone from 1 to 4 numbered partitions.
 
Old 03-19-2012, 07:49 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,334

Rep: Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907
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.
Old 03-19-2012, 07:49 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,949

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
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.
Old 03-20-2012, 02:05 AM   #6
mail2vivek1
LQ Newbie
 
Registered: Sep 2011
Posts: 24
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
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..
 
Old 03-20-2012, 02:40 AM   #7
mail2vivek1
LQ Newbie
 
Registered: Sep 2011
Posts: 24
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
@ 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.
 
Old 03-20-2012, 07:30 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,334

Rep: Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907
You can not create any more without deleting an existing partition.
 
  


Reply

Tags
fdisk


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
Bash script to ping a range or own IP-range ugurgazi Programming 13 05-02-2016 10:08 AM
Gnuplot - Combining a linear range and log-scale range in the same X-axis llauro Linux - Software 2 04-26-2011 01:55 PM
understadning /dev/dm-02 mapping and fdisk -l or fdisk -l | less mixxmaster27 Linux - Newbie 2 06-03-2010 01:17 PM
[SOLVED] What are short range link and long range links in routing? mq15 Linux - Networking 6 06-27-2009 12:16 AM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM

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

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