Sponsored Content
Top Forums UNIX for Advanced & Expert Users calculate logical layout values for hdd Post 302441426 by Corona688 on Friday 30th of July 2010 03:49:57 PM
Old 07-30-2010
All modern drives are LBA and have been LBA for a very long time. If a drive is a gig or more in size you can safely say it supports LBA.

LBA means the number of heads, tracks, and sectors a drive has -- physical or logical -- are wholly irrelevant now. Ask the drive for sector 0, it gives you sector 0. Ask for sector 99,999,999 and it gives you sector 99,999,999. Ask for sector 16,384 and it gives you sector 16,384. The "structure", if you can call it that, is a straight line from start to finish. The translation between these linear numbers and head, track, sector positioning is all done internally by the drive's microcontrollers and their programming(yes, their firmware.)
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
m_setvalues_layout(3LAYOUT)				 Layout Service Library Functions			       m_setvalues_layout(3LAYOUT)

NAME
m_setvalues_layout - set layout values of a LayoutObject SYNOPSIS
cc [ flag... ] file... -llayout [ library... ] #include <sys/layout.h> int m_setvalues_layout(LayoutObject layout_object, const LayoutValues values, int *index_returned); DESCRIPTION
The m_setvalues_layout() function changes the layout values of a LayoutObject. The layout_object argument specifies a LayoutObject returned by the m_create_layout(3LAYOUT) function. The values argument specifies the list of layout values that are to be changed. The values are written into the LayoutObject and may affect the behavior of subsequent layout functions. Some layout values do alter internal states maintained by a LayoutObject. The m_setvalues_layout() function can be implemented as a macro that evaluates the first argument twice. RETURN VALUES
Upon successful completion, the requested layout values are set and 0 is returned. Otherwise -1 is returned and errno is set to indicate the error. If any value cannot be set, none of the layout values are changed and the (zero-based) index of the first value causing the error is returned in index_returned. ERRORS
The m_setvalues_layout() function may fail if: EINVAL The layout value specified by index_returned is unknown, its value is invalid, or the layout_object argument is invalid. EMFILE There are {OPEN_MAX} file descriptors currently open in the calling process. USAGE
Do not use expressions with side effects such as auto-increment or auto-decrement within the first argument to the m_setvalues_layout() function. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
m_create_layout(3LAYOUT), attributes(5), standards(5) SunOS 5.11 7 Aug 2006 m_setvalues_layout(3LAYOUT)
All times are GMT -4. The time now is 07:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy