lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1212131408510.1415-100000@iolanthe.rowland.org>
Date:	Thu, 13 Dec 2012 14:19:03 -0500 (EST)
From:	Alan Stern <stern@...land.harvard.edu>
To:	prasannatsmkumar <prasannatsmkumar@...il.com>
cc:	linux-kernel@...r.kernel.org, <linux-usb@...r.kernel.org>,
	<nautilus-list@...me.org>
Subject: Re: Fwd: Safely remove option shows with Micro SD Card connected to
 Linux through an Android phone

On Thu, 13 Dec 2012, prasannatsmkumar wrote:

> On Thu, Dec 13, 2012 at 11:40 PM, Alan Stern <stern@...land.harvard.edu> wrote:
> > On Thu, 13 Dec 2012, prasannatsmkumar wrote:
> >
> >> On Wed, Dec 12, 2012 at 2:07 AM, Alan Stern <stern@...land.harvard.edu> wrote:
> >> > STOP UNIT means spin down the disk or eject the disc.  Since your phone
> >> > doesn't have a disk drive or an optical disc, no wonder this step
> >> > failed.
> >>
> >> Yes of course it does not have a optical disc or disk drive. But I
> >> thought if there is no such thing nautilus should not try to spin
> >> down. Linux kernel has nothing to do with this problem though.
> >
> > Right.  Bear in mind that nautilus may not have any way of finding out
> > whether the device has removable media, other than requesting for the
> > media to be ejected.  But if it doesn't know then failure of the
> > request shouldn't be reported as an error.
> 
> Is kernel not exposing this information?

What I wrote earlier was wrong, sorry.

No, the kernel does not export it.  But user programs can get the
information directly from the device in exactly the same way that the
kernel does, by issuing an INQUIRY command.

>  The other OS shows "Eject"
> for the android device and for other pen drive I get a "safely remove"
> option - stated this assuming the options in nautilus and the other OS
> mean the same.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ