Linux Dökümanları...

Linux hakkında herşey...

hdparm: Speed up your IDE/ATA hard drive

9/10/2009 · Kategori: GNU_Linux Section

The Linux operating system has a really nice tool for testing and optimizing your hard drive. This tool is called hdparm and can work with both IDE and ATA drives. NOTE: hdparm does NOT work with SATA drives. The hdparm tool is a command line only tool, and even though it should be only used by those who know their systems well, it’s not terribly difficult to use.

But why would you want to speed up your drive when modern drives are already fast enough? Some Linux installations default to slower defaults which, effectively, slow down your drives. Of course using such a tool must come with a warning. WARNING: Using hdparm incorrectly could cause corruption of data.

You do not have to worry about installing hdparm as it should already be installed by default. The basic usage of hdparm is:

hdparm [OPTIONS] [DEVICE]

Of course, by DEVICE, I mean in the Linux vernacular which will be something like /dev/hda.

To get the basic information about your drive you would issue the command:

hdparm /dev/HDA

Where HDA is the actual name of the hard drive you want to work with.

When I run the command:

sudo hdparm /dev/hda

I see the following:

jlwallen@jlwallen-laptop:~$ sudo hdparm /dev/hda
[sudo] password for jlwallen:
/dev/hda:

multcount     =  8
using_dma     =  0
IO_support    =  0 (default)
readonly      =  0 (off)
readahead     = 256 (on)
geometry      = 19457/255/63, sectors = 312581808, start = 0

What is really important in the above output is the IO_Support line. It is set to 0 which is 16-bit. Modern drives support IO mode 1 which is 32-bit mode. By changing this you can nearly double the throughput of your hard drive. But how exactly do you set this? Patience. Before we make this change we want to test the speeds of our drive. To run a standard test issue the command:

sudo hdparm -Tt /dev/HDA

Where SDA is the actual location of your drive. The results should look something like:

/dev/hda:
Timing cached reads:   868 MB in  2.00 seconds = 434 MB/sec
Timing buffered disk reads:  68 MB in  3.01 seconds =  22.52 MB/sec

As you can see the speeds are so-so at best, so let’s kick them up a notch. To do the following:

Enable DMA

Change the IO mode from 16-bit to 32-bit.

Change the maximum number of disk sectors to transfer in a single request.

issue the command:

sudo hdparm -d1 -c1 -m16 /dev/hda

Now when I issue the command:

sudo hdparm /dev/hda

I see:

jlwallen@jlwallen-laptop:~$ sudo hdparm /dev/hda
[sudo] password for jlwallen:
/dev/hda:

multcount     =  16 (on)
using_dma     =  1 (on)
IO_support    =  1 (32-bit)
readonly      =  0 (off)
readahead     = 256 (on)
geometry      = 19457/255/63, sectors = 312581808, start = 0

When the drive speeds are tested now, they should nearly be doubled.

What about SATA?

Naturally there is a tool for the same tricks, but for SATA drives. The sdparm tool is similar in use to the hdparm tool. The sdparm tool, however, is a bit more complex and not nearly as necessary as most SATA drives will give you pretty swift throughput. If you want to use sdparm you will notice that it is not installed by default. You can install sdparm with the command:

sudo apt-get install sdparm

I will dive into sdparm at a later date.

Final thoughts

If you are dealing with older, slower ATA/IDE drives you will probably notice a significant improvement when you use hdparm to speed up your throughput. Give this a go, but I suggest testing it on a non-production machine first.

 

http://www.ghacks.net/2009/10/07/speed-up-your-ideata-hard-drive-with-hdparm/ buradan arakladım...

 

Kalıcı Bağlantı Yorum (yok) Yorum yaz!

how to dock applications into the system tray on ubuntu linux...

13/9/2009 · Kategori: GNU_Linux Section

yeah gençler,

arkadaşın isteği üzerine girdiğim bir araştırma sonucu buldum bu hedeyi...
bu hede sayesinde istediğiniz uygulamayı panel de değil de direk saatin yanına çalışır vaziyette atacağız...

system tray ne oluyor bilmiyorum ama onu da yazayım ki buraya google bunu da indexlesin =)))

ilk önce konsola;
sudo apt-get install kdocker deyin...

şimdi açmak istediğiniz programın başına kdocker ekleyip açın...

şimdi siz üst panele application ları eklerken komut satırına audacious mu yazmıştınız, onu editleyip kdocker audacious yapın...öyle öyle editler ile istediğiniz uygulamaları halledersiniz...

anlamayanlar için konsola kdocker firefox yazmaları ve küçültmeleri rica olunur :P
suç sizde değil benim bu boktan anlatımlarımda :W

Kalıcı Bağlantı Yorum (yok) Yorum yaz!

installing palm web os on ubuntu...

13/9/2009 · Kategori: GNU_Linux Section

yeah gençler,
öncelikle niye kurdum ve ne işe yarıyor bilmiyorum, ben sadece webos ları araştırırken buldum ve meraklanma sonucu kurdum...

neyse anlatalım;

ilk önce bu dalgayı indirip kurun,
http://developer.palm.com/index.php?option=com_content&view=article&id=1788

sonra teker teker yapın şunları :W

sudo gedit /etc/apt/sources.list
en alta ekleyin bunu;
deb http://download.virtualbox.org/virtualbox/debian hardy non-free

sonra şunları de konsola;
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-2.2

şimcik bunu da indirip kur;
https://cdn.downloads.palm.com/sdkdownloads/1.1.0.19/sdkBinaries/novacom_1.0.38_i386.deb

java nın son sürüm kuruludur herhalde ama her ihtimale karşı ver bunu da konsola;
sudo apt-get install sun-java6-jre

herşey bitmiştir artık çalıştırmak için ver konsola bunu da;
palm-emulator

yeah gençler, ne işe yaradığını bilen varsa bunun anlatsın bana da :W

http://img2.pict.com/f6/0e/ed/1610952/0/800/ekrangc3b6rc3bcntc3bcsc3bc.png

http://img2.pict.com/f6/05/65/1610923/0/800/ekrangc3b6rc3bcntc3bcsc3bc1.png

alın görüntü bilem verdim...

Kalıcı Bağlantı Yorum (yok) Yorum yaz!

how to find files with command line...

9/9/2009 · Kategori: GNU_Linux Section

yeah gençler,

şimdi size linuxta konsol altında dosyaları aratma / bulmayı anlatacağım...

bunun için kullanacağımız komut "find"

örneklerle anlatmak sanki daha uygun O.o

boş dizinleri aramayı deneyelim bakalım;
find /dizin_yolu -depth -type d -empty              => find /etc -depth -type d -empty

boş dosyaları aramak için;
find /dizin_yolu -depth -type f -empty               => find /etc -depth -type f -empty

ismini bildiğin hedeyi aramak;
find /dizin -name "isim"                                       => find /etc -name "sources.list"

uzantı olarak hedeyi aramak;
find /dizin -name "*.txt"                                       => find ~/ -name "*.txt"

izinlerini bildiğin uzantıyı aramak;
find /dizin -name "*.txt" -perm 777                     => find ~/ -name '*.txt' -perm 644

izinlere göre aramak;
find /dizin -perm -izin_şeysi                                 => find ~/ -perm -644

ismini bilip uzantısını bilmediğin hedeyi aramak;
find /dizin -name "dosya_ismi.*"                          => find /etc -name "sources.*"

son 24 saat içinde değiştirilmiş dosyaları bulmak;
find /dizin -mtime 0,1,2                                        => find ~/ -mtime 0
dip not: 24 saat için 0, 48 saat için 1, 72 saat için 2 yazmalısınız...

son 24 saat içinde giriş yapılmış hedeleri bulmak
find -atime 0,1,2                                                    => find -atime 0

sahibine göre arama yapmak;
find /dizin -user kullanıcı_adı                                => find ~/ -user root

yeter lan bu kadar, hadi dağılın bakayım :Z

Kalıcı Bağlantı Yorum (2) Yorum yaz!

ubuntu low voice solution...

9/9/2009 · Kategori: GNU_Linux Section

yeah gençler,
demin bir arkadaşın yaşadığı bir sorundan dolayı böyle bir şey yazıyorum...

arkadaşın pc den az ses geliyormuş ve google da aratınca çok insanın bu sorunu yaşadığını söyledi...
bende konsola gnome-volume-control yazmasını istedim ve oradan sorunu çözdü...

bence de hiç blog a yazılası bir şey değil ama uzun zamandır bir şey yazmıyordum buraya iş gereği, bozayım ulan şu düzeni dedim...

işine yararsa ne ala...
inşallah başka bir akşam tekrar buluşman üzere gençler...

Kalıcı Bağlantı Yorum (yok) Yorum yaz!

« Önceki ::