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]
Date:	Sun, 26 Aug 2007 00:21:47 +0200
From:	Stefan Richter <stefanr@...6.in-berlin.de>
To:	Guennadi Liakhovetski <g.liakhovetski@....de>
CC:	Josh Boyer <jwboyer@...il.com>, Casey Dahlin <cjdahlin@...u.edu>,
	linux-kernel@...r.kernel.org
Subject: Re: USB Key light on/off state depending on mount

Guennadi Liakhovetski wrote:
> I might imagine how windows turns the LED off on 
> unmount. Try "eject /dev/sdX", where sdX is your USB storage, after you 
> unmount it. Be careful, especially if you have SATA (or SCSI) discs in 
> your system or if you use libata for PATA discs not to eject the wrong 
> one...

If there is only one USB disk connected:
# eject /dev/disk/by-path/*usb*:0

Provided you let udev create links for you.  BTW, the /dev/disk/by-id/
symlinks are nice for static mount points in /etc/fstab.

After a disk was mounted, eject also accepts the mountpoint as parameter
and will unmount the disk before it tries to eject it.
-- 
Stefan Richter
-=====-=-=== =--- ==-=-
http://arcgraph.de/sr/
-
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