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.1212131307250.1415-100000@iolanthe.rowland.org>
Date:	Thu, 13 Dec 2012 13:10:59 -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 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.

> > No, neither option cuts power.  The main difference is that "safely
> > remove" disables the USB connection, so that if the device has an "okay
> > to unplug now" light, the light will turn on.
> 
> I have seen lights going off in my pen drive, so naturally as an user
> I assumed that nautilus request the kernel to cut down the power and
> kernel did that. After choosing "Safely Remove" option my device node
> (/dev/sdb or whatever) still exists?

No, it is gone.  At least, I think so -- I'm not sure exactly what 
nautilus does when you select "Safely Remove".  The kernel's USB stack 
has a "remove" interface that is meant for this sort of thing; I've 
been assuming that this is what nautilus uses.

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