linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Gavin Cameron <gavin@gavsworld.net>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>
Subject: Re: libata problems
Date: Wed, 13 Aug 2008 18:33:39 +0900	[thread overview]
Message-ID: <48A2AA73.6010901@kernel.org> (raw)
In-Reply-To: <4899EE03.3060204@gavsworld.net>

(please don't drop linux-ide, use reply-to-all)

Gavin Cameron wrote:
> Tejun Heo wrote:
>> Hmmm... looks like configuration went well but media presence polling is
>> causing the problem.  "hal-disable-polling /dev/sr0" will disable the
>> polling.  Can you please do that and see whether the drive is usable?
> 
> [root@picard ~]# hal-disable-polling --device /dev/sr0
> Polling for drive /dev/sr0 have been disabled. The fdi file written was
> 
> /etc/hal/fdi/information/media-check-disable-storage_model_DVD_A__DH20A3P.fdi

Okay.

> Inserted CD into drive: drive light came on for about 20 seconds, but
> nothing happened.
> 
> Checked /var/log/messages and nothing there.
> 
> Left it sitting there for 5 minutes or so and checked /var/log/messages
> again and still nothing there.

As media presence polling is disabled, the system won't notice whether
the media has changed or not.

> Mounted the CD as root:
> [root@picard ~]# mkdir /mnt/cdrom
> [root@picard ~]# mount -t iso9660 /dev/sr0 /mnt/cdrom/
> mount: block device /dev/sr0 is write-protected, mounting read-only
> 
> The command took about 1 minute to complete. I was then able to browse
> the CD, however each change of directory took approximately 10 seconds
> to read.

Hmmm...

> I then ejected the CD:
> [root@picard ~]# eject /dev/sr0
> 
> again, this took about 20 seconds to eject the CD.
> 
> After the eject, still nothing in /var/log/messages.
> 
> Tried inserting and ejecting another couple of times.
> 
> I verified that the CD was readable in my external CD drive and then put
> the CD back into the main drive and started writing up the results so far.
> 
> As I've been typing, the drive has been spinning up and down several
> times and this time when I checked /var/log/messages I found what is
> attached.
> 
> Is there anything else I can provide in order for you to find the problem?

Can you please try kernel parameter "libata.force=2.00:udma33" and then
"libata.force=2.00:pio4"?  Depending on which distro you're on and
whether libata is built into the kernel or not, you'll need to use
different method to actually get the parameter passed to libata.

Thanks.

-- 
tejun

  parent reply	other threads:[~2008-08-13  9:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-18 15:59 libata problems Gavin Cameron
2008-08-01  8:48 ` Tejun Heo
     [not found]   ` <4898BD4F.90709@gavsworld.net>
     [not found]     ` <4898F11D.1080902@kernel.org>
     [not found]       ` <4899EE03.3060204@gavsworld.net>
2008-08-13  9:33         ` Tejun Heo [this message]
2008-08-18 22:03           ` Gavin Cameron
     [not found]           ` <495F5AB3.1090800@gavsworld.net>
2009-01-14  5:05             ` Tejun Heo
2009-01-16 16:30               ` Gavin Cameron

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=48A2AA73.6010901@kernel.org \
    --to=tj@kernel.org \
    --cc=gavin@gavsworld.net \
    --cc=linux-ide@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).