Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 06-17-2011, 11:17 PM   #1
LQ Newbie
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Question How to change retry times of removable disk scan when plug SATA drive into Linux PC?

Dear Linux experts:

I have OpenSUSE 11.3 running and I noticed if I plug one SATA drive into the system, the Linux will issue following ATA commands to gather basic information from the drive to build the sysfs for this plugged in device.

0xE5 to check power mode
0xEF to set features
0xEC to identify drive
0xB0/D0 to read SMART data
0x60 (read FPDMA Queued) to read LBA 0 back

If the drive is a good drive and the Linux will stop to issue the commands above after some loops of command sequence above, and create the node such as /dev/sdg.

If the drive is not a good drive (maybe I can say it is not a ready drive because it has manufacture FW which doesn't support SMART read and LBA read/write yet), the OpenSUSE will issue command sequence above endlessly because it always get error in SMART data read error and LBA 0 read error, although Linux already created the node for this bad drive.

Is there a way to change the retry times when Linux scan a new plugged in SATA drive? If it is a bad disk drive, let Linux just issue some number retries then gave up.

My kernel version is "2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 i686 i686 i386 GNU/Linux", and the disk type is just SATA drive, and plug into LSI HBA such as 9200-16e.

Thank you very much!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal SATA Drive and external SATA Disk Array. bruceharbin Linux - Hardware 1 05-25-2009 12:33 AM
How do I verify a removable SATA drive is inserted? ToddAndMargo Linux - General 34 03-11-2009 06:54 PM
can removable disk drive be auto mounted ? sky rulz Linux - Newbie 2 08-06-2008 03:41 AM
dialup wvdial router, how to autoreconnect and only retry 5 times every 3 hours acarri Linux - Server 0 04-22-2007 05:39 PM
Disk error 01, AX = 4209, drive 9F Boot failed: press a key to retry. ... katemiz Linux - Hardware 1 09-11-2006 07:19 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration