LinuxQuestions.org
Help answer threads with 0 replies.
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 09-11-2008, 10:20 AM   #1
chococharlie
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Rep: Reputation: 0
Device Manager equivalent? I want to check HDDs


Hi Guys,

I got a linux box at work to which I SSH. It doesn't have a GUI just CLI.

I want to know how many HDDs and their type/size are physically in the box, I'm sure it's possible but how?

Thank you

Choco
 
Old 09-11-2008, 10:22 AM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
As root:
Code:
fdisk -l
 
Old 09-11-2008, 10:28 AM   #3
chococharlie
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
ah cool!

So every time I see a line such as:

Disk /dev/sda: 40.0 GB, 40000000000 bytes

I assume it's a physical HDD?

I can see the following:

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 257 MB, 257949696 bytes
8 heads, 62 sectors/track, 1015 cylinders

Disk /dev/ide/host0/bus0/target0/lun0/disc: 20.4 GB, 20416757760 bytes
255 heads, 63 sectors/track, 2482 cylinders

Disk /dev/ide/host0/bus0/target1/lun0/disc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
 
Old 09-11-2008, 10:39 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
another way to view the drive information is with lshw.

lshw -C disk

note: this does NOT show how the drives are partitioned.
 
Old 09-11-2008, 10:40 AM   #5
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
yep, but I've never seen those "target/lun0" things b4. Are they scsi? What distro are you using?
 
Old 09-11-2008, 10:43 AM   #6
chococharlie
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
If you tell me how to find the distro from the CLI I will tell you
 
Old 09-11-2008, 10:50 AM   #7
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Code:
cat /etc/*release
should work depending on the distro you have, lol.
 
Old 09-11-2008, 10:51 AM   #8
chococharlie
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
another way to view the drive information is with lshw.

lshw -C disk

note: this does NOT show how the drives are partitioned.
This command doesn't work on my box ~_~
 
Old 09-11-2008, 10:52 AM   #9
chococharlie
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by CRC123 View Post
Code:
cat /etc/*release
should work depending on the distro you have, lol.
hehe.. man you're good!

here it is:
Gentoo Base System version 1.4.3.13

Last edited by chococharlie; 09-11-2008 at 10:55 AM.
 
Old 09-11-2008, 10:59 AM   #10
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Cool. I don't have the lshw command either (it may only come standard with Debian or maybe farslayer installed it manually). but anyways, anything that fdisk -l prints will only be physical disks and it should list the partitions on that disk under it. If it doesn't, they may be unrecognized partitions(lvm, raid, etc).
 
Old 09-11-2008, 11:02 AM   #11
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Quote:
Originally Posted by chococharlie View Post
hehe.. man you're good!
You'll find that there are many people here that are much more skilled than me. I love this place!


Quote:
Originally Posted by chococharlie View Post
here it is:
Gentoo Base System version 1.4.3.13
LOL, I swore that just said Red Hat not 2 minutes ago . Next time you edit the post, please place an "edit" tag of some sort so it doesn't confuse people
 
Old 09-11-2008, 11:07 AM   #12
chococharlie
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by CRC123 View Post
You'll find that there are many people here that are much more skilled than me. I love this place!




LOL, I swore that just said Red Hat not 2 minutes ago . Next time you edit the post, please place an "edit" tag of some sort so it doesn't confuse people
You are correct hehe I was connected to two machines and made a mistake, I was hoping that the edit was quick enough for you not to notice, but I failed. Thanks again, you are right this place rocks!

By the way, I am planning to install Linux on my windows box with VMware, what distro do you recommend?
 
Old 09-11-2008, 11:19 AM   #13
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
If your not confident with Linux yet, I'd recommend a distro that has good support/documentation. Ubuntu, opensuse, and fedora come to mind when take those things into consideration (they are also normally the top 3 on distrowatch.com). I obviously prefer suse because it has great documentation, YAST(some hate, some love, I love it), good hardware support, and lots of extra repositories to download programs from. The latest one even has an opensource version of vmware tools that will be automatically installed if you run it in a vmware virtual machine.
 
Old 09-11-2008, 11:45 AM   #14
chococharlie
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks again sir, I will install Ubuntu for now.

Be ready for MANY MANY questions hehe
 
Old 09-11-2008, 11:59 AM   #15
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Yes I installed lshw manually as you say, it is not in Debian by default either.. aptitude install lshw
lshw is an excellent command line utility for gathering hardware information.


Heres a preview of how it displays some information.

Code:
it-etch:~# lshw -C disk
  *-disk                  
       description: ATA Disk
       product: Hitachi HDS72161
       vendor: Hitachi
       physical id: 0.0.0
       bus info: scsi@0:0.0.0
       logical name: /dev/sda
       version: P22O
       serial: PVB12345T2WGWH
       size: 149GiB (160GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=0e1234f4
  *-disk
       description: SCSI Disk
       physical id: 0.0.0
       bus info: scsi@4:0.0.0
       logical name: /dev/sdb
       size: 1009MiB (1058MB)
       capabilities: partitioned partitioned:dos
       configuration: signature=0123bda7
  *-cdrom
       description: DVD writer
       product: PHILIPS DVD+/-RW DVD8801
       vendor: Philips
       physical id: 0
       bus info: ide@0.0
       logical name: /dev/hda
       logical name: /media/cdrom0
       version: 4D28
       capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy audio cd-r cd-rw dvd dvd-r
       configuration: mode=udma2 mount.fstype=iso9660 mount.options=ro,nosuid,nodev,noexec state=mounted status=ready
     *-medium
          physical id: 0
          logical name: /dev/hda
          logical name: /media/cdrom0
          configuration: mount.fstype=iso9660 mount.options=ro,nosuid,nodev,noexec state=mounted


it-etch:~# lshw -C storage
  *-storage               
       description: SATA controller
       product: SB600 Non-Raid-5 SATA
       vendor: ATI Technologies Inc
       physical id: 12
       bus info: pci@0000:00:12.0
       logical name: scsi0
       version: 00
       width: 32 bits
       clock: 66MHz
       capabilities: storage pm msi bus_master cap_list emulated
       configuration: driver=ahci latency=64 module=ahci
  *-usb
       description: Mass storage device
       product: Flash Disk
       vendor: CBM
       physical id: 7
       bus info: usb@6:7
       logical name: scsi4
       version: 1.00
       serial: 01171234AFEF1002
       capabilities: usb-2.00 scsi emulated scsi-host
       configuration: driver=usb-storage maxpower=100mA speed=480.0MB/s
  *-ide
       description: IDE interface
       product: SB600 IDE
       vendor: ATI Technologies Inc
       physical id: 14.1
       bus info: pci@0000:00:14.1
       version: 00
       width: 32 bits
       clock: 66MHz
       capabilities: ide msi bus_master cap_list
       configuration: driver=ATIIXP_IDE latency=64 module=atiixp
Very clean detailed listings of pretty much any hardware in your system.

Last edited by farslayer; 09-11-2008 at 12:01 PM.
 
  


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
Is There a Linux Task Manager Equivalent to you know who's? Kevin Tough Linux - Newbie 14 11-21-2012 05:47 PM
Linux equivalent of task manager invinciblegod Linux - General 1 07-26-2005 03:00 AM
Task manager equivalent, System info etc... debnewb Debian 5 02-10-2005 03:21 PM
Equivalent of Windows XP's Task Manager? CGameProgrammer Linux - Newbie 3 10-14-2004 08:13 AM
linux task manager equivalent. mrpringle Linux - Software 4 07-04-2004 01:13 AM


All times are GMT -5. The time now is 10:22 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration