lkml.org 
[lkml]   [2007]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: USB Key light on/off state depending on mount
Sorry to have left this dormant for so long.

Running eject in either of the ways suggested still leaves the light on
my particular key turned on.

Stefan Richter wrote:
> 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.
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-09-07 22:07    [W:0.193 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site