Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

hey I'm just wondering how I can check to see if my server has any available hard drives that havn't been mounted yet. I'm on debiab squeeze.


share|improve this question
up vote 3 down vote accepted

The naive way is to compare /proc/mounts with /proc/partitions; assuming you've got no higher-level block devices (LVM, md), that should work well enough.

share|improve this answer

lot of solutions for this. id prolly go with fdisk -l as a first port of call

share|improve this answer
  • ls /sys/block
  • blkid -c /dev/null
share|improve this answer
fdisk -l

Best place to look imo.

You can also reload the list of SCSI devices attached to the machine if you hot-swap a drive in using:

echo "- - -" > /sys/class/scsi_host/host#/scan

Where # is replaced by the device number.

This should then allow you to see it with

fdisk -l
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.