How do you scan for all the disk drives on a system.
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do you scan for all the disk drives on a system.
I am a newbie on Linux, I need to know how do I scan for all the disk drives on a system, like on Sun we can run format and on HPUX we have ioscan. Is there a similar command on RedHat Linux.
Actually I am more concerned about the disks which are on the system but they have not been partitioned or mounted, for example a brand new disk on the system but not used atall so how would a new SA would know if there is this disk sitting on the system not being utilized.
and so on. you'll get an 'unable to open dev/hdx' message if there is no drive present. another note: on more recent systems fdisk is in /sbin/ or /usr/sbin/ so simply 'fdisk' will give you an unknown command error. run the program as above, with the full path.
alternatively, if your system uses SATA your drives would most likely be at /dev/sda, /dev/sdb, /dev/sdc, etc.
thanks Devin. So there is no one command that could determine all the disks on a system, a new person really needs to search in the system for the disks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.