The Free Software Foundation (FSF) has started a signature campaign to make people aware of the perils of an upcoming feature in PC hardware namely - Secure boot.
Showing posts with label hardware. Show all posts
Showing posts with label hardware. Show all posts
World's First Solar Powered Desktop PC
July 26, 2011 Posted by Ravi
How would you like to own a Desktop PC that runs on solar power ? A solar PC that can work upto 3 - 4 days without sunlight ? A PC that helps you reduce your carbon footprint thus helping you contribute your mite in saving the environment ? And - drum-roll please - one that comes pre-loaded with Linux ?
Would You Use A Chromebook If You Got One For Free ?
May 14, 2011 Posted by Ravi
Google has unveiled the Chromebook - a laptop that runs on Chrome OS. The Chrome OS is a cloud based operating system which means that all your data (or most of it) will be stored on a remote server rather than on the local hard drive. Another way of saying it is you can literally rip apart and destroy your Chromebook (assuming you have deep pockets) and still get a good night's sleep because your data is safely backed up somewhere on the net.
Home Computer - Green, Palm Sized Computer For Rs 5000
January 20, 2011 Posted by Ravi
elLoka Techsolutions Pvt Ltd a Hyderabad based product design and manufacturing company that delivers Ultra Low Cost Computer Platforms(ULCCP), has come up with a palm-sized computer that is very cheap and consumes very little power.
The computer is on display at the Rambagh SMS Convention center in Jaipur, Rajasthan where a three-day Commonwealth and information technology meet is on.
The computer is on display at the Rambagh SMS Convention center in Jaipur, Rajasthan where a three-day Commonwealth and information technology meet is on.
Google Unveils Chrome OS - A Browser Based Operating System
December 08, 2010 Posted by Ravi
Chrome OS which runs on a customized Linux kernel banks heavily on the concept of Cloud computing. All your data and the applications reside on a remote server and not on your machine.
Google portable device runs Debian Linux
January 16, 2009 Posted by RaviThe portable device I am talking about is the T-Mobile G1 Android cellphone. Android is a software stack for mobile devices that includes an Operating System, Middleware and key applications. Presumably, the T-Mobile G1 contains an ARM EABI architecture which is supported by Debian.
So a group of people (hackers) set out to install Debian on their T-Mobile G1 Android phone. The end result, at the least, is quite interesting. They have succeeded in running a full fledged Debian OS on their G1 Android cellphone at the same time, retain all the features which allow it to function as a cellphone such as receiving and making calls.
Read a detailed writeup on the steps needed to install Debian on a TMobile G1 Phone at the following website. AndroidFanatic.com has released a Debian installer script for your Android cellphone which you can download here.
Also watch the following video which shows Debian running on the Android G1 cellphone.
Read a detailed writeup on the steps needed to install Debian on a TMobile G1 Phone at the following website. AndroidFanatic.com has released a Debian installer script for your Android cellphone which you can download here.
Also watch the following video which shows Debian running on the Android G1 cellphone.
Kingston unveils 32GB Linux friendly USB drive
October 10, 2008 Posted by RaviRecent advances in storage technology has made it possible to literally carry all your data in your pocket. Kingston - one of the major global players in the USB storage and memory market with more than 2,000 memory products in its offing, has unveiled a 32GB USB flash drive called "DataTraveller 150".

It has a dimension of 3.06" x 0.9" x 0.47" and is Linux friendly. Kingston offers the DataTraveller 150 with a 5 year warranty. It is priced at around USD 100.
Full Specifications of DataTraveler 150
- Capacity – 32GB
- Dimensions – 3.06" x 0.9" x 0.47" (77.9 mm x 22 mm x 12.05 mm)
- Operating Temperatures – 32º F to 140º F (0º C to 60º C)
- Storage Temperatures – -4º F to 185º F (-20º C to 85º C)
- Convenient – Pocket-sized for easy transportability
- Simple – Just plug into a USB port
- Practical – Stores cap securely on end of device to prevent loss of cap
- Guaranteed – Five-year warranty
- Operating systems - Windows 2000, Windows Vista, Windows XP, Mac OSX and Linux.
A small form factor Linux PC for the Marines
May 06, 2008 Posted by Ravi 1 comments
A regular reader of this blog would be aware of mini Linux PC's which fit on the palm of your hand and which is targeted at end users. Now what would you say if I told you that there exists a miniature Linux PC which is targeted at the Military ?No Kidding! There is indeed such a PC and its name is "Engineering Development Kit" (EDK) which is a 7-10 pound computer that targets small ground, naval, and air vehicles. And believe it or not, it has a whooping 100 Gigaflops of processing power. The PowerBlock 50 measures 4.1 x 5.3 x 5.8 inches, with a seven-pound shipping weight, and a weight of less than 10 pounds fully configured, says Mercury.
Linuxdevices.com has the full scoop on this story.
An in depth look at gOS
November 23, 2007 Posted by Ravi 0 commentsI had recently written a post on the gPC running gOS. Now here is an in depth review of the gOS which is honest,
Despite not being created by Google, the focus of gOS is Google's online applications such as GMail, Google News, Google Maps, Google Calendar, YouTube, etc. It's a neat concept for a Linux distribution.
... there seems to be no "recycling bin" available on the desktop. I looked in the FAQs and found that apparently the recycling bin is still in development—somewhat ironic given the nature/green theme of gOS.
The downloadable version of gOS doesn't include what's necessary to play DVDs and MP3s. For that you need to install it yourself or get gOS by buying a gOS-based computer.
Written by Jim Lynch at Extremetech, this review gives a very good insight into what you can expect from gOS without taking it for a spin. Has a couple of screenshots too. Read the whole review.
Motherboard guide - Motherboard fundamentals
November 12, 2007 Posted by Ravi 0 commentsI can say with certainty that almost all the people reading this blog display a degree of knowledge in using a computer. But how many of us have actually opened a computer and tried to figure out and correctly identify the different parts in it ? Not all of us I believe.
So for those who are in the dark, here is a crash course in understanding the architecture of a motherboard. This relatively old article explains the different parts of the motherboard and in what way each part contributes in the overall working of a computer. The article written by Jon Stokes starts from the basics and gradually move into relatively technical jargon such as northbridge and southbridge, the different buses, their protocols and bridges.
While this article is nearly two years old and I am sure, the technology has moved forward a great deal in this time, nevertheless, it gives an insight into what comprises a motherboard in a computer.
Read the article to find out more.
Koolu - a Linux thin client which goes easy on the environment
July 18, 2007 Posted by Ravi 1 comments
A thin client is a client computer in a client-server setup which depends on the central server for processing activities. Its primary job is to convey input and output between the user and the remote server. The advantages of using thin clients in a small to medium network are many such as saving on space, lower power consumption, better utilization of computing power and so on.Koolu is an Australian startup which offers Linux based thin clients and appliances. Koolu is the brain child of Jon Maddog Hall who is one of the leading Linux and Open Source proponent.
Koolu provides thin clients in the price range of $199. And its net appliance is priced at $299. Both the thin clients and the net appliance enjoy a very small footprint to the extent that they could be held in the palm of ones hand. The net appliance is more or less a standalone PC which comes with a modest 500 MB RAM, a 40 GB harddisk and Ubuntu pre-installed. Where as the thin client has just 256 MB RAM and no hard disk. Other than that, both the thin client and the net appliance have the same hardware specifications.
Hardware specifications of the devices are as follows :
- Processor: AMD Geode LX 800 (500MHz@0.9W)
- USB 2.0 ports - 4 Nos
- Dimensions - 13.5 (Width) x 13.5 (Depth) x 3 (Height) Cm
- Memory - 256 MB for thin client and 512 MB for web appliance. Can be upgraded to 1 GB
- AMD LX 800 Integrated Graphic
- Sound - Realtek ALC203_LF AC’97 (2-Channel Support)
- Ethernet - Realtek RTL8100C-LF 10/100 MB LAN
- Fan Less Solution / Dust Resist
- Is energy efficient and uses less than 10 watts.
The 4 USB ports, the LEDs and Sound related ports are situated in the front. And the RJ-45 jack, VGA, Line Out, 12V DC IN and Kensigton lock hole are situated in the back.
Thin clients are nothing new and there are a couple of projects around such as Pxes and LTSP.org which help you to convert your old machine to work as a thin client. But the advantage of Koolu is that all the configuration has already been done and all that the end user has to do is plug in the machine and start using it. More over, the Koolu team claims that since their machines consume relatively less power, they are more environmentally friendly and you can recover the cost of the machine in 2 years by saving in energy bills.
You can buy Koolu online directly from the Koolu official site.
You can buy Koolu online directly from the Koolu official site.
A University to learn more about batteries
March 08, 2007 Posted by Ravi 0 commentsIn this age, most of mankind are very much subservient towards power - the electrical kind. In fact, we cannot think of a situation where we are left for want of power. Think of all those mobile devices, be it laptops, mobile phones, PDAs, music players, radios, automobiles ... the list goes on, they all have one thing in common which is the ubiquitous battery.
What many don't realize is that there are different kinds of batteries. For instance, the nickel based battery, the lithium-ion kind, lead acid battery and so on. And each of them have their own pros and cons. And to enlighten us about the difference between these variety of batteries, a portal has been created called batteryuniversity.com. Here you can learn the basics of every battery, getting the most from your batteries and lastly the people behind this very useful website which caters to a niche but useful subject as the batteries.
Now you tell me if there is even a single GNU/Linux user who does not find use for a battery....
Microsoft's true Ultimate Keyboard - is it GNU/Linux friendly ?
March 02, 2007 Posted by Ravi 1 commentsThe first computer I owned came with a Microsoft Intellimouse serial mouse. It was a three button scroll wheel mouse which I really liked for its perfect shape and comfort in using it. I was even able to get it to work with GNU/Linux, though with some tweaking.
Almost all people, when they hear the word Microsoft, equate it with substandard bug ridden OS, monopoly and unfair trade practices. But a little known fact about Microsoft is that for a company with such a big negative image, it surprisingly manufactures robust, well designed, ergonomic hardware. A case to the point being the keyboards, mice and XBox. And the hardware is surprisingly compatible with GNU/Linux. Not that Microsoft went out of their way to support Linux.
Gizmodo - a gadget blog introduces the latest hardware offering of Microsoft which is an aesthetically pleasing, ergonomic keyboard. It is a top of the line Wireless Entertainment Desktop 8000 keyboard.

Gizmodo recommends this keyboard only for people like bloggers, programmers or chat maniacs who are at their computer for 10+ hours a day. If you can deal with the difficult function keys, the lack of a num-pad, the small arrow keys, the weird Windows key placement and the gigantic price of $249, you'll definitely feel like you're typing on the ultimate keyboard.
But the big question that has gone unanswered is this. Is this beautiful thing GNU/Linux friendly ?
Adding a Second Hard Disk in Linux
December 08, 2006 Posted by Ravi 10 comments
This article explains how you can connect an IDE hard disk to a computer in different combinations just by changing its jumper settings.
I have the following IDE hard disks.
I wanted to add one of them as a second hard disk to my computer.
I opened up the computer case and inserted one of the hard disk (listed above) in the hard disk bay, set up the connectors and turned on the machine hoping to see it boot up as normal.
That was rather surprising as I had not made any changes to the structure of the hard disk either by re-installing Linux or modifying the grub menu. After some head scratching, I figured out that perhaps the hard disks are detected in a different order by the computer. To verify this, I booted using a Linux Live CD and I was right. The original hard disk was detected by Linux as '/dev/hdb' instead of /dev/hda and this messed up everything as my /etc/fstab file and the GRUB menu had the entry '/dev/hda'.
The thing to remember is that IDE hard disks have around 8 pins at the back which can be connected together via jumpers. And depending on what position you have set the jumpers, the hard disks will be detected in different ways by the computer.
Usually, when you buy a new hard drive, it will have the jumper pins in the cable select position. This allows the drive to assume the proper role of master or slave based on the connector used on the cable. For the cable select setting to work properly, the cables you are using must support the cable select feature.
In my case, I had two hard disks connected using the same cable and both had the jumper pins in the cable select position. This meant that when I booted the PC, it automatically selected one hard disk as the primary master and the other as the primary slave.
And unfortunately, it selected the hard disk which had the Linux OSes as the primary slave which was why it was detected by Linux as '/dev/hdb' instead of '/dev/hda'.
Once I figured this out, the solution was simple. I re-opened my computer case and changed the jumper settings of the hard disk containing the Linux OS to the primary master and the jumper settings of the second hard disk to the slave position and I was able to boot into Linux without a problem.
Different IDE hard disks have different jumper positions for setting them as primary and slave and the positions are usually printed on top of the hard disk.
I now have two remaining hard disks. I can fit them into the computer too, but then you can connect only a total of four devices this way namely -
Then I won't have a vacant slot to connect the internal CD Writer and the DVD drive. So I use these two hard disks for backing up data.
I have the following IDE hard disks.
- A Seagate 12 GB hard disk
- A Samsung 2.1 GB hard disk
- And another Seagate 20 GB hard disk
I wanted to add one of them as a second hard disk to my computer.
I opened up the computer case and inserted one of the hard disk (listed above) in the hard disk bay, set up the connectors and turned on the machine hoping to see it boot up as normal.
Problem : GRUB gives the error that it can't find the root partition
That was rather surprising as I had not made any changes to the structure of the hard disk either by re-installing Linux or modifying the grub menu. After some head scratching, I figured out that perhaps the hard disks are detected in a different order by the computer. To verify this, I booted using a Linux Live CD and I was right. The original hard disk was detected by Linux as '/dev/hdb' instead of /dev/hda and this messed up everything as my /etc/fstab file and the GRUB menu had the entry '/dev/hda'.
The thing to remember is that IDE hard disks have around 8 pins at the back which can be connected together via jumpers. And depending on what position you have set the jumpers, the hard disks will be detected in different ways by the computer.
Usually, when you buy a new hard drive, it will have the jumper pins in the cable select position. This allows the drive to assume the proper role of master or slave based on the connector used on the cable. For the cable select setting to work properly, the cables you are using must support the cable select feature.
In my case, I had two hard disks connected using the same cable and both had the jumper pins in the cable select position. This meant that when I booted the PC, it automatically selected one hard disk as the primary master and the other as the primary slave.
And unfortunately, it selected the hard disk which had the Linux OSes as the primary slave which was why it was detected by Linux as '/dev/hdb' instead of '/dev/hda'.
![]() |
| IDE Hard disk jumper settings |
Once I figured this out, the solution was simple. I re-opened my computer case and changed the jumper settings of the hard disk containing the Linux OS to the primary master and the jumper settings of the second hard disk to the slave position and I was able to boot into Linux without a problem.
Different IDE hard disks have different jumper positions for setting them as primary and slave and the positions are usually printed on top of the hard disk.
Check the table printed on your hard disk before changing the jumper pins.
I now have two remaining hard disks. I can fit them into the computer too, but then you can connect only a total of four devices this way namely -
- primary master,
- primary slave,
- secondary master, and
- secondary slave
Then I won't have a vacant slot to connect the internal CD Writer and the DVD drive. So I use these two hard disks for backing up data.
Making the right decisions while buying a PC
November 24, 2006 Posted by Ravi 4 commentsWith the speed with which advances are made on the technological front, I sometimes wonder if buying an electronic product now is a good decision. Especially since if I choose to wait for a couple more months, I could get an even better product with more features at more or less the same price as the product I intended to buy now.
This truism is especially valid while buying a PC. On the one hand, the applications that are being developed demand more and more processing power and memory to run at their optimal level and on the other, the hardware prices are coming down at a steep rate. So if I go out to buy a PC, I have to make sure that it will be able to meet my purpose for atleast the next one and half to two years... after which it will be time to either upgrade - if I am lucky enough to have taken the right decision of buying a PC which was designed with expansions in mind, or just discard the PC and buy a new one.
So what are the things you need to watch out for if you are seriously considering buying a PC now? Thomas Soderstrom has written a very informative article which throws light on the components that one should select to be included in ones PC. He touches on the cases to be used such as full towers, ATX, mini ATX, shuttle form factor and so on, the best processor (CPU), the type of interface slots on the motherboard, the memory, the capacity of the hard drive and so on.
The gist of his choice filters down to the following:
- ATX tower case - is capable of holding a full size motherboard with space for several optical drives and is ideal for home users and gaming enthusiasts.
- CPU - As of now Intel core duo provides the best power-performance-price ratio. Enough applications have been optimized for dual-core chips that these should be considered for any moderate to heavy use, especially when multitasking.
- Always go for motherboards that have the PCI Express slots over the now fast becoming outdated ordinary PCI slots.
- And with respect to memory (RAM), your best bet is to go for atleast DDR-400 and above though ideally DDR2-800 is recommended. And don't even think of a machine with less than 512 MB RAM. The article strongly recommends a choice of 2 GB memory if you can afford it as near future applications and OSes will demand that much memory.
- On the storage front, if you are in the habit of archiving video or hoarding music on your hard disk, do consider atleast a hard disk of 150 GB. The article recommends Western Digital's Raptor 150 GB drives if you are on the look out for better performance and Seagate Barracuda 750 GB for those on the look out for larger capacity drives. Both are costly though.
- And do go for a DVD writer over a CD-RW/DVD combo.
I remember reading an article on the best value Desktop PC in the most recent print edition of PCWorld (Indian edition) magazine. And they selected the "HCL Ezeebee Z991 Core2 Duo" branded PC as the best buy from among a number of other branded PCs. This PC sports the Intel core 2 Duo E6300 processor, 512 MB DDR2 RAM, An optical DVD-RW drive and 160 GB SATA hard disk.
Something I have noticed is that in India, the PCs that are advertised sport just enough memory for the current needs. In fact, it is the habit of these people to skimp on memory while selling a PC. Every day, I see atleast 3 to 4 advertisements selling PCs with just 256 MB memory and in one or two cases with a measly 128 MB. The rule of the thumb to follow is the more memory the better.
Beginner's Guide to Motherboard Selection
July 27, 2006 Posted by Anonymous 1 commentsThere was a time when installing Linux on one's machine was a chore and involved opening up the case and collecting information about the various hardware components attached to the motherboard such as finding what chipset was used in a particular PCI card.
I remember having to open the case and check the chipset used in my internal dial-up winmodem to get it to work in Linux. And I am happy that it was hard because most of my knowledge in hardware was gained in the process of trying to get many of the devices to work in Linux. And I concede I failed a number of times but each time I tried to install Linux and get it to work on my machine, I learned a bit more about my system.
Now a days, installing Linux has become child's play. Almost all the devices are detected out of the box and if at all you need to open up the case, it will be for upgrading or to troubleshoot any hardware problems. But it always helps to have some understanding about the various parts which constitute a motherboard as well as be aware of certain inherent drawbacks that certain mother board designs have. This comes in use at the time of purchasing a computer and will help in buying one with the most suitable and efficient motherboard design.
Thomas Soderstrom at Toms Hardware has written an excellent article which explains the process of motherboard selection. He starts with the motherboard component overview and goes on to explain the layout considerations, choosing the right foam factor, the different socket types used by different processors as well as the bios features. This article is replete with images of the motherboard and the socket types. It is no doubt an indepth article and a must read for anybody interested in knowing more about ones computer.
A list of companies selling computers pre-installed with Linux
July 23, 2006 Posted by Anonymous 2 comments
There was a time when it was practically impossible to buy a computer with GNU/Linux pre installed. If you wanted to run Linux, you had to install it yourselves. Almost all PC manufacturers were shipping PCs with Windows OS. And if the buyer did not want Windows, he still had to pay the full price of the machine which included the cost of Windows OS.But with Linux getting more user friendly as well as its improved out of the box support for various hardware devices, more and more people are opting to run GNU/Linux and its market share is increasing at a steady albeit glacial rate.
In my country for instance, it is possible to buy an assembled computer with Linux installed - something which was not possible or very rare a couple of years back. But the most significant aspect is that Acer, the Taiwanese PC manufacturer is selling its range of laptops with Linux pre installed and a Linux laptop from Acer is significantly cheaper than its Windows Laptop of the same make.
Lxer has a very interesting post which lists all the companies which offer PCs with Linux pre installed which could be useful for anyone interested in buying a Linux laptop or desktop.
10 things to know before buying a video card
July 08, 2006 Posted by Anonymous 2 comments
I have an Nvidia GEForce2 MX/MX 400 graphics card with 64 MB RAM. For me this is more than enough and meets all my needs including playing a couple of OpenGL games. And I get decent frame rates with this card - provided I have installed the Nvidia's proprietary drivers for Linux. But to play the new games on the block especially the graphics intensive variety, you might need a more powerful card. And Nvidia and ATI are the two dominant players in the graphics card market.Seriously how does one choose a graphics card from the ones available in the market? If you ask me, the best bet would be to strike the right balance between price and power. But there are a couple more things you have to consider before you make the jump.
James Yu lists 10 things one might consider before buying a video card. It is not something that one may not be aware of but nevertheless it makes an interesting read.
How to securely erase the hard disk before selling ones computer
June 01, 2006 Posted by Anonymous 20 comments
There are times when the news sites are abuzz with sensational news items. I am speaking of those news items which tempts one to pitch in and have his/her say come what may. And the news of someone who bought a laptop on Ebay only to find it defective and how he took revenge on the seller by posting all the personal data on the hard disk on a website is by now a legend.
Now it is hard to decide who is in the right here - the person who published the private data on the website (for all you know, the laptop in question could have been damaged in transit) or the seller who is now the talk of the town, whose life is being dissected. There is no way to know. But that is besides the point. The truth is that it is scary to realize that it is next to impossible to delete all the data that one stores on ones storage media without completely destroying it. Because, with the right tools anybody can retrieve even deleted data.
So what can be done to alleviate the situation ? If you are using GNU/Linux or any other UNIX, then you have a tool called
Here
Another GPLed tool (though not specifically related to Linux) which is quite popular is Darik's Boot and Nuke (DBAN) which also does a great job of securly erasing the data on your hard disk.
Experts in the field of retrieving data can still get some data from a hard disk that has been wiped in the above manner. But at least ordinary folks who buy second hand laptops and computers will find it beyond their means to lay their hands on your data if you have wiped your hard disk this way prior to selling your PC or laptop.
Now it is hard to decide who is in the right here - the person who published the private data on the website (for all you know, the laptop in question could have been damaged in transit) or the seller who is now the talk of the town, whose life is being dissected. There is no way to know. But that is besides the point. The truth is that it is scary to realize that it is next to impossible to delete all the data that one stores on ones storage media without completely destroying it. Because, with the right tools anybody can retrieve even deleted data.
So what can be done to alleviate the situation ? If you are using GNU/Linux or any other UNIX, then you have a tool called
shred which can be used to wipe all the data from the hard disk. Here is how it works. Suppose I want to erase all the data on my hard disk, then I boot using a LiveCD like Knoppix and open a shell and type the following command:# shred -vfz -n 100 /dev/sda
Here
/dev/sda is my whole hard disk. And I am asking shred to make -n 100 passes by overwriting the entire hard disk with -z zeros. And shred program -f forces the write by changing the permissions wherever necessary.Another GPLed tool (though not specifically related to Linux) which is quite popular is Darik's Boot and Nuke (DBAN) which also does a great job of securly erasing the data on your hard disk.
Experts in the field of retrieving data can still get some data from a hard disk that has been wiped in the above manner. But at least ordinary folks who buy second hand laptops and computers will find it beyond their means to lay their hands on your data if you have wiped your hard disk this way prior to selling your PC or laptop.
Boost your hard drive performance in Linux using hdparm
December 04, 2004 Posted by Ravi 0 commentsHdparm is a command-line utility that provides powerful control over your hard drive parameters (HD PARaMeters). It can also tell you a lot about your disk drive. Everything you do with hdparm, until you make a script for it, will be done at the command line. It can be adjusted manually and then put into a startup script to make your chosen settings effective every time the system starts up.
Suppose I want to improve the performance of my first hard disk drive - /dev/hda . The first thing I do is find out the characteristics of my hard disk. This can be done as follows:
# hdparm -i /dev/hdaAnd the output on my machine is this :
/dev/hda:
Model=QUANTUM FIREBALLlct10 10, FwRev=A03.0900, SerialNo=872007625887
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
BuffType=DualPortCache, BuffSize=418kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=20044080
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no WriteCache=enabled
Drive conforms to: ATA/ATAPI-4 T13 1153D revision 15: 1 2 3 4
* signifies the current active mode
In the output shown above, a few important values to be noted with interest are as follows:
- MaxMultSect - The maximum number of sectors your hard disk can read at a time.
- MultSect - The current number of sectors being read at a time.
- PIO modes, DMA and UDMA modes - The modes supported by your hard drive. The one marked with an asterisk (*) is the one currently set.
- AdvancedPM - Indicates whether or not your hard drive supports Advanced Power Management.
# hdparm /dev/hdawill reveal the following information ...
/dev/hda:The items of interest in the above output are as follows:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 19885/16/63, sectors = 20044080, start = 0
- multcount - The number of sectors being read at a time.
- I/O support - The operating mode of your hard disk (16/32/32sync).
- using_dma - Whether or not the drive is using the DMA feature. This may be on by default if your version of Linux properly detects and supports your chipset and drive's DMA capabilities.
- keepsettings - Whether the settings are kept after the drive resets (usually caused by errors).
- readonly - Whether the drive is read-only. Normally set to 1 only for CD-ROMs.
- readahead - How many sectors ahead will be read when you access the hard drive.
The hdparm program provides two performance testing features that are crucial in letting you know whether or not you are improving performance or not as you tweak along.
# hdparm -Tt /dev/hda1
will show results such as the following before enhancing the performance.
/dev/hda1:and the results like these after enhancing the performance.
Timing buffer-cache reads: 340 MB in 2.01 seconds = 169.43 MB/sec
Timing buffered disk reads: 30 MB in 3.08 seconds = 9.73 MB/sec
/dev/hda1:
Timing buffer-cache reads: 340 MB in 0.91 seconds = 200.00 MB/sec
Timing buffered disk reads: 30 MB in 1.05 seconds = 19.73 MB/sec
The goal is to see the time in seconds decrease and the MB/sec to increase in the above output.You can do that by using a variety of parameters, invoked one at a time, then rerunning the performance tests to see if things are improving or not.
For example: Begin by setting the operating mode of the interface between the system and the disk drive using one of the following parameters:
- -c0 - Sets operating mode to 16-bits
- -c1 - Sets operating mode to 32-bits
- -c3 - Sets operating mode to 32-bits synchronized
Mode -c1 is usually used for best performance. Mode -c3 is required only for certain chipsets.
# hdparm -c1 /dev/hdaNext set the data transfer parameters, which you can determine from the -i command shown earlier. In the above case, the value of MaxMultSect is 16 which is the maximum supported.
# hdparm -m16 /dev/hdaNext try activating DMA mode for your system interface:
# hdparm -d1Then set the drive mode (a value of X32 is most common; UDMA-5 is X69):
# hdparm -X32 /dev/hda
Finally, try setting the read-ahead value, which is typically set to the same value as multcount from earlier (See the hdparm /dev/hda output above), or 16:
# hdparm -a16 /dev/hda
If any or all of these settings make incremental improvements in performance, remember them and create a script that sets them all sequentially or includes them all in one line.
From all these settings, you might be using the following optimal single command :
# hdparm -X34 -m16 -c1 -a16 -d1 /dev/hda
Now save this command into a file and make the file into a script and place in the directory for the runlevel at which you normally use linux. I use runlevel 2 by default on my home machine. So I create a file named /etc/init.d/hdparm.local with the above hdparm command. Then configure it to start at runlevel 2 as follows:
# ln -s /etc/init.d/hdparm.local /etc/rc2.d/S20hdparm.local
Update (Oct 26 2007): If you are using Ubuntu or any Debian based Linux distribution, you can set the hdparm command and its options in the /etc/hdparm.conf configuration file instead of creating the above mentioned script and saving it in init.d directory. Also note that in Ubuntu Gutsy Gibbon, even the IDE drives are provided device nodes with name /dev/sda instead of /dev/hda. So make the necessary changes while executing the commands.
The next step is to keep an eye on dmesg and/or /var/log/syslog. In some cases, an error will cause the settings to be reset. So that's where the -k (keep) flag comes in. If you are 100% positive that these settings won't corrupt your data, you can add -k to the script.
WARNING : Setting hdparm parameters too aggressively - that is, in excess of the disk controller or drive capabilities - can lead to data loss. It is best to test hdparm settings on a fresh installation of the operating system before committing any applications or programs to the drive and prepare to back down on the settings and reinstall the OS if the drive is unstable or the hdparm tests show erratic results or fail.




