04-04-2014, 09:03 PM
Kembali lagi deh yang simple2 heheheh, ya ini cuma iseng sharring aja biar forum gk sepi , kita akan menguji kecepatan hdd device melalui perintah bash/shell
[hide]
Sebagai contoh ane mau nguji hdd pada /dev/sda
tambahan dikit :
Untuk menampilkan informasi HDD (-i) dan geometri (-g)
dan jika hendak melihat temparatur
Untuk ngecek CDroom ada perintah tambahan
lets start some code - Untuk latihan ya
buat file dalam ekstensi .sh
[/hide]
ya semoga saja berguna walau cupu nih thread hehehe
[hide]
Quote:keterangan :
-t Perform device read timings
-T Perform cache read timings
Sebagai contoh ane mau nguji hdd pada /dev/sda
Code:
root@kali:/var/log# hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 6106 MB in 2.00 seconds = 3054.94 MB/sec
Timing buffered disk reads: 314 MB in 3.01 seconds = 104.42 MB/sec
tambahan dikit :
Untuk menampilkan informasi HDD (-i) dan geometri (-g)
Code:
root@kali:/var/log# hdparm -Ttgi /dev/sda
/dev/sda:
geometry = 30401/255/63, sectors = 488397168, start = 0
Model=TOSHIBA MQ01ABD025, FwRev=AX001A, SerialNo=62G1F00ZS
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=488397168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=yes: unknown setting WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-3,4,5,6,7
* signifies the current active mode
Timing cached reads: 5942 MB in 2.00 seconds = 2972.73 MB/sec
Timing buffered disk reads: 278 MB in 3.01 seconds = 92.46 MB/sec
dan jika hendak melihat temparatur
Code:
root@kali:/var/log# hdparm -H /dev/sda
/dev/sda:
drive temperature (celsius) is: 45
drive temperature in range: yes
Untuk ngecek CDroom ada perintah tambahan
lets start some code - Untuk latihan ya
buat file dalam ekstensi .sh
Code:
#/bin/bash
read -p "drive yang hendak di cek:" hdd
sleep 2
hdparm -TtgiH $hdd
ya semoga saja berguna walau cupu nih thread hehehe
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only
for more question and sharing about security and Opensource only