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 |
As root:
Code:
fdisk -l |
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 |
another way to view the drive information is with lshw.
lshw -C disk note: this does NOT show how the drives are partitioned. |
yep, but I've never seen those "target/lun0" things b4. Are they scsi? What distro are you using?
|
If you tell me how to find the distro from the CLI I will tell you :)
|
Code:
cat /etc/*release |
Quote:
|
Quote:
here it is: Gentoo Base System version 1.4.3.13 |
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).
|
Quote:
Quote:
|
Quote:
By the way, I am planning to install Linux on my windows box with VMware, what distro do you recommend? |
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.
|
Thanks again sir, I will install Ubuntu for now.
Be ready for MANY MANY questions hehe :) |
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 |
All times are GMT -5. The time now is 02:29 PM. |