Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB-Speicherstick: wie nach unmount Licht ausschalten?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Tue Jul 10, 2007 9:06 pm    Post subject: USB-Speicherstick: wie nach unmount Licht ausschalten? Reply with quote

Hallo,

sorry für den etwas seltsamen Titel :lol:

Hintergrund: die meisten USB-Sticks haben eine LED, die beim Zugriff flackert, bzw. nach dem Einstecken leuchtet, und unter Windows erlischt, wenn man den Datenträger auswirft, und alle Daten weggeschrieben worden sind.

Das finde ich praktisch, es hilft einfach, einen Datenverlust zu vermeiden. Nun habe ich mir einen SanDisk Cruzer 1.0GB zugelegt, der die Angewohnheit hat, mich permanent böse anzuglühen.
An sich ja nicht so schlimm, aber ich weiß oft nicht mehr, ob der noch gemounted ist oder nicht; gibt es denn irgend eine Möglichkeit, das Licht nach dem unmount auszuschalten?

Gruß
OscarWild
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
andix
Apprentice
Apprentice


Joined: 10 Jul 2004
Posts: 263
Location: Eisenstadt, Austria

PostPosted: Tue Jul 10, 2007 9:10 pm    Post subject: Reply with quote

Probier einmal "eject /dev/sdx"
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Wed Jul 11, 2007 6:57 am    Post subject: Reply with quote

Hallo andix,

auch schon probiert, damit klappt es leider ebenfalls nicht.

Gruß
OscarWild
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
UTgamer
Veteran
Veteran


Joined: 10 Aug 2003
Posts: 1326
Location: Troisdorf (Köln) Deutschland

PostPosted: Wed Jul 11, 2007 8:23 am    Post subject: Reply with quote

Ich denke das hat mit dem ACPI-Powermanagement zu tun und wird vom Kernel verwaltet.
Die Neuerungen von Linux 2.6.22
Zitat:
"Auch der Code zum parallelen Suchen nach PCI-Hardware wurde wieder entfernt; im USB-Subsystem verbesserten die Entwickler das Power-Management von USB-Geräten zur Laufzeit."

Du wirst es also irgendwo im /proc oder /sys System abschalten können. Genaueres weiß ich zur Zeit nicht.
_________________
AMD Phenom II x4 >> CFLAGS="-march=amdfam10 -O2 -mmmx -msse3 -mfpmath=sse,387 -pipe -ffast-math" is stable and here in use.

Did Intel produce at any time bugfree HW?
http://www.urbanmyth.org/microcode/
http://www.heise.de/newsticker/meldung/91748
Back to top
View user's profile Send private message
Vortex375
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1739
Location: Deutschland

PostPosted: Wed Jul 11, 2007 8:28 am    Post subject: Reply with quote

Dafür kann man die USB-Geräte unter Windows auch nur wieder reaktivieren, indem man sie neu einsteckt. Unter Linux bleiben die Geräte halt an und man kann sie mounten und entmounten so oft man will. :)
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Wed Jul 11, 2007 8:34 am    Post subject: Reply with quote

@UTgamer: Danke für den Tipp, da werde ich mal nachsehen!

@Vortex375: gut und recht, aber es nervt mich gerade massiv bei der Arbeit - und ich will den Stick definitiv nicht mehr remounten, sondern einfach nur unmounten, mich kurz um was anderes kümmern, und dann abziehen.
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
UTgamer
Veteran
Veteran


Joined: 10 Aug 2003
Posts: 1326
Location: Troisdorf (Köln) Deutschland

PostPosted: Wed Jul 11, 2007 8:47 am    Post subject: Reply with quote

/proc und /sys sind ja riesig, evtl. können dir die Tools
udevinfo -a -p /sys/block/[dein Gerät, wie sdx oder ubx]
sowie
app-admin/usbview
dabei weiterhelfen.

Ich könnte mir vorstellen das du wenn du das Gerät ausfindig gemacht hast über eine udev-Regel und einem Script nach dem unmount das Gerät in den Powersave-Modus schicken kannst.

http://de.gentoo-wiki.com/Udev_Rules
_________________
AMD Phenom II x4 >> CFLAGS="-march=amdfam10 -O2 -mmmx -msse3 -mfpmath=sse,387 -pipe -ffast-math" is stable and here in use.

Did Intel produce at any time bugfree HW?
http://www.urbanmyth.org/microcode/
http://www.heise.de/newsticker/meldung/91748
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Wed Jul 11, 2007 12:38 pm    Post subject: Reply with quote

Schmeiß das Modul aus dem Kernel. Dann leuchtet da nichts mehr.
Wenn du dann wieder ein Usb Gerät einsteckst, sollte das Modul wieder geladen werden.

Eine andere Möglichkeit kenne ich auch nicht.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum