Here's an easy question for you guys: How do I find out what hard drives are attached to a linux box? I'm hoping for a single command that can give me a nice list of all ata/scsi/etc drives.
I've catted /proc/partitions in the past to do this, but I wonder if that still works if there's a drive with no partitions on it.
Best Answer
sudo lshw -class disk
gives you everything but the mount point
sudo lshw -class disk -html