HDD Led issue, how to make it blink as normal?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
blackoil
Member
Member
Posts: 146
Joined: Mon Feb 12, 2007 4:45 am

HDD Led issue, how to make it blink as normal?

Post by blackoil »

the HDD led is always on, after boot to my os, it doesn't blink when acces harddrive sector. Is there any status bit I should read to acknowledge something?
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

Hi,

If your OS is loaded from a hard drive, the BIOS may leave it spinning - when you finish with HD access, you need to spin the HD down (after, say, a delay of 500 msec).

Cheers,
Adam
blackoil
Member
Member
Posts: 146
Joined: Mon Feb 12, 2007 4:45 am

Post by blackoil »

I boot from floppy.
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post by xyzzy »

Most bootloaders (GRUB definitely) don't turn off the floppy motor which will cause the LED to stay on.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

I noticed similar behaviour when I installed Linux on an Acer laptop recently, so it might not be your fault, not knowing what special tricks Windows has to pull off...
Every good solution is obvious once you've found it.
User avatar
Jef
Member
Member
Posts: 112
Joined: Tue Jan 08, 2008 7:25 am
Location: Greece
Contact:

Post by Jef »

stop floppy motor:

Code: Select all

xor	eax, eax
mov	edx, 03F2h
out	dx, al
start motor:

Code: Select all

mov 	eax, 1Ch
mov 	edx, 3F2h
out 	dx, al
Keep coding...
...the sky is the limit

AsteriOS project: http://www.mindfields.gr/main/index.php ... &Itemid=27
blackoil
Member
Member
Posts: 146
Joined: Mon Feb 12, 2007 4:45 am

Post by blackoil »

I mean the Hard disk led, not the led on the floppy.

I suspect there is a bit in one of ata controller registers, that has to be toggled.

The led indicates whether the harddisk is busy or not.

I can't find any related references in T13 ocuments.
Post Reply