Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Thanks

share|improve this question

4 Answers 4

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

 
discard

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.