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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-29-2003, 02:38 PM
|
#1
|
Member
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222
Rep:
|
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
|
|
|
07-29-2003, 04:27 PM
|
#2
|
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Rep:
|
Doesn't your initial screen at start up before your bootloader kicks in tell you the device size (in meg's) ???
regards
John
|
|
|
07-29-2003, 04:33 PM
|
#3
|
Member
Registered: Apr 2003
Location: Athens, Greece
Distribution: Arch
Posts: 182
Rep:
|
try 'cfdisk'
hope you have it installed.. yet be careful 
Last edited by zeppelin; 07-29-2003 at 04:55 PM.
|
|
|
07-29-2003, 04:59 PM
|
#5
|
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:
|
3400x16x63x512=1002700800 bytes = 979200 Kb = 956.24 MB
Wow, I can't believe I remeber this stuff.
*blows dust off of A+ certificate*
slight
|
|
|
07-29-2003, 07:50 PM
|
#6
|
Member
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222
Original Poster
Rep:
|
lol thanks that was the whole point....to not need to use the computer...thanks!
|
|
|
07-29-2003, 08:34 PM
|
#7
|
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:
|
Cool.
Brought back memories.
slight
|
|
|
08-01-2003, 08:33 AM
|
#8
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
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.
|
|
|
08-01-2003, 09:57 AM
|
#9
|
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:
|
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
|
|
|
All times are GMT -5. The time now is 12:59 AM.
|
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
|
|