Bug 165318 - [cam] [usb] Western Digital Passport no longer "removable"
Summary: [cam] [usb] Western Digital Passport no longer "removable"
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.2-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-20 13:00 UTC by Rachel Flynn
Modified: 2018-05-20 23:49 UTC (History)
1 user (show)

See Also:


Attachments
lshal.out (86.51 KB, text/plain)
2012-02-20 13:00 UTC, Rachel Flynn
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rachel Flynn 2012-02-20 13:00:30 UTC
The Western Diginal "My Passport" is no longer recognized as a removable
disk, resulting in PolicyKit not allowing it to be mounted. The work around
to allow desktopusers to mount "fixed" storage, isn't really acceptable.

I can't exactly track down what changed, because the disk was last plugged
in about 2 months ago and at the time was correctly identified as removable.
Red herrings include:
- hald portrevision upgrade
- upgrade 8.2-release -> 8.2-stable
- pcre upgrade
- different USB port (pass1 vs pass2)

Below is a full lshal output.

Fix: Work-around is to lax permissions in PolicyKit or install an fdi that
sets the removable flag (haven't tested that).


How-To-Repeat: Insert a removable USB drive with atapicam loaded.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-02-20 13:00:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jeremy Messenger freebsd_committer freebsd_triage 2012-03-17 17:43:16 UTC
State Changed
From-To: open->feedback

Have you follow this yet?: http://www.freebsd.org/gnome/docs/halfaq.html#q3
Comment 3 Rachel Flynn 2012-03-17 18:40:11 UTC
On 3/17/2012 18:43, mezz@FreeBSD.org wrote:
> Synopsis: sysutils/hal: Western Digital Passport no longer "removable"
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: mezz
> State-Changed-When: Sat Mar 17 17:43:16 UTC 2012
> State-Changed-Why: 
> Have you follow this yet?: http://www.freebsd.org/gnome/docs/halfaq.html#q3

Yes. HalFaq was followed on installation of the desktop and at that time
the disk was correctly identified as removable.

Now, when we try to mount the disk the policykit error refers to
mount-fixed permission, not mount-removable. The users have
mount-removable permissions (and now mount-fixed as a work around).
The lshal output provided with the report, clearly shows that removable
is not set. I've done tracing in hald source to see where it gets it's
info from and it points to cam, but I'm unable to figure out how to get
that info from camcontrol(8). If you know a way how to do that, I'll add
it to the report.
-- 
Mel
Comment 4 mezz.freebsd 2012-04-22 17:03:50 UTC
On Sat, Mar 17, 2012 at 1:40 PM, Mel Flynn <rflynn@acsalaska.net> wrote:
> On 3/17/2012 18:43, mezz@FreeBSD.org wrote:
>> Synopsis: sysutils/hal: Western Digital Passport no longer "removable"
>>
>> State-Changed-From-To: open->feedback
>> State-Changed-By: mezz
>> State-Changed-When: Sat Mar 17 17:43:16 UTC 2012
>> State-Changed-Why:
>> Have you follow this yet?: http://www.freebsd.org/gnome/docs/halfaq.html#q3
>
> Yes. HalFaq was followed on installation of the desktop and at that time
> the disk was correctly identified as removable.
>
> Now, when we try to mount the disk the policykit error refers to
> mount-fixed permission, not mount-removable. The users have
> mount-removable permissions (and now mount-fixed as a work around).
> The lshal output provided with the report, clearly shows that removable
> is not set. I've done tracing in hald source to see where it gets it's
> info from and it points to cam, but I'm unable to figure out how to get
> that info from camcontrol(8). If you know a way how to do that, I'll add
> it to the report.

Read in the manpage and the 'camcontrol inquiry <device>' will show
you if it's removable.

# camcontrol inquiry cd0
pass2: <TSSTcorp DVD+-RW TS-H653F DW10> Removable CD-ROM SCSI-0 device
pass2: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)

Cheers,
Mezz


> --
> Mel


-- 
mezz.freebsd@gmail.com - mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org
Comment 5 Rachel Flynn 2012-05-10 20:00:31 UTC
On 22-4-2012 18:03, Jeremy Messenger wrote:
> On Sat, Mar 17, 2012 at 1:40 PM, Mel Flynn <rflynn@acsalaska.net> wrote:
>> On 3/17/2012 18:43, mezz@FreeBSD.org wrote:
>>> Synopsis: sysutils/hal: Western Digital Passport no longer "removable"
>>>
>>> State-Changed-From-To: open->feedback
>>> State-Changed-By: mezz
>>> State-Changed-When: Sat Mar 17 17:43:16 UTC 2012
>>> State-Changed-Why:
>>> Have you follow this yet?: http://www.freebsd.org/gnome/docs/halfaq.html#q3
>>
>> Yes. HalFaq was followed on installation of the desktop and at that time
>> the disk was correctly identified as removable.
>>
>> Now, when we try to mount the disk the policykit error refers to
>> mount-fixed permission, not mount-removable. The users have
>> mount-removable permissions (and now mount-fixed as a work around).
>> The lshal output provided with the report, clearly shows that removable
>> is not set. I've done tracing in hald source to see where it gets it's
>> info from and it points to cam, but I'm unable to figure out how to get
>> that info from camcontrol(8). If you know a way how to do that, I'll add
>> it to the report.
> 
> Read in the manpage and the 'camcontrol inquiry <device>' will show
> you if it's removable.
> 
> # camcontrol inquiry cd0
> pass2: <TSSTcorp DVD+-RW TS-H653F DW10> Removable CD-ROM SCSI-0 device
> pass2: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)

Ok, so it says "Fixed":

% sudo camcontrol inquiry 2:0:1
pass2: <WD SES Device 2011> Fixed Enclosure Services SCSI-4 device
pass2: Serial Number 575837314337304132303839
pass2: 40.000MB/s transfers

% sudo camcontrol inquiry da0
pass1: <WD My Passport 071A 2011> Fixed Direct Access SCSI-4 device
pass1: Serial Number 575837314337304132303839
pass1: 40.000MB/s transfers

Looks that hal does the right thing, yet something in cam changed to
make it believe this is not removable.
-- 
Mel
Comment 6 mezz.freebsd 2012-05-11 16:05:24 UTC
On Thu, May 10, 2012 at 2:00 PM, Mel Flynn <rflynn@acsalaska.net> wrote:
> On 22-4-2012 18:03, Jeremy Messenger wrote:
>> On Sat, Mar 17, 2012 at 1:40 PM, Mel Flynn <rflynn@acsalaska.net> wrote:
>>> On 3/17/2012 18:43, mezz@FreeBSD.org wrote:
>>>> Synopsis: sysutils/hal: Western Digital Passport no longer "removable"
>>>>
>>>> State-Changed-From-To: open->feedback
>>>> State-Changed-By: mezz
>>>> State-Changed-When: Sat Mar 17 17:43:16 UTC 2012
>>>> State-Changed-Why:
>>>> Have you follow this yet?: http://www.freebsd.org/gnome/docs/halfaq.html#q3
>>>
>>> Yes. HalFaq was followed on installation of the desktop and at that time
>>> the disk was correctly identified as removable.
>>>
>>> Now, when we try to mount the disk the policykit error refers to
>>> mount-fixed permission, not mount-removable. The users have
>>> mount-removable permissions (and now mount-fixed as a work around).
>>> The lshal output provided with the report, clearly shows that removable
>>> is not set. I've done tracing in hald source to see where it gets it's
>>> info from and it points to cam, but I'm unable to figure out how to get
>>> that info from camcontrol(8). If you know a way how to do that, I'll add
>>> it to the report.
>>
>> Read in the manpage and the 'camcontrol inquiry <device>' will show
>> you if it's removable.
>>
>> # camcontrol inquiry cd0
>> pass2: <TSSTcorp DVD+-RW TS-H653F DW10> Removable CD-ROM SCSI-0 device
>> pass2: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
>
> Ok, so it says "Fixed":
>
> % sudo camcontrol inquiry 2:0:1
> pass2: <WD SES Device 2011> Fixed Enclosure Services SCSI-4 device
> pass2: Serial Number 575837314337304132303839
> pass2: 40.000MB/s transfers
>
> % sudo camcontrol inquiry da0
> pass1: <WD My Passport 071A 2011> Fixed Direct Access SCSI-4 device
> pass1: Serial Number 575837314337304132303839
> pass1: 40.000MB/s transfers
>
> Looks that hal does the right thing, yet something in cam changed to
> make it believe this is not removable.

Yep, it's not a Hal bug. I will change PR's category from ports to
kern (or usb?) and change synopsis from 'sysutils/hal: Western ...' to
'CAM/USB: Western ...'. I have no idea which bug is in either CAM or
USB or both.

You might want to boot in a good kernel or live CD/DVD (maybe FreeBSD
8.x? or 9.0 vs 9.1?) that when your external HDD used to have reported
removable correct to give the dmesg verbose (while HDD is plugged in),
camcontrol inquiry * and etc in PR. To allow someone to compare
between version of FreeBSD.

If you prefer to close this PR and file a fresh one to avoid confuse
for anyone when read in this PR. Let me know.

Cheers,
Mezz


> --
> Mel


-- 
mezz.freebsd@gmail.com - mezz@FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org
Comment 7 Jeremy Messenger freebsd_committer freebsd_triage 2012-05-11 20:31:46 UTC
Responsible Changed
From-To: gnome->kern

Change the synopsis and category. I have no idea which kern or usb, because 
I don't know which bug is in CAM or USB. Picked kern instead.
Comment 8 Jeremy Messenger freebsd_committer freebsd_triage 2012-05-11 20:35:18 UTC
Responsible Changed
From-To: kern->freebsd-bugs

whoops, changed wrong line. correct it.
Comment 9 Eitan Adler freebsd_committer freebsd_triage 2012-11-13 20:47:20 UTC
State Changed
From-To: feedback->open

Submitter provided requested information
Comment 10 DMITRY MAKSIMENKO 2015-04-25 17:17:15 UTC
accept
Comment 11 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:49:50 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"