Aleksandar's computer workshop

Let's see what Aleksandar was fixing today.
My findings, tips & tricks related to computers, internet, programming and other stuff I was working with.

How to enable AHCI mode after installing Windows

AHCI (Advanced Host Controller Interface) is present on newer Intel chipsets such as 975X (ICH7), P965 (ICH8), and P35 (ICH9). AHCI mode is enabled in the BIOS and 3 settings are commonly available: IDE, AHCI, and RAID. The last two (AHCI and RAID) require a driver floppy and the F6 method when installing Windows XP otherwise the hard disks won't be detected.

AHCI mode brings 3 main advantages:
Supports NCQ (Native Command Queuing) allowing SATA drives to accept more than one command at a time and dynamically reorder the commands for maximum efficiency.
Supports hot plugging of devices
Supports staggered spin ups of multiple hard drives at boot time

However, in the real world the performance difference isn't huge.

The problem is that if you installed Windows in IDE mode (i.e. you didn't use F6 and supply a driver disk), then simply changing the BIOS setting to AHCI mode and rebooting will cause Windows to fail and will require a repair install. Most people have been advising to reinstall Windows if you want AHCI enabled.

Here you will find the sollution :

Copy of the article is here (5.07 kb)

Slow computer, High CPU utilization, the stuttering DVD drive or the lame hard disk?

Do you experience: 

  • Suddenly very slow computer
  • Constant high CPU utilization during file transfer
  • Lame hard disk performance
  • The stuttering DVD drive
  • Choppy DVD playback
  • Your drive is always in PIO mode and you can’t set it to UDMA mode

If you have one of these problems most probably your drive has switches from UDMA to PIO mode.

What does it mean?

DMA is an abbreviation for Direct Memory Access, an access method for external devices where the data transfer is not done by the central processor, but by a small special processor called DMA controller. It uses a procedure called cycle stealing, where the central processor memory access cycles are delayed for very short times to intersperse DMA controller memory access cycles. Some newer, faster DMA modes are called UDMA (Ultra DMA).

The alternative, slow and inefficient data transfer mode is called PIO, Programmed Input-Output, where the central processor transfers data byte for byte or word for word. This requires many processor commands for each data word and therefore causes a high and unwanted processor load.

Solution is here:
1) Download the file from here:

2) Despite any warnings click on the [Open] or [Execute] buttons as required to execute the file resetdma.vbs. If you fear to download the file, you can use the manual method instead (see link below). Or you could download, save, and inspect the program with an editor like the Windows Notepad. It is a script text file.

3) If the program found any ATA channel to reset, reboot your computer and test all drives.

4) If the problem is still not solved, set the offending channel to PIO manually, reboot your computer, set the channel back to DMA, and reboot again.

5) Please report your results here

For more technical background or menual method visit this site:

Free disk space checking in Linux

There are plenty of tools with which you can check your disk space.
However, Linux already has a built in function to show you just what you need to know.
Open a terminal window or push (ctrl+alt+F1 to go to console) and type:


You will see something like this:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb2             12262868   2383044   9256904  21% /
/dev/hdb1               101086     11096     84771  12% /boot
none                     95580         0     95580   0% /dev/shm

This one is bit unreadable, because size is represented in 1K-blocks. Lets try to make it clean and more readable:

df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/hdb2              12G  2.3G  8.9G  21% /
/dev/hdb1              99M   11M   83M  12% /boot
none                   94M     0   94M   0% /dev/shm

Now the size is represented by megabytes and gigabytes.