LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-22-2010, 11:14 PM   #1
bharathiraja.yogi
LQ Newbie
 
Registered: Jan 2010
Location: Mumbai
Distribution: solaris
Posts: 10

Rep: Reputation: 0
Question Need Hard Disk Details


Hi friends,
What is the command to find out the hard disk details (logical name, FS type etc,). Because i connected one ntfs partition and i don't know the hard disk logical and physical name to mount it.

Thanks | P.Bharathiraja.
 
Old 09-23-2010, 12:48 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
sudo fdisk -l
 
Old 09-23-2010, 02:48 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Jerre Cope View Post
sudo fdisk -l
This is a Gnu/Linux syntax.
 
Old 09-23-2010, 03:11 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
"iostat -En" will give you some details about connected disks. eg:

Code:
# iostat -En
c9d0             Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 
Model: Maxtor 6Y160P0  Revision:  Serial No: Y42FH44E        Size: 163,93GB <163928604672 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 
Illegal Request: 0 
c4t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 
Vendor: ATA      Product: Hitachi HTS72322 Revision: C30F Serial No:  
Size: 200,05GB <200049647616 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 
Illegal Request: 17 Predictive Failure Analysis: 0 
c4t1d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 
Vendor: MATSHITA Product: DVD-RAM UJ890AS  Revision: 1.00 Serial No:  
Size: 0,73GB <733900800 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 
Illegal Request: 0 Predictive Failure Analysis: 0 
c0t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 
Vendor: WDC WD10 Product: EADS-98M2B0      Revision: 0A01 Serial No:  
Size: 1000,20GB <1000204886016 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 
Illegal Request: 27 Predictive Failure Analysis: 0
To get the partition table, you can use the the fdisk command that way, eg:

Code:
# echo "7" | fdisk /dev/rdsk/c9d0p0
             Total disk size is 19929 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Linux native      0    12      13      0
          2                 Linux native     13   404     392      2
          3                 Linux native    405  19797    19393     97
          4                 EXT-DOS        19798  19928     131      1
...
 
1 members found this post helpful.
Old 09-24-2010, 11:50 PM   #5
bharathiraja.yogi
LQ Newbie
 
Registered: Jan 2010
Location: Mumbai
Distribution: solaris
Posts: 10

Original Poster
Rep: Reputation: 0
Thumbs up Very Greatful

Quote:
Originally Posted by jlliagre View Post
"iostat -En" will give you some details about connected disks. eg:

[CODE]# iostat -En
c9d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: Maxtor 6Y160P0 Revision: Serial No: Y42FH44E Size: 163,93GB <163928604672 bytes>

Code:
# echo "7" | fdisk /dev/rdsk/c9d0p0
             Total disk size is 19929 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Linux native      0    12      13      0
          2                 Linux native     13   404     392      2
          3                 Linux native    405  19797    19393     97
          4                 EXT-DOS        19798  19928     131      1
...
Dear Buddy,
Thanks a lot for your helpful command.

Regd | P.Bharathiraja.
 
  


Reply



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
Copy of IBM Server hard disk data to Another USB External Hard disk mazharcdn Linux - Server 2 09-02-2009 12:41 AM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
hard disk details sailu_mvn Linux - Hardware 9 03-15-2005 09:22 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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