LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2007, 08:01 AM   #1
laggerific
Member
 
Registered: Jan 2006
Posts: 65

Rep: Reputation: 15
FDisk not allowing entire cylinders for partition


I'm running Redhat Enterprise Linux and running into an issue creating a partition that should take up the entire harddrive...

Here is the disk info per FDISK:

Disk /dev/sdc: 3496.9 GB, 3496908685312 bytes
255 heads, 63 sectors/track, 425141 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

I've created 1 partition on the disk, and used the default cylinders which used only about 157000 cylinders.

When I try to add a new partition I get a message "no free sectors available".

What's preventing me from using the entire range of cylinders? Obviously the sectors, but how do they relate directly to cylinders? Hopefully, it's not something too basic, but I'm dealing with a cold and so I'm having trouble getting my head around numbers right now.

Thank you.
 
Old 04-04-2007, 03:28 PM   #2
laggerific
Member
 
Registered: Jan 2006
Posts: 65

Original Poster
Rep: Reputation: 15
I found the problem...fdisk doesn't support disks larger than 2T.


Using parted I changed the disklabel to "gpt" and then was able to utilize the full disk.
 
Old 04-29-2007, 06:34 AM   #3
louisnells
LQ Newbie
 
Registered: Nov 2006
Distribution: FreeBSD 6.1, Debian Sarge 3.1r2
Posts: 5

Rep: Reputation: 0
FDISK is a for legacy partition table

Hi,
As far as I know FDISK usually handles the legacy disk partitions. ie, It handles the PC MBR partition tables only. PC MBR scheme can only have 2TB size limit and it always partitions disk on cylinder boundaries. Hence there may be gaps between partitions in block based view. ie, some unused space between partitions.

The cylinder based prtitiioning is very old. Newer drives uses block based scheme. ie, drive will be divided in to cylinders, heads and sectors OR with a fixed size bloacks. 512 KB is a usual block size, and it will be multiples of 512 KB. Block based scheme is the easiest. In block based partitioning we will partition drive based on size of partition (just as in PARTED).

Try swiching to 'parted' partitioning tool. Also try GPT based partition table, it can support 64 bit partiton table and hence no 2TB limit.
 
  


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
how to set cylinders in partition of new hard drive bry21 Linux - Hardware 4 01-27-2006 07:35 PM
What is best way to ghost an entire partition onmountain Linux - General 8 10-29-2005 11:47 AM
Delete an entire partition john8675309 Linux - Software 1 02-02-2005 08:57 PM
Sharing an entire partition for RW access darkdonno Linux - Networking 1 11-20-2004 09:40 AM
Boot partition after 1024 cylinders concoran Linux - General 5 10-19-2001 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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