Re: Fwd: Safely remove option shows with Micro SD Card connected to Linux through an Android phone
On Wed, Dec 12, 2012 at 9:11 PM, Alan Stern st...@rowland.harvard.edu wrote: That's the error code returned by the USB stack when a request is cancelled synchronously. But it is intended for internal kernel use only; it should not appear at the userspace level. Without knowing the details of what the program did, it's hard to tell how that code got there. I am not much aware of the nautilus code. May be people who work on Nautilus will be able to provide this information. Can any nautilus contributor or one who has idea of nautilus code explain this? Having safe to remove and eject are great and fine tuning them will be very useful for users. -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fwd: Safely remove option shows with Micro SD Card connected to Linux through an Android phone
On Wed, Dec 12, 2012 at 9:11 PM, Alan Stern st...@rowland.harvard.edu wrote: That's the error code returned by the USB stack when a request is cancelled synchronously. But it is intended for internal kernel use only; it should not appear at the userspace level. Without knowing the details of what the program did, it's hard to tell how that code got there. Makes sense. Seeing the reason having this is really helpful I think. A good information :). Forgot to copy all so sending this reply again. Thanks, PrasannaKumar -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fwd: Safely remove option shows with Micro SD Card connected to Linux through an Android phone
On Thu, Dec 13, 2012 at 11:40 PM, Alan Stern st...@rowland.harvard.edu wrote: On Thu, 13 Dec 2012, prasannatsmkumar wrote: On Wed, Dec 12, 2012 at 2:07 AM, Alan Stern st...@rowland.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? 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. Thanks, PrasannaKumar -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Fwd: Safely remove option shows with Micro SD Card connected to Linux through an Android phone
On Fri, Dec 14, 2012 at 12:49 AM, Alan Stern st...@rowland.harvard.edu wrote: On Thu, 13 Dec 2012, prasannatsmkumar wrote: On Thu, Dec 13, 2012 at 11:40 PM, Alan Stern st...@rowland.harvard.edu wrote: On Thu, 13 Dec 2012, prasannatsmkumar wrote: On Wed, Dec 12, 2012 at 2:07 AM, Alan Stern st...@rowland.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 problem :). 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. I will try to file a bug in nautilus project. As I am not in the nautilus mailing list my mails are not getting delivered. 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 Thanks, PrasannaKumar -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html