Hard Drive Info?

This is a link to a directory, not a thread. Do you want us to read everything?

Jeff
 
I don't think there is a way to view hard drive info in current DA?

Do you want actual hard drive info, partition info, or mounted file systems info?

You can already see all the information about mounted filesystems.
 
Good point, Floyd.

Also, since looking at the actual hard drive information differs between different distributions, it's not as easy to do across a multi-OS program such as DirectAdmin; it would require a different code base.

For example, under linux it's usually found in the /proc psuedo-file system.

Jeff
 
Of course I don't know what code DA actually uses but here is a sample of how the information differs depending on that you want.

Code:
[root@server public_html]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             74610176  18621152  52137844  27% /
/dev/hda1               101086     21523     74344  23% /boot
tmpfs                   501388         0    501388   0% /dev/shm

Code:
[root@server public_html]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14         140     1020127+  82  Linux swap / Solaris
/dev/hda3             141        9729    77023642+  83  Linux

Code:
[root@server public_html]# cat /proc/ide/ide0/hda/model
WDC WD800JB-00JJA0
[root@server public_html]#

This is on a CentOS machine. As Jeff said other systems may vary.

You could probably write some php code to put in the skin for your system to tell you the stuff DA doesn't already tell you.
 
Last edited:
And for scsi and sata drives:
Code:
$ cat /proc/scsi/scsi
At least on my systems. On one system, for example:
Code:
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST3120827AS      Rev: 3.42
  Type:   Direct-Access                    ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST3120827AS      Rev: 3.42
  Type:   Direct-Access                    ANSI SCSI revision: 05
$
These are two Seagate model ST320827AS drives.

Jeff
 
Back
Top