M.ASKARI.A wrote:
Dear all,
Rekan2 ada yang tau (command console) cara ngecek HD yang ada dalam 1
unit komp?.

Rumit, karena tidak semua hd = /dev/hd??, bisa saja ada scsi hd = /dev/sd??, atau malau hardware raid devices... eg. /dev/cciss/c?d? (compaq smartarray), mylex raid /dev/rd/c?d?

Salah satu cara coba saja probe baca bootsector semua
kemungkinan tipe disk yang disupport linux:

for pb in /dev/hd[a-z] /dev/sd[a-z] /dev/cciss/.. dll; do
    dd if=$pb bs=1b of=/dev/null count=1 > /dev/null 2>&1 &&
    hdlist="$hdlist $pb"
done
echo "Hardisk yang ada = $hdlist"

Tapi ini juga kurang akurat, karena anda tidak tahu jenis raid
(& physical disk) yang digunakan untuk logical raid disk.

--
+-R-| Mozilla 1.6 Gecko20040116 |-H-| Powered by Linux 2.4.x |-9-+
|/v\ Agus Budy Wuysang                            MIS Department |
| |  Phone:  +62-21-344-1316 ext 317    Mobile: +62-816-1972-051 |
+------------| http://www.fasw.co.id/person/supes/ |-------------+

--
Unsubscribe: kirim email kosong ke [EMAIL PROTECTED]
Arsip dan info di http://linux.or.id/milis.php
FAQ milis http://linux.or.id/faq.php



Kirim email ke