Page 1 of 1

[SOLVED] Automount USB stick

Posted: 06 Mar 2013, 19:11
by DilbertLinux
Is there a way to get Porteus 2.0 to auto mount USB flash drives that are plugged in after boot up?

Can't seem to find a way to do this.

Thanks

Re: Automount USB stick

Posted: 06 Mar 2013, 19:21
by fanthom
hi DilbertLinux,

i'm guessing that are you booting with copy2ram cheatcode - is it?
if yes then please add 'noeject' cheatcode (read /boot/docs/cheatcodes.txt for description).

EDIT:\\
seems that i did not read initial post carefully enough :oops:

Re: Automount USB stick

Posted: 06 Mar 2013, 19:39
by DilbertLinux
I am booting from CD.

But I need to be able to plug a USB stick in and have it auto mount it so a program I am running can use it. Is a little pain to have to manually mount the USB stick each time I plug it in. (and this has to be used by some people that aren't use to Linux)

Re: Automount USB stick

Posted: 06 Mar 2013, 21:13
by brokenman
Please post which desktop you are using (KDE4, Razor, LXDE or xfce) and we will be able to better assist you. For example KDE has an association with external drives and an option of what to do when they are plugged in. You can have an icon appear on the desktop or have it automount. At least this was the case in the 3.5x line.

Re: Automount USB stick

Posted: 07 Mar 2013, 13:37
by DilbertLinux
I am using the Razor desktop.

Re: Automount USB stick

Posted: 08 Mar 2013, 01:03
by brokenman
In that case spacefm (file manager) can handle the mounting. Please plugin your device and then click on the little mount icon in the bottom right panel to mount the device. Then open spacefm via the menu or by double clicking on a desktop icon. In the left column right click on the device you wish to have automounted and look under the mount options for the mount options. If you are saving your changes then this devices will always be automounted when it is plugged in.

Re: Automount USB stick

Posted: 08 Mar 2013, 15:20
by DilbertLinux
Since I am booting from a CD I don't save changes. Is there a away to tell spaceFM to auto mount any USB stick that is plugged into the machine?

Thanks for the responses

Re: Automount USB stick

Posted: 09 Mar 2013, 00:37
by brokenman
I believe if you start spacefm as a daemon it will automount external devices:

Code: Select all

spacefm -d
http://ignorantguru.github.com/spacefm/ ... daemonmode

I can't confirm this until i return to my Razorqt desktop.

Re: Automount USB stick

Posted: 12 Mar 2013, 14:02
by DilbertLinux
Thanks for the info brokenman was able to figure out the issue. I boot into root and the udevil tool used to point things by spaceFM is not configure to let root mount drives. So I updated the udevil.config file to so allow_groups = plugdev, root
So now when the user plugs a USB stick into the computer it get auto mounted.

Thanks,
:D