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: <20090102140845.GA25400@dose.home.local>
Date:	Fri, 2 Jan 2009 15:08:45 +0100
From:	Tino Keitel <tino.keitel@....de>
To:	Alan Stern <stern@...land.harvard.edu>, gregkh@...e.de,
	linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: Enable CONFIG_USB_SUSPEND by default or some mobile HD can't
	be unplugged safely

On Fri, Jan 02, 2009 at 22:00:23 +0800, Yan Li wrote:
> On Fri, Jan 02, 2009 at 10:56:43AM +0100, Tino Keitel wrote:
> > With a WD My Passport drive (2,5"), I need to use sg_start --stop --pc=3
> > to stop the disk before unplugging it. Maybe this works with your
> > drive, too.  This is also required by some Firewire hard disks.  Maybe
> > the eject command should be extended to use this method, as it is used
> > also by HAL to eject hotplug devices.
> 
> Hum...  I grepped my hal and hal-info packages but haven't found any
> scripts using `sg_*'. I'm using hal package 0.5.11-6 from Debian
> testing.

HAL uses /usr/bin/eject, which doesn't set the power condition (as
sg_start --pc=X does).  So eject (and HAL) doesn't work with disks that
require to set the power condition.

Just try sg_start --stop --pc=3 /dev/sdX to see if it works for you.

Regards,
Tino
--
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