NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
disks availableHi all, a simple question: Is there a way under linux, as a user (i.e. without Thanks in advance, -- |
disks available
On Tue, 02 Oct 2007 16:50:23 +0200
Ivan Glushkov wrote:
> Hi all,
>
> a simple question: Is there a way under linux, as a user (i.e.
> without superuser privileges) to find out how many hard drives are
> physically connected on the computer? I am not interested in the info
> given by /etc/fstab or by the df command, since both of them are
> showing mounted disks, which is not what I want...
>
> Thanks in advance,
> Ivan
>
>
lshw (and lshw-gtk) is a good tool to find out things about hardware.
It doesn't need root privileges.
--
Szia:
Nyizsa.
----------------------------------------------------------------------
Finally - A spam blocker that actually works.
http://www.bluebottle.com/tag/4
--
disks available
dmesg | grep "hd" | wc -l
untested.
--
disks available
On Tue, Oct 02, 2007 at 04:50:23PM +0200, Ivan Glushkov wrote:
> a simple question: Is there a way under linux, as a user (i.e. without
> superuser privileges) to find out how many hard drives are physically
> connected on the computer? I am not interested in the info given by
> /etc/fstab or by the df command, since both of them are showing mounted
> disks, which is not what I want...
$ dmesg | less
will show you everything that the kernel reports
As will, e.g., /proc/ide/ide0/hda/model
Doug.
--