On Thu, May 27, 2004 at 11:04:18PM +1000, Ronny Haryanto wrote: > On Thu, May 27, 2004 at 07:41:07PM +0700, Agus Budy Wuysang wrote: > > 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. > > Kalo pake devfs tinggal 'ls -l /dev/discs/' kan yah? > Ini contoh di komp saya dg dua hd ide: > > [EMAIL PROTECTED]:~# ls -l /dev/discs/ > total 0 > lr-xr-xr-x 1 root root 30 Jan 1 1970 disc0 -> ../ide/host0/bus0/target0/lun0/ > lr-xr-xr-x 1 root root 30 Jan 1 1970 disc1 -> ../ide/host0/bus0/target1/lun0/
Atau bisa juga (kalo nggak pake devfs) di lihat di /proc/devices bagian Block devices (tinggal dibuang aja bagian yg nggak perlu) prompt:~# cat /proc/devices ... Block devices: 1 ramdisk 2 fd 3 ide0 22 ide1 Salam, Andrew... > > Ronny > > -- > My public key is available at http://ronny.haryan.to/publickey.asc > Fingerprint: 2D4E DF33 4D5B FA3C 8423 0D00 E525 978D 1ED1 19A0 -- 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
