USB memory stick causes Pi to shutdown


2 posts
by rpdom » Fri Jan 04, 2013 4:34 pm
(note: Please read entire post before replying. Ta :-) )

Every time I plug a certain USB memory stick into my Raspi, it shuts down!

This is not a problem with the Pi, it is a deliberate effect.

I often use my Pi as a simple media player. No keyboard or mouse, just a few simple udev rules that run on insertion of certain USB memory sticks.

Any USB device that has a first partition having a label of "VIDEO_nnn" will be automounted and a menu run that allows playing of video files recorded from my MythTV system on it.

One particular memory stick (an old 128MB, unreliable unit), with a certain UUID will trigger "shutdown -h now".

It's a very handy way of doing a controlled shutdown of my Pi when I have no other way of connecting to it :-)
User avatar
Posts: 4113
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK
by Mortimer » Fri Jan 04, 2013 4:56 pm
Clever.
User avatar
Posts: 721
Joined: Sun Jun 10, 2012 3:57 pm