[Share] Sedikit perintah shell untuk menguji Kecepatan HDD
#1
Kembali lagi deh yang simple2 heheheh, ya ini cuma iseng sharring aja biar forum gk sepi Smile , kita akan menguji kecepatan hdd device melalui perintah bash/shell

[hide]
Quote:keterangan :
-t Perform device read timings
-T Perform cache read timings

Sebagai contoh ane mau nguji hdd pada /dev/sda Smile

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 Smile - Untuk latihan ya

buat file dalam ekstensi .sh

Code:
#/bin/bash
read -p "drive yang hendak di cek:" hdd
sleep 2
hdparm -TtgiH $hdd
[/hide]

ya semoga saja berguna walau cupu nih thread hehehe
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only

#2
(04-04-2014, 09:16 PM)Muhammad Naufal Wrote: makasih kang zico, gak terlalu cupu sih kang :-bd

hehehe makasih2
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only

#3
(04-04-2014, 09:28 PM)zee eichel Wrote:
(04-04-2014, 09:16 PM)Muhammad Naufal Wrote: makasih kang zico, gak terlalu cupu sih kang :-bd

hehehe makasih2

om zee ada tutorial bash ngga ?? ane pengen belajar bash nih om :d :-bd
Twitter : Orang Sederhana
FB : Orang Sederhana
OrangSederhana@IBTeam:~#


#4
Saya baru mencoba install Zentyal Server 3.4 di VMware Workstation 10. Setelah selese installasi kenapa tidak muncul GUI nya ya Undecided

#5
wah mantep om zee :-bd nice share baru tau nih om kalo bisa seperti itu untuk mengecek kondisi disk.. Big Grinsoalnya biasa cuma menggunakan gnome-disk-utility aja om, ternyata bisa juga melihat kondisi disk melalui command line ya? Big Grin
oh ya om zee tapi untuk mengecek(melihat) temperature dari hdd kita, hanya hdd dengan merk Hitachi aja ya yang bisa di cek dengan opsi -H itu om?
Spoiler! :
Quote:
Code:
hdparm - get/set hard disk parameters - version v9.37, by Mark Lord.

Usage:  hdparm  [options] [device ...]

Options:
-a   Get/set fs readahead
-A   Get/set the drive look-ahead flag (0/1)
-b   Get/set bus state (0 == off, 1 == on, 2 == tristate)
-B   Set Advanced Power Management setting (1-255)
-c   Get/set IDE 32-bit IO setting
-C   Check drive power mode status
-d   Get/set using_dma flag
-D   Enable/disable drive defect management
-E   Set cd/dvd drive speed
-f   Flush buffer cache for device on exit
-F   Flush drive write cache
-g   Display drive geometry
-h   Display terse usage information
-H   Read temperature from drive (Hitachi only)
-i   Display drive identification
-I   Detailed/current information directly from drive
-k   Get/set keep_settings_over_reset flag (0/1)
-K   Set drive keep_features_over_reset flag (0/1)
-L   Set drive doorlock (0/1) (removable harddisks only)
-m   Get/set multiple sector count
-M   Get/set acoustic management (0-254, 128: quiet, 254: fast)
-n   Get/set ignore-write-errors flag (0/1)
-N   Get/set max visible number of sectors (HPA) (VERY DANGEROUS)
-p   Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P   Set drive prefetch count
-q   Change next setting quietly
-Q   Get/set DMA queue_depth (if supported)
-r   Get/set device readonly flag (DANGEROUS to set)
-R   Obsolete
-s   Set power-up in standby flag (0/1) (DANGEROUS)
-S   Set standby (spindown) timeout
-t   Perform device read timings
-T   Perform cache read timings
-u   Get/set unmaskirq flag (0/1)
-U   Obsolete
-v   Use defaults; same as -acdgkmur for IDE drives
-V   Display program version and exit immediately
-w   Perform device reset (DANGEROUS)
-W   Get/set drive write-caching flag (0/1)
-x   Obsolete
-X   Set IDE xfer mode (DANGEROUS)
-y   Put drive in standby mode
-Y   Put drive to sleep
-z   Re-read partition table
-Z   Disable Seagate auto-powersaving mode
--dco-freeze      Freeze/lock current device configuration until next power cycle
--dco-identify    Read/dump device configuration identify data
--dco-restore     Reset device configuration back to factory defaults
--direct          Use O_DIRECT to bypass page cache for timings
--drq-hsm-error   Crash system with a "stuck DRQ" error (VERY DANGEROUS)
--fallocate       Create a file without writing data to disk
--fibmap          Show device extents (and fragmentation) for a file
--fwdownload            Download firmware file to drive (EXTREMELY DANGEROUS)
--fwdownload-mode3      Download firmware using min-size segments (EXTREMELY DANGEROUS)
--fwdownload-mode3-max  Download firmware using max-size segments (EXTREMELY DANGEROUS)
--fwdownload-mode7      Download firmware using a single segment (EXTREMELY DANGEROUS)
--idle-immediate  Idle drive immediately
--idle-unload     Idle immediately and unload heads
--Istdin          Read identify data from stdin as ASCII hex
--Istdout         Write identify data to stdout as ASCII hex
--make-bad-sector Deliberately corrupt a sector directly on the media (VERY DANGEROUS)
--offset          use with -t, to begin timings at given offset (in GiB) from start of drive
--prefer-ata12    Use 12-byte (instead of 16-byte) SAT commands when possible
--read-sector     Read and dump (in hex) a sector directly from the media
--security-help   Display help for ATA security commands
--trim-sector-ranges        Tell SSD firmware to discard unneeded data sectors: lba:count ..
--trim-sector-ranges-stdin  Same as above, but reads lba:count pairs from stdin
--verbose         Display extra diagnostics from some commands
--write-sector    Repair/overwrite a (possibly bad) sector directly on the media (VERY DANGEROUS)


(04-30-2014, 05:19 PM)orang sederhana Wrote:
(04-04-2014, 09:28 PM)zee eichel Wrote:
(04-04-2014, 09:16 PM)Muhammad Naufal Wrote: makasih kang zico, gak terlalu cupu sih kang :-bd

hehehe makasih2

om zee ada tutorial bash ngga ?? ane pengen belajar bash nih om :d :-bd
om @orang sederhana mungkin ini bisa sedikit membantu om, kemarin pas muter" cari e-book ketemu dengan e-book tentang bash programing didalam modul ini sepertinya seraca detail dibahas om.. tapi aku juga belum selesai bacanya.. \m/
monggo download di mari om
(*) Link Asli - Download Via Torrent
(*) Mirror - Download Via Dropbox
[Correct Me If I Worng]

#6
(05-01-2014, 01:26 AM)Track-R Wrote: wah mantep om zee :-bd nice share baru tau nih om kalo bisa seperti itu untuk mengecek kondisi disk.. Big Grinsoalnya biasa cuma menggunakan gnome-disk-utility aja om, ternyata bisa juga melihat kondisi disk melalui command line ya? Big Grin
oh ya om zee tapi untuk mengecek(melihat) temperature dari hdd kita, hanya hdd dengan merk Hitachi aja ya yang bisa di cek dengan opsi -H itu om?
Spoiler! :
Quote:
Code:
hdparm - get/set hard disk parameters - version v9.37, by Mark Lord.

Usage:  hdparm  [options] [device ...]

Options:
-a   Get/set fs readahead
-A   Get/set the drive look-ahead flag (0/1)
-b   Get/set bus state (0 == off, 1 == on, 2 == tristate)
-B   Set Advanced Power Management setting (1-255)
-c   Get/set IDE 32-bit IO setting
-C   Check drive power mode status
-d   Get/set using_dma flag
-D   Enable/disable drive defect management
-E   Set cd/dvd drive speed
-f   Flush buffer cache for device on exit
-F   Flush drive write cache
-g   Display drive geometry
-h   Display terse usage information
-H   Read temperature from drive (Hitachi only)
-i   Display drive identification
-I   Detailed/current information directly from drive
-k   Get/set keep_settings_over_reset flag (0/1)
-K   Set drive keep_features_over_reset flag (0/1)
-L   Set drive doorlock (0/1) (removable harddisks only)
-m   Get/set multiple sector count
-M   Get/set acoustic management (0-254, 128: quiet, 254: fast)
-n   Get/set ignore-write-errors flag (0/1)
-N   Get/set max visible number of sectors (HPA) (VERY DANGEROUS)
-p   Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P   Set drive prefetch count
-q   Change next setting quietly
-Q   Get/set DMA queue_depth (if supported)
-r   Get/set device readonly flag (DANGEROUS to set)
-R   Obsolete
-s   Set power-up in standby flag (0/1) (DANGEROUS)
-S   Set standby (spindown) timeout
-t   Perform device read timings
-T   Perform cache read timings
-u   Get/set unmaskirq flag (0/1)
-U   Obsolete
-v   Use defaults; same as -acdgkmur for IDE drives
-V   Display program version and exit immediately
-w   Perform device reset (DANGEROUS)
-W   Get/set drive write-caching flag (0/1)
-x   Obsolete
-X   Set IDE xfer mode (DANGEROUS)
-y   Put drive in standby mode
-Y   Put drive to sleep
-z   Re-read partition table
-Z   Disable Seagate auto-powersaving mode
--dco-freeze      Freeze/lock current device configuration until next power cycle
--dco-identify    Read/dump device configuration identify data
--dco-restore     Reset device configuration back to factory defaults
--direct          Use O_DIRECT to bypass page cache for timings
--drq-hsm-error   Crash system with a "stuck DRQ" error (VERY DANGEROUS)
--fallocate       Create a file without writing data to disk
--fibmap          Show device extents (and fragmentation) for a file
--fwdownload            Download firmware file to drive (EXTREMELY DANGEROUS)
--fwdownload-mode3      Download firmware using min-size segments (EXTREMELY DANGEROUS)
--fwdownload-mode3-max  Download firmware using max-size segments (EXTREMELY DANGEROUS)
--fwdownload-mode7      Download firmware using a single segment (EXTREMELY DANGEROUS)
--idle-immediate  Idle drive immediately
--idle-unload     Idle immediately and unload heads
--Istdin          Read identify data from stdin as ASCII hex
--Istdout         Write identify data to stdout as ASCII hex
--make-bad-sector Deliberately corrupt a sector directly on the media (VERY DANGEROUS)
--offset          use with -t, to begin timings at given offset (in GiB) from start of drive
--prefer-ata12    Use 12-byte (instead of 16-byte) SAT commands when possible
--read-sector     Read and dump (in hex) a sector directly from the media
--security-help   Display help for ATA security commands
--trim-sector-ranges        Tell SSD firmware to discard unneeded data sectors: lba:count ..
--trim-sector-ranges-stdin  Same as above, but reads lba:count pairs from stdin
--verbose         Display extra diagnostics from some commands
--write-sector    Repair/overwrite a (possibly bad) sector directly on the media (VERY DANGEROUS)


(04-30-2014, 05:19 PM)orang sederhana Wrote:
(04-04-2014, 09:28 PM)zee eichel Wrote:
(04-04-2014, 09:16 PM)Muhammad Naufal Wrote: makasih kang zico, gak terlalu cupu sih kang :-bd

hehehe makasih2

om zee ada tutorial bash ngga ?? ane pengen belajar bash nih om :d :-bd
om @orang sederhana mungkin ini bisa sedikit membantu om, kemarin pas muter" cari e-book ketemu dengan e-book tentang bash programing didalam modul ini sepertinya seraca detail dibahas om.. tapi aku juga belum selesai bacanya.. \m/
monggo download di mari om
(*) Link Asli - Download Via Torrent
(*) Mirror - Download Via Dropbox

wuuuiihh makasih banyak om @Track-R$ link nya . aku download ya hihih :d
sukses selalu temen temen IBTeam :-bd
Twitter : Orang Sederhana
FB : Orang Sederhana
OrangSederhana@IBTeam:~#


#7
(05-02-2014, 12:12 PM)orang sederhana Wrote: wuuuiihh makasih banyak om @Track-R$ link nya . aku download ya hihih :d
sukses selalu temen temen IBTeam :-bd

oke om sama" Big Grin monggo di dunlut.. :-bd
salam sukses \m/
[Correct Me If I Worng]

#8
om itu torrent ya ? aduuhh ane ga kuat koneksi kalo torrent :'(
Twitter : Orang Sederhana
FB : Orang Sederhana
OrangSederhana@IBTeam:~#


#9
(05-02-2014, 01:57 PM)orang sederhana Wrote: om itu torrent ya ? aduuhh ane ga kuat koneksi kalo torrent :'(

ada yang dropbox kok om.. udah ku mirrorin.. Big Grin
ngk gede juga kok file nya om..
[Correct Me If I Worng]

#10
Bermanfaat banget om ,, nice info :-bd:-bd:-bd






Users browsing this thread: 1 Guest(s)