Latest LQ Deal: Latest LQ Deals
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 11-22-2012, 06:03 AM   #1
LQ Newbie
Registered: Nov 2012
Posts: 9

Rep: Reputation: Disabled
Question Kernel/driver parameter to limit (S)ATA disk bad sector read retries?


I have RAID1 mdadm setup (2 SATA disks) on Ubuntu 11.10 and one of the disks during boot causes system to freeze trying to read from the disk. After half an hour of waiting I had to reset the PC. When I change BIOS settings to boot from the other disk of the RAID1, it ends the same way.
(I then managed to run SeaTools and repair the disk (by reallocating unreadable sectors I guess) and now it is OK.)
So is there a way to tell kernel/driver to report the disk as failed after the first unsuccessful attempt to read the bad sector?
Old 11-25-2012, 12:06 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 7
Posts: 3,496

Rep: Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933
You sure that's what's going on? No BIOS knows how to boot from Linux software RAID. That means you need to be booting to RAID-enabled GRUB, a copy of which has been installed on each disk in your RAID 1. GRUB will have to assemble and boot from your RAID. There are many variables involved:
  • Are you using GRUB or GRUB-2?
  • Are you using DOS partitions or GPT?

Here's a typical procedure for non-GPT boot:
Old 11-27-2012, 11:08 AM   #3
LQ Newbie
Registered: Nov 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Yes, Im sure whats going on. It doesnt matter what version of grub Im using and partition type it not involved at all!!!
I suggest that you read CAREFULLY my post before replying. I said it freezes DURING boot and NOT that it doesnt boot at all!!!

Even when not using RAID at all, the system should report an error reading disk and not stay stuck trying to read a bad sector for a half of an hour !!!!


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
using a USB to ATA adaptor to read a disk in slackware gives kernel panic msgs nass Slackware 7 08-03-2012 11:45 AM
How to recover a hard disk bad sector? carlatf Linux - Hardware 3 01-09-2012 05:54 PM
How to configure disk as one partition on HPdv8000 also..(Getting bad sector errors) er.rigney Linux - Laptop and Netbook 3 06-09-2010 10:21 AM
hard disk bad sector detection arunka Linux - Hardware 2 02-15-2006 02:28 AM
work around a bad disk sector cyclist Linux - Software 1 09-25-2001 09:37 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:41 PM.

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
Open Source Consulting | Domain Registration