LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-29-2003, 01:38 PM   #1
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Rep: Reputation: 30
how big is my drive?


i forgot the formula to find out how big a drive is thru its cylinders,heads, and sectors

its
3400 cylinders
16 heads
63 sectors

thanks
 
Old 07-29-2003, 03:27 PM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
Doesn't your initial screen at start up before your bootloader kicks in tell you the device size (in meg's) ???

regards

John
 
Old 07-29-2003, 03:33 PM   #3
zeppelin
Member
 
Registered: Apr 2003
Location: Athens, Greece
Distribution: Arch
Posts: 182

Rep: Reputation: 30
try 'cfdisk'
hope you have it installed.. yet be careful

Last edited by zeppelin; 07-29-2003 at 03:55 PM.
 
Old 07-29-2003, 03:36 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# How much free/used drive space
df -h

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks
 
Old 07-29-2003, 03:59 PM   #5
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
3400x16x63x512=1002700800 bytes = 979200 Kb = 956.24 MB



Wow, I can't believe I remeber this stuff.
*blows dust off of A+ certificate*

slight
 
Old 07-29-2003, 06:50 PM   #6
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
lol thanks that was the whole point....to not need to use the computer...thanks!
 
Old 07-29-2003, 07:34 PM   #7
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Cool.

Brought back memories.

slight
 
Old 08-01-2003, 07:33 AM   #8
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
Not as easy as that...

Quote:
3400x16x63x512=1002700800 bytes = 979200 Kb = 956.24 MB
My calculator gives me:

3400x16x63x512=1754726400 bytes = 1713600 KB = 1673.44 MB

But things are no longer as simple as that. Using my two drives as an example:

Seagate ST320414A (20GB): CHS=16383x16x63.
Size is: 16383x16x63x512 = 8455200768 bytes = 8257032 KB = 8063.5 MB (< 8 GB)

Seagate ST380021A (80 GB): CHS=16383x16x63.
Size is: 16383x16x63x512 = 8455200768 bytes = 8257032 KB = 8063.5 MB (< 8 GB)

Eh? What's going on here? The simple answer is that the formula CHSx512 only works where there are an equal number of sectors on all cylinders, which is OK if you have an older drive. However, if you have a newer drive that uses more sectors for the outer cylinders - 'Zone Recording' - then this formula no longer holds true. (If your drive uses Logical Block Addressing then it's most probably one of these.) Instead, you have to know how many total sectors are on the disk, and that comes from the manufacturer's specification. In my case, they are 39,102,336 (19092 MB) and 156,301,488 (76319 MB) respectively, whereas CHS would only give 16,514,064 sectors for both drives.

So you have to resort to asking the computer how big your drive is, or you could be way off. More info here on CHS and 'Zone Recording':

http://www.byteoutofcrime.org/newsV6I1.html

It just goes to show that you have to be careful in using old information; technology marches on and destroys your old benchmarks.
 
Old 08-01-2003, 08:57 AM   #9
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Thank you for the adjustment on my math, must have hit a button wrong on the calculator. As for the change in the formula, you are correct. I was guessing based on the low number of cylinders that this is an older drive and that the calculation would hold true.

slight
 
  


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
Big, big hard drive in a little, little tablet... pengyou Linux - Laptop and Netbook 6 10-18-2004 03:44 AM
Big problem with had drive partition Pwnz3r Linux - Hardware 10 03-19-2004 10:54 PM
Big hard drive - Old BIOS OOmiz Linux - Hardware 6 03-11-2003 09:04 PM
How many patitions do I need for my big hard drive? chansky Linux - Hardware 4 08-27-2002 10:04 AM
how big of a hard drive do i need???? Kajun Linux - Software 3 05-17-2001 04:48 PM

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

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