calculate logical layout values for hdd


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users calculate logical layout values for hdd
# 1  
Old 07-29-2010
calculate logical layout values for hdd

Please advice me how to calculate logical layout values in hdd from below table.

Physical Layout
-----------------
Bytes per Sector : 512
Sectors per Track : 480-1272
Number of Heads : 4
Number of Disks : 2


Logical Layout
---------------
Number of Heads : 16
Number of Sectors / Track : 63
Number of Cylinders : 16,383
Number of Sectors : 312,581,808
Total Logical Data Bytes : 160,041,885,696





Calculations :
--------------
Number of Heads = ?
Number of Sectors = ?
Number of Cylinders = ?
Number of Sectors = ?
Total Logical Data Bytes = Number of Sectors (312,581,808)* Bytes per Sector (512)
# 2  
Old 07-29-2010
The physical layout doesn't tell you anything at all about the logical layout, especially since it seems to have varying numbers of sectors per track which old-fashioned C/H/S can't accommodate. Handling the physical layout is the drive hardware's job now.

Head/track/sector is obsolete. Any modern drive, and most old ones, already use Logical Block Access, or LBA, which lets you just access blocks from 0 to N without caring about the details of where they're stored. The heads, cylinders, and tracks are all maxed out at 16, 16383, and 63 respectively, and probably don't do anything anymore -- now they just change the number of sectors.

Last edited by Corona688; 07-29-2010 at 12:50 PM..
# 3  
Old 07-29-2010
Three questions.

1.But what maxes out those threee values ?
2. Is it hard disk controller or operating system ?
3. Are those values rigid ones or can be changed ?
# 4  
Old 07-29-2010
The figures provided make no sense to me. Afaik "sectors per track" is not a variable on a physical disc. There is insufficient information supplied to determine the capacity of the physical disc(s) because the number of cylinders is missing.

More questions:

4) What is the manufacturers part number for each disc?
Can you post the data from the sticky label on each physical disc?
5) Is this some sort of SAN?
i.e Is this an example where the physical discs are not visible to the Operating System because of some intervening hardware or software?
# 5  
Old 07-30-2010
4) What is the manufacturers part number for each disc?
HITACHI HTS541616J9SA00

5) Is this some sort of SAN?
No, it is 2,5'' SATA1 disk mounted in notebook

I don't know why manufacturer published such info about this disk.
I fully understand difference between physical vs logical block but completely don't understand why HITACHI has in regard on heads for instance 16 heads logically but 4 heads physically ?
# 6  
Old 07-30-2010
For those who are following this thread, the data probably came from this PDF document from Hitachi. The data table is in table 4.1 . The variable sectors/track size table is in table 4.3 .

http://www.hitachigst.com/tech/techl...ATA_spv1.2.pdf



It makes a but more sense (to me) now because "number of disks" is actually the "number of platters" in old disc speak.

Corona688 has explained it well in an earlier post. The internal workings of the disc drive are not visible to the computer interface which sees the disc as a "normal" drive. The firmware on the drive itself is transparent - a bit like logical discs in a SAN.
# 7  
Old 07-30-2010
Here is a post which explains how to extract the disk geometry metadata. Hard Disk Metadata
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Calculate average from a given set of keys and values

Hello, I am writing a script which expects as its input a hash with student names as the keys and marks as the values. The script then returns array of average marks for student scored 60-70, 70-80, and over 90. Output expected 50-70 1 70-90 3 over 90 0 The test script so far... (4 Replies)
Discussion started by: nans
4 Replies

2. Shell Programming and Scripting

Calculate percent using values in 2 files

Trying to use file1 which is the actual counts in $2 associated with each $1 entry. The total of each $1 is in file2 with the total in $3. So when there is a match between $1 in file1 with $1 in file2, then the % is calculated using the $2 value of file1 and $3 value of file2. Thank you :). ... (4 Replies)
Discussion started by: cmccabe
4 Replies

3. Shell Programming and Scripting

How to calculate avg values of csv file using shell scripting .?

hi all i have a reporting work and i want it to be automated using shell scripting kindly let me know how can i make that possibe . eg data are :... (2 Replies)
Discussion started by: Avinash shaw
2 Replies

4. Shell Programming and Scripting

Calculate average of top n% of values - UNIX

Hey guys, I have several huge tab delimited files which look like this: a 1 20 a 3 15 a 5 10 b 2 15 b 6 10 c 3 23 what I am interested is to calculate the average of top n% of data in third column. So for example for this file the top 50% values are: 23 20 (Please note that it... (11 Replies)
Discussion started by: @man
11 Replies

5. AIX

IBM AIX Internal HDD vs SAN HDD and Oracle

Hi Folks, I am facing an issue with the performance. P4 with 1 processor and 16 GB RAM and SAN HDD = Oracle report takes 25 minutes P5 with 2 processors and 16 GB RAM internall HDD with LPAR = Oracle Report takes 1 hour 15 minutes ( please note I have assigned all the max processors and... (7 Replies)
Discussion started by: filosophizer
7 Replies

6. UNIX for Dummies Questions & Answers

How to calculate umask values?

Hi, I was trying to understand how to calculate umask value but couldnt get the right way to calculate it. can some one please give me a small formula or easy method to do it? Thanks, Waseem (4 Replies)
Discussion started by: ahmedwaseem2000
4 Replies

7. UNIX for Dummies Questions & Answers

Alphabet and numeric values repeat again and again on HDD/Linux-Ubuntu

My system is Linux, Ubuntu. I examine my hard disk drive with a hex editor, it's unencrypted, and when I scroll down, using page down in the ASCII section at right showing the alphanumeric and symbols information, the letters of the alphabet repeat from A-Z along with numbers repeating, followed by... (2 Replies)
Discussion started by: totalrecallz
2 Replies

8. Shell Programming and Scripting

Calculate difference between two successive values

Hi, I have a file containing timestamps (at micro-seconds granularity). It looks like the following: 06:49:42.383818 06:49:42.390190 06:49:42.392308 06:49:42.392712 06:49:42.393437 06:49:42.393960 06:49:42.402115 Now I need a sed/awk script to take the difference of two successive... (2 Replies)
Discussion started by: sajal.bhatia
2 Replies

9. Shell Programming and Scripting

How to calculate the percentage for the values in column

Hi, I am having the file which contains the following two columns. 518 _factorial 256 _main 73 _atol 52 ___do_global_ctors 170 ___main 52 ___do_g How can calculate the percentage of each value in the first column ? first need to get the sum of the first column and... (3 Replies)
Discussion started by: saleru_raja
3 Replies

10. Shell Programming and Scripting

read from a file and calculate values for a specified field

hi guys im running into a problem here im trying to calculate a sum a values from a field for example a hava a file caled <filename> and it has $3 fields, and i want toextract a group of values from field &1 and compute the sum of values from $3 accordingly this is my code so far... awk... (3 Replies)
Discussion started by: lucho_1
3 Replies
Login or Register to Ask a Question