LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-06-2006, 03:57 PM   #1
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
fdisk and unallocated sectors


fdisk /dev/hda
v
21292 unallocated sectors
n
No free sectors available

Why these unallocated sectors aren't available for creating a partition? Did I miss something?
 
Old 02-06-2006, 05:25 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
A lot of this is based on the drives geomtry and block size. Standard ext block size is 512. If you do not configure each partition to stop at each block then whats left over to make the 512 block size is lost. Also there is lost between master boot sector and track 2 of the drive. I have also been told it may also be part of the drive with bad sectors as well. Not sure on that one.

Example: One Real Megabyte 1024000 divide by 512 = 2000
Example: What we think One Million is 1000000 divide by 512 = 1953.125 here you lose 512 minus 125 = 387. Next parition cannot start till 2000.
So in essences it is better to size 1 gig as 1,024,000,0000 than as 1,000,000,000

Hope I explained this correctly. This is very broad and not specfic.
Brian1

Last edited by Brian1; 02-06-2006 at 05:37 PM.
 
Old 02-07-2006, 12:07 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Original Poster
Rep: Reputation: 53
Thanks a lot. Got a point (maybe).

But there is one question:

1000000 div 512 = 1953
1000000 mod 512 = 64
We lose 512 - 64 = 448 sectors
So there is 1953 + 1 of used 64 (unused 448) sectors.
So why another partition can't begin from 1955?

It would be good for me to read more about hard drives architecture. Can you mention some good sources of information?

Last edited by Alien_Hominid; 02-07-2006 at 12:38 AM.
 
  


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
fdisk -- no free sectors available; i have a few gigs free??? lowpro2k3 Linux From Scratch 5 02-03-2009 01:43 AM
fdisk: no sectors available? ? ? ic_torres Linux - Hardware 5 12-29-2005 06:08 PM
fdisk "No free sectors Available" xfezz Linux - General 3 04-21-2005 10:25 AM
partition problems: cannot allocate unallocated sectors yzman Linux - Hardware 7 11-18-2003 05:31 AM
Claiming unallocated diskspace into Linux RefriedJavaBean Linux - Newbie 4 09-27-2003 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:25 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
Open Source Consulting | Domain Registration