public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Carlo Wood <carlo@alinoe.com>
To: "Alexander E. Patrakov" <patrakov@ums.usu.ru>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ide0=noprobe, hda=noprobe, hda=none ignored?
Date: Tue, 12 Jun 2007 14:51:56 +0200	[thread overview]
Message-ID: <20070612125156.GA31703@alinoe.com> (raw)
In-Reply-To: <466D2E52.4000904@ums.usu.ru>

keyword: =noprobe, =none, IRQ probe failed, initrd, ide_core, solved,
solution, howto.

On Mon, Jun 11, 2007 at 05:13:22PM +0600, Alexander E. Patrakov wrote:
> If your kernel uses modular IDE drivers and an initrd/initramfs that loads 
> them, your result is the expected one (i.e.: not a bug). One should add the 
> following or similar options into /etc/modprobe.conf in the initrd in order 
> to get the result:
> 
> options ide_core options="ide0=noprobe hda=noprobe hdb=noprobe"
> 
> If you don't use initrd, or have a non-modular IDE driver, please ignore 
> this message.

Thanks! I have indeed an initrd and a modular IDE driver, this was
the solution :) Thanks, I really learned from this :)

For the sake of archiving, so people can find this solution back with
Google and use it too, I've added keywords as first line and will add below all
relevant information (this can be ignored by people from the linux-kernel.)

1) If you suffer from this problem and want to know if this solution is for
you, use the command 'lsmod' and check if you have ide_core loaded as module:

lsmod | grep ide_core

2) Check if you have an initrd in /boot:

ls /boot/initrd*`uname -r`

3) Check if you use /etc/modprobe.conf, or /etc/modprobe.d

ls -ld /etc/modprobe.conf /etc/modprobe.d

if only /etc/modprobe.d exists, it will be what is used, and add a file
(I used 'noprobe') to this directory. Otherwise add the line given by
Alexander to /etc/modprobe.conf. Thus,

echo 'options ide_core options="ide0=noprobe hda=noprobe hdb=noprobe"' >/etc/modprobe.d/noprobe

or add that line to your existing /etc/modprobe.conf
obviously, replace hda/hdb with the drive ids that you need to be
ignored, and ide0 with the corresponding ide# (dmesg | grep hdX,
directly after booting, should tell you).  I did not test if using
only 'ide0=noprobe' or only 'hda=noprobe hdb=noprobe' is sufficient.

4) Regenerate your initrd image (this might depend on the distribution
   you are using. On debian you'd execute:

update-initramfs -u

which is part of the initramfs-tools package.

5) If you want to be sure that the option is now in your initrd image,
   you can do the following:

cd /boot
mkdir initrd-VERSION-extract
cd initrd-VERSION-extract
gzip -dc ../initrd.img-VERSION | cpio -i
ls etc/

and check if the options line is where you added it in your real root.
Ie, if you added it to /etc/modprobe.d/noprobe:

cat /boot/initrd-VERSION-extract/etc/modprobe.d/noprobe

after that you can rm /boot/initrd-VERSION-extract again, of course.

6) reboot - and enjoy the no probing!

Thanks to Alexander E. Patrakov for this solution.

-- 
Carlo Wood <carlo@alinoe.com>

      reply	other threads:[~2007-06-12 12:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-10 18:54 ide0=noprobe, hda=noprobe, hda=none ignored? Carlo Wood
2007-06-11 11:13 ` Alexander E. Patrakov
2007-06-12 12:51   ` Carlo Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070612125156.GA31703@alinoe.com \
    --to=carlo@alinoe.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patrakov@ums.usu.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox