Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Simon 'corecode' Schubert <[EMAIL PROTECTED]> writes: > Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes: > > All modern disks (since at least the early 1990s) automatically park > > their heads when they lose power. There is no need to do it in > > software. > So it seems that windows is switching off the power of the devices > when you select "eject". I can see that some users might feel more > comfortable with this behaviour. Yes, if only because it saves power and reduces noise (for USB-attached mechanical drives at least). Note that this also requires logic in the enclosure to cut power to the drive when the device is detached; not all enclosures do this. Brand name drives (Maxtor OneTouch, Western Digital Passport etc.) usually do, while cheap DIY enclosures usually don't. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Dag-Erling Smørgrav wrote: Sven Hazejager <[EMAIL PROTECTED]> writes: No, camcontrol does not support this over USB. Windows XP demonstrates it is technically possible, and I do not believe it is fully safe to disconnect the drive (even when unmounted), as the drive then is not able to park its heads, which it DOES do under XP. All modern disks (since at least the early 1990s) automatically park their heads when they lose power. There is no need to do it in software. So it seems that windows is switching off the power of the devices when you select "eject". I can see that some users might feel more comfortable with this behaviour. cheers simon -- Serve - BSD +++ RENT this banner advert +++ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Sven Hazejager <[EMAIL PROTECTED]> writes: > No, camcontrol does not support this over USB. Windows XP demonstrates > it is technically possible, and I do not believe it is fully safe to > disconnect the drive (even when unmounted), as the drive then is not > able to park its heads, which it DOES do under XP. All modern disks (since at least the early 1990s) automatically park their heads when they lose power. There is no need to do it in software. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Sven Hazejager wrote: > No, camcontrol does not support this over USB. Windows XP demonstrates it > is technically possible, and I do not believe it is fully safe to > disconnect the drive (even when unmounted), as the drive then is not able > to park its heads, which it DOES do under XP. Every hard disk parks its head when power is switched off. Last time I saw a hard disk which required a command to park its heads was about 20 years ago on a DOS machine. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." -- RFC 1925 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
On Tue, Aug 14, 2007 at 04:14:06PM +0200, Sven Hazejager wrote: > >>>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 > > No, camcontrol does not support this over USB. Windows XP demonstrates it > is technically possible, and I do not believe it is fully safe to > disconnect the drive (even when unmounted), as the drive then is not able > to park its heads, which it DOES do under XP. Why do you think it is not safe? You either don't physically move the drive when disconneting it or it's not a mechanical drive at all. > So, we come back to the original question: how to send an > IRP_MN_REMOVE_DEVICE event? You don't have to, there is nothing more than not using the device you are about to remove. This is different in windows where every device available is automatically mounted, polled for media change, or whatever. -- B.Walterhttp://www.bwct.de http://www.fizon.de [EMAIL PROTECTED] [EMAIL PROTECTED][EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Sven Hazejager wrote: 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 No, camcontrol does not support this over USB. Windows XP demonstrates it is technically possible, and I do not believe it is fully safe to disconnect the drive (even when unmounted), as the drive then is not able to park its heads, which it DOES do under XP. So, we come back to the original question: how to send an IRP_MN_REMOVE_DEVICE event? Maybe this helps? man camcontrol ? : cmd Allows the user to send an arbitrary SCSI CDB to any device. The cmd function requires the -c argument to specify the CDB. Other arguments are optional, depending on the command type. The command and data specification syntax is documented in cam_cdbparse(3). NOTE: If the CDB specified causes data to be transfered to or from the SCSI device in question, you MUST specify either -i or -o. -c cmd [args] This specifies the SCSI CDB. CDBs may be 6, 10, 12 or 16 bytes. -i len fmt This specifies the amount of data to read, and how it should be displayed. If the format is `-', len bytes of data will be read from the device and written to stan- dard output. -o len fmt [args] This specifies the amount of data to be written to a device, and the data that is to be written. If the format is `-', len bytes of data will be read from standard input and written to the device. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
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 No, camcontrol does not support this over USB. Windows XP demonstrates it is technically possible, and I do not believe it is fully safe to disconnect the drive (even when unmounted), as the drive then is not able to park its heads, which it DOES do under XP. So, we come back to the original question: how to send an IRP_MN_REMOVE_DEVICE event? Regards, Sven ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
On Tue, 14 Aug 2007 03:08:33 -0700 [EMAIL PROTECTED] 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 "[EMAIL PROTECTED]"
Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
> 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) tested with SCSI hard drives and Adaptec 29160 > Sven [SorAlx] ridin' VS1400 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Hi all, 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? Thanks, Sven ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"