Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?

看板FB_hackers作者時間18年前 (2007/08/14 19:18), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/10 (看更多)
On Tue, 14 Aug 2007 03:08:33 -0700 soralx@cydem.org wrote: > > > Is there a tool under FreeBSD 6.2 that properly stops a USB device, > > equivalent to Windows XPs Safely Remove Hardware? I noticed that > > Windows sends a IRP_MN_REMOVE_DEVICE command, after which my LaCie > > external HDD spins down. Same applies to any USB stick: the light > > goes out on the stick. I would like to do this under FreeBSD too. > > camcontrol eject or stop don't do anything. > > > > So, the question really is: how to send a IRP_MN_REMOVE_DEVICE > > command? > > `camcontrol da? stop` seemed to do the trick before (5.2.1-R, AFAIR), > but now I'm not sure (looks like it doesn't) sorry, I meant to say that `camcontrol da? stop` does not power down the device anymore; nonetheless, it is probably safe to disconnect it > tested with SCSI hard drives and Adaptec 29160 > > > Sven > > [SorAlx] ridin' VS1400 [SorAlx] ridin' VS1400 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #16mO-D00 (FB_hackers)
討論串 (同標題文章)
完整討論串 (本文為第 3 之 10 篇):
文章代碼(AID): #16mO-D00 (FB_hackers)