Sponsored Content
Full Discussion: Analyse this fdisk -l
Top Forums UNIX for Dummies Questions & Answers Analyse this fdisk -l Post 302720439 by bakunin on Wednesday 24th of October 2012 07:12:08 AM
Old 10-24-2012
Quote:
Originally Posted by stunn3r
Code:
Disk /dev/sda: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Short introduction to disks:

A "hard disk" is (classically - the logic is still used even if it doesn't look like that any more) a stack of rotating platters mounted on a common spindle. On these platters there are concentric rings ("tracks") of magnetic coating. These concentric rings are divided in "sectors".

As the spindle is rotating a device goes in between the platters which looks like a comb, carrying a read/write head on every tip.

The output now tells you the geometry of this disk - at least, as it is told by the disk device to the controller: it has 255 heads, meaning there are are 128 such platters. (Every platter has a lower and an upper side to read from and has 2 [read-write-] heads therefore.)

There are 6527 concentric tracks (=cylinders) on every disk. Because the corresponding tracks on all the platters build a logical unit it is easy to see why this is called a "cylinder".

Lastly, every such track is divided into 63 sectors. Note that sectors occupy a certain angle rather than a certain area of magnetic material. The inner sectors are therefore shorter than the outer sectors, but still can carry the same amount of data. This is the reason why every track is divided into the same number of sectors.


Quote:
Originally Posted by stunn3r
Code:
Disk /dev/sda: 53.6 GB, 53687091200 bytes

This is the disk device itself. "/dev/sda" means the whole disk, while "/dev/sda<n>" means "a certain partition number <n> on /dev/sda"

Quote:
Originally Posted by stunn3r
Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         131     1052226   83  Linux
/dev/sda2             132        2239    16932510   82  Linux swap / Solaris
/dev/sda3            2240        6527    34443360   8e  Linux LVM

The partition table layout for the first disk. Probably this is a Linux system disk and Linux can't boot from LVM volumes. Therefore a single partition "/dev/sda1" to boot from, probably mounted at "/boot" and containing the boot loader (Grub?). Than a partition "/dev/sda2", which contains a swap partition. It is possible to have swap partitions inside the LVM, but some Linux admins hold that it is better to have the swap outside LVM too. Finally a LVM partition, which contains all the other volumes/filesystems there are in the system.



Quote:
Originally Posted by stunn3r
Code:
Disk /dev/sdb: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

The second disk /dev/sdb. It seems not to carry any partitions at all yet. Similar for all the other disks in your system.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Using GDB to analyse different CORE dumps

Hi, Can we modify the GDB source code so as to analyze core dumps from different targets? From my analysis, I think we need to build our section table statically for each target. i.e., including the various address boundaries in build_section_table() function. If this is the case, then the GDB... (2 Replies)
Discussion started by: nsdeeps
2 Replies

2. UNIX for Advanced & Expert Users

how to analyse the contents of a give IP packet?

hi you all! I can write a network program to send and receive some messages. I use read() and write() functions for extracting of sending messages via a given socket. By doing so, i know only the actions performed at the application layer of the TCP/IP suite. But i want to control the actual... (2 Replies)
Discussion started by: solomonml
2 Replies

3. Solaris

Ways to analyse root disk slice

Hi, Recently I faced with need of analyze root disk. I figured out two possible ways to do it: 1. Practical. Boot from CD and run format 2. Theoretical. Create live upgrade boot environment on another disk, activate it, reboot, unmont all root disk partitions and run format. I've already... (3 Replies)
Discussion started by: Sapfeer
3 Replies

4. Shell Programming and Scripting

Logfile analyse | problem with regex

Hello there, i am trying to write a shell script to analyse some of my log files. I want the script to check if there is a logfile from yesterday or today (some times the script that creates the logfile takes a bit longer and its after 00:00) and search the logfile itself if the script was... (0 Replies)
Discussion started by: Linien
0 Replies

5. UNIX for Advanced & Expert Users

analyse core file using pmap and pstack

Dear All, I am new to this forum. This is my first. I am facing customer issue. Customer has got core file while running the server. He had sent core file and details from pstack, pmap and pldd commands. I have to debug this application, please help me to fix this issue. I am using sparc... (1 Reply)
Discussion started by: KiranBangalore
1 Replies

6. Solaris

analyse core file using pmap and pstack

Dear All, I am new to this forum. This is my first. I am facing customer issue. Customer has got core file while running the server. He had sent core file and details from pstack, pmap and pldd commands. I have to debug this application, please help me to fix this issue. I am using sparc 10... (4 Replies)
Discussion started by: KiranBangalore
4 Replies

7. Solaris

I need to analyse some vmcore files

I need to analyse some vmcore files, do you guys know how can i get a free version of the "Solaris Crash Analysis Tool " (2 Replies)
Discussion started by: feg
2 Replies

8. Shell Programming and Scripting

How to analyse results of grep

Hi all, I'm working with a peice of software that runs on Linux that allows planning trips in cars through maps. This software has different variations depending on the type of car, e.g. BMW, Audi, Hyundai, etc... Each variation has a dependency on common external components that are not... (1 Reply)
Discussion started by: emoshaya
1 Replies

9. BSD

OpenBSD fdisk - Linux fdisk compatibility ?

Hello, MBR partition table made by linux fdisk looks certainly not correct when printed by openbsd fdisk: Partition table created on linux (centos 6.3): # fdisk -l /dev/sdc Disk /dev/sdc: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 *... (2 Replies)
Discussion started by: vilius
2 Replies

10. HP-UX

How to analyse the syslog?

Hi All, When can we see these messages in the syslog. We have service guard cluster software installed on hpux 11iv3 servers. We were able to see the below error so many times in our syslog messages cmdisklockd: Unable to convert device to I/O tree node: I/O tree node does not exist. ... (2 Replies)
Discussion started by: Sachin1987
2 Replies
All times are GMT -4. The time now is 09:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy