LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2008, 08:36 AM   #1
bopedibop
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Rep: Reputation: 0
How to read disk info, partitons, logical disks?


Hi

Iam troubled.

I cant figure out how to read this.

How can i see logical disks? it might not be any?

c0d0= is that 1 disk
c0d0p1 = is that partition, then it would be 10 partitions

But if i enter df -h i says 8 partitions.
Where /dev/cciss/c0d0p4 is gone wich could be the other disk? and /dev/cciss/c0d0p6 wich is swapped, wich shuldnt be shown i assume.

that one /dev/cciss/c0d0p4 is says that its extended, would that be with the other disk c0d1:

Disk /dev/cciss/c0d0: 73.3 GB, 73372631040 bytes
255 heads, 63 sectors/track, 8920 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 274 2096482+ 83 Linux
/dev/cciss/c0d0p3 275 535 2096482+ 83 Linux
/dev/cciss/c0d0p4 536 8920 67352512+ 5 Extended
/dev/cciss/c0d0p5 536 1057 4192933+ 83 Linux
/dev/cciss/c0d0p6 1058 1579 4192933+ 82 Linux swap / Sol aris
/dev/cciss/c0d0p7 1580 1840 2096451 83 Linux
/dev/cciss/c0d0p8 1841 2101 2096451 83 Linux
/dev/cciss/c0d0p9 2102 2362 2096451 83 Linux
/dev/cciss/c0d0p10 2363 8920 52677103+ 83 Linux

Disk /dev/cciss/c0d1: 587.1 GB, 587128266752 bytes
255 heads, 32 sectors/track, 140531 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d1p1 1 140531 573366464 83 Linux
 
Old 02-26-2008, 08:48 AM   #2
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
I'm not quite sure what your question is, but everything you showed seems to be normal.

Your disk /dev/cciss/c0d0 has 10 partitions. One of them is swap and one of them is the Extended partition. The remaining 8 are 'normal' partitions, and all of them seem to be mounted, as you say. (Actually I just see that there is a second hard disk with one partition. So out of 9 mountable partitions, 8 are used. Either df or mount will show you which ones)

The Extended partition is just a container for the partitions 5-10. It's a relict from DOS times, to overcome the limit of only 4 partitions per disk. (Have a look at the Start and End values)

PS: From the unusual device names I would guess that these are devices on a raid controller, so /dev/cciss/c0d0 and /dev/cciss/c0d1 are probably not single physical disks but raid volumes consisting of several physical disks.

Last edited by rupertwh; 02-26-2008 at 08:51 AM.
 
Old 02-26-2008, 08:52 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I don't know what this notation is: "c0d0p1" What kind of a system are you using?

It APPEARS that the partition numbering follows the conventions most often seen--to wit:
4 primary partitions are allowed
To have more than 4 partitions, you need one of the 1st 4 to be an "extended" partition--hence your p4 extended
Any partition with a number higher than 4 is always a logical partition
filesystem tools will typically not report on extended partitions or swap space
partitioning tools will show the swap partition, but not always the extended

Note that an "extended partition" is really the begininning of a linked list. At each step in the list, there is another extended partition which points to the next logical. You can't set up a filesystem or store data in an extended partition.
 
Old 02-26-2008, 09:10 AM   #4
bopedibop
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for a quickly respons.

I just wanted to know how i can see if this is 2 logical disks or 2 physical disks.

But after some thinking and discussions i think that it is 2 logical disks
because of this /dev/cciss/ that should say that it is on a raid card.

And 10 partitions on disk1 and 1 partition on disk 2 and so on...

Your commeent got me on the right track.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Logical disks and physical location on Sparc dazdaz Solaris / OpenSolaris 2 09-11-2007 09:52 AM
Does making lvm on logical disks struck XP from installation? nirmaltom Linux - Software 2 07-29-2006 06:35 AM
Is there a tool that can read a corrupted logical disk drive HGeneAnthony Linux - General 2 07-04-2006 01:19 AM
How to read the disk stats info in the command line ICO SUSE / openSUSE 1 09-20-2005 02:13 AM
Double your disk space without compression. (hidden partitons) qwijibow Linux - Hardware 1 03-10-2004 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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