Autorun a removable device in Linux

I have a removable device setup so it autoruns when plugged into a Windows machine and pops up a message giving the owner's information, so it can be returned if lost. Is there a way to do this in Linux as well? It doesn't need to be complex, it can be an option in a right-click menu, or a splashscreen, or anything.

--------------Solutions-------------

No. Unlike a default installation of Windows, which looks at Autorun.inf and automatically executes a specified program (or at least asks whether the user wants to run the "default action"), no distribution of Linux does this. Any autorun-like feature upon inserting a USB device on Linux must be explicitly set up by the user.

By the way, the autorun "feature" of Windows can be disabled, and it frequently is disabled by security-conscious computer users.

I haven't understood well what you're trying to do, anyway I strongly suggest to use one of the APIs provided by dbus (expecially the hal service).

Though this approach is not immediate.

http://dbus.freedesktop.org/doc/dbus-tutorial.html

I guess you could just put a file in the root directory called README_Owner_Identification.txt. That way people using certain desktop environments would see the filename when the file browser popped up in response to a USB device being automounted. If I recall correctly, both GNOME and KDE will do this by default.

Of course, people would still have to open the file to see the info, and it wouldn't work on systems that have the settings changed, but it's probably your best option. Anything else would require that people engage in some thoroughly insecure system reconfiguration just to see your ID.

Category:windows Time:2010-06-07 Views:1

Related post

  • Copying devices in Linux 2011-10-01

    I am working at an OS independent file manager, in C. I managed to copy files, links and directories, but I am not sure how to copy devices. I would appreciate any help. --------------Solutions------------- To create a device file, use the mknod(2) s

  • "My removable device" shortcut virus.. 2013-04-09

    When I plug my USB on my computer, a virus hides my files and creates a shortcut called "My removable device". If I check shortcut's properties it shows this path "C:\windows\system32\rundll32.exe ~$WV.FAT32,[email protected] desktop.ini RET TLS " ". I ran AVG

  • Know from which device the Linux kernel booted 2010-06-29

    How can I know from which device the Linux kernel booted? --------------Solutions------------- mount Unless that command specifies a device for /boot then you can assume that it's on /. In fact, something like that http://lkml.org/lkml/2003/12/19/139

  • find out when a removal device connected? 2010-09-30

    How to find if a removal device connected to system and give it's name ? --------------Solutions------------- I am assuming you meant removable device. Here is some code that can be modified to accommodate your needs. using System; using System.Colle

  • Ejecting USB devices on linux 2011-02-22

    I'm using Udisks via dbus in python to unmount a usb device (in this case a Kindle), but I'd like to send the eject signal to it, as this kicks the Kindle back from USB mode into its usual interface. Udisks won't let me DriveEject, as it's not an act

  • How to register a device in linux 2011-05-24

    i need to register a new device in linux but i noticed that in kernel 2.6.34 function device_register is not exported...Which could be the solution? --------------Solutions------------- I believe you should rather use register_blkdev or register_chrd

  • Trouble talking to i2c device in linux 2011-05-26

    I'm having trouble talking to an i2c device in linux. The device is connected to the SMBus which normally comes up as /dev/i2c-0. My driver's init function is getting called and the driver is registered via i2c_add_driver however the driver never get

  • DVD drives do not show up as removable devices in Explorer under My Computer - they show as local hard drives 2012-07-30

    The DVD drives in my machine do not show up in the removable devices section of Explorer under Computer. They are listed under the hard drives section and there is no removable devices section shown. Some of my applications cannot detect that there i

  • OS Drive showing up as a "Removable" Device 2012-08-22

    Hi guys, I've been trying to resolve this issue since I set up my new system a couple of weeks ago and so far have not been able to find any good leads as to how this happened or how to fix it. The "it" is that my C: is showing up as a removable devi

  • I am seeing a Removable device G in My Computer. It is not showing in Device Manager. I know I have no such device installed in my computer. How can I remove this from My Computer?__ 2012-09-14

    I see all my devices plus this Removable device G This device not showing in Device Manager --------------Solutions------------- Hi, § Do you have any third party virtual CD/DVD drive program installed on the system? § Since when are you seeing this

  • Autoplay is enabled for all removable drives and media devices, but whenever I plug in a removable device or drive, it does not autoplay 2013-01-10

    Original Title: Autoplay I am running windows 7 professional (32-bit) on my laptop computer. Autoplay is enabled for all removable drives and media devices, but whenever I plug in a removable device or drive, it does not autoplay. how do I solve this

  • Mass storage devive cannot be read - Safely Remove Device icon not clicked? 2013-02-10

    I think I must have unplugged my A-DATA mass storage without clicking for the Safely Remove Hardware icon. Now I access the storage and it comes out with unreadable files for the whole storage device. I created a word file and stored in in the storag

  • How can I save the contents of an e-mail to a removable device (thumb drive) 2013-04-14

    I am trying to transfer the contents of an e-mail to a removable device. However, every method I use creates a file on the rd, but the file extension is unreadable by my computer without downloading a new program from the internet which I am reluctan

  • My built-in Wireless Card shows up as a removable device? 2012-01-02

    I posted this question a few years ago around the web when I first bought my laptop (Compaq 515, Win7 Home, 64 bit) and got no real answer. I asked Compaq/Hp who 'bumped' it up to Development and I haven't heard from them since... My built-in wireles

  • removable device 2012-01-08

    my removable device, which has pictures from my camera, will not be recognized by my computer. What is the problem? --------------Solutions------------- Hello Dutka5, Thank you for using Microsoft Windows Vista Forums. What type of removable device a

  • Phantom Removable Device (E:) 2012-01-19

    Upgraded to Win 7 home premium as clean install. Former E:partition on Vista is now a Removable Device E: on Win 7 and can't get rid of it. Continually appears in Win Explorer but there's is nothing present in any USB port. It's a phantom Removable d

  • Errors installing device driver software for removable devices in Windows Vista x64 2012-01-29

    I have Windows Vista x64 installed on my PC, and nVidia Forceware motherboard and graphics cards. When I plug in any removable drive into my USB 2.0 port, Windows begins installing the device driver software, and then sees it as an Unknown Device. Th

  • Windows 8 Removable Device Issue 2012-02-19

    I am having an issue with seeing both my iphone and itouch as removable devices on Windows 8. Both items are recognised as being plugged in when I am looking at iTunes and both can sync, however in previous versions on Windows I could see them as rem

  • Are there any chances that Microsoft will allow removable devices (CDs, USBs, etc.) to access the hard drive without booting into the OS? 2012-02-25

    So I fix computers for my living. (I am A+ and Net+, also majoring in networking; emphasizing on Digital Forensics.) My pet peeve is when a customer brings in a Windows 8 computer that has a virus on it and can't boot; there is really not too much th

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.596 (s). 13 q(s)