Re: [Emc-users] pmount package and pmount/pumount commands [Was: Beaglebone USB]
On 12/3/2013 12:41 AM, Erik Christiansen wrote: On 02.12.13 18:49, Andrew wrote: I installed pmount package and nothing changed. When I try to mount or open a flash drive from 'linuxcnc' session: 'Failed to mount PENDRIVE. Not Authorised' Er, are you using the pmount command? (On ubuntu, we are in group plugdev by default, it seems. Dunno about debian.) No such problem with 'root'. Well, root doesn't need to use the pmount command, because it has mount permissions. ;-) Erik (Who uses pumount to unmount flashsticks before pulling them out, to ensure that all data has been written. Mounting is automatic on ubuntu.) Erik: I was dubious too but I've now duplicated Andrew's situation on my own Beaglebone Black. With the Debian install on this board, the group plugdev exists and is empty and the pmount package is not installed. When I install the pmount package the group pmount remains empty and I can't invoke pmount as a normal user. In my case, I get bash's classic complaint, Permission denied. I don't see Erik's Failed to mount... message. IIRC, this latter message is usually issued by mount when fstab isn't set properly. When I added myself to the group pmount, as the man pages explicitly notes must be done for Debian, I still couldn't invoke pmount as myself, although I should be able to since /usr/bin/pmount has file mode bits: -rwsr-xr-- [Note that I always logout and login again to ensure my changes to /etc/group are picked up.] As expected, I can invoke pmount as root, and if I install the sudo package and add myself to the sudoers list, I can invoke 'sudo pmount' whether or not I'm a member of group plugdev. My results suggest there is something rotten in the state of Debian. Regards, Kent -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Beaglebone USB
Hi, I'm using MachineKit as well. To be able to use my USB thumb drive I do the following (with an internet connection via the ethernet port): sudo apt-get install pmount then I use: sudo fdisk -l to find the USB drive. It usually ends up being sda. There were two partitions on the drive, sda1 and sda2, so I use: sudo pmount sda2 since that is where the data I want to access is. After this I could access the drive. This is not a permanent fix (if that is what you are looking for). I need to do this every time after I boot (which really isn't an issue for me since I'm setting up fresh LinuxCNC MachineKit systems and copying over files to the new uSD). Sometimes I need to re-insert the thumb drive if it isn't found after booting up. To make the mount happen at bootup you should be able to change the /etc/fstab file. You can try adding the following line to your fstab file to get it to mount at boot time: /media/sda2 / ext4 noatime,errors=remount-ro 0 0 Follow the same format as the mmcblk lines in the file. If your disk isn't sda2, then change that to whatever it shows up as from the fdisk command (above). Jeff From: pkm...@gmail.com Date: Mon, 2 Dec 2013 21:45:15 +0200 To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Beaglebone USB 2013/12/2 Kent A. Reed kentallanr...@gmail.comhttps://mail.google.com/mail/u/0/?view=cmfs=1tf=1to=kentallanr...@gmail.com On 12/2/2013 11:49 AM, Andrew wrote: 2013/12/2 Charles Steinkuehler char...@steinkuehler.nethttps://mail.google.com/mail/u/0/?view=cmfs=1tf=1to=char...@steinkuehler.net On 12/2/2013 12:08 AM, Erik Christiansen wrote: Perhaps you can talk Charles into including the pmount package in his distro. I installed the minimum amount of packages I could to get LinuxCNC built and running. But Debian has just about anything you might ever want, just aptitude install package. I installed pmount package and nothing changed. When I try to mount or open a flash drive from 'linuxcnc' session: 'Failed to mount PENDRIVE. Not Authorised' No such problem with 'root'. My knowledge may be out of date but the last time I looked at pmount it required the user to be a member of the group plugdev. Thanks for the tip. I just did addgroup linuxcnc plugdev and nothing's changed. More googling shows that the problem is much deeper. There's a solution in this thread http://linux.derkeiler.com/Mailing-Lists/Debian/2011-10/msg01232.html I will probably try it later. -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] OneCNC post for LinuxCNC?
Hi, Anyone around that uses both OneCNC (CAM) and Linux CNC? I'm looking for a OneCNC (XR4 or XR5) post processor for Linux CNC. I figure I can make one from a generic Fanuc post, but thought I'd ask first in case someone already has one. Dave -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Beaglebone USB
I've been fighting with USB port on my BBB for a few month. First, I can't connect separate keyboard and mouse - only combo devices. USB hubs won't work (I tried a few). Obviously I can't use USB flash drives either. Strange, I had all these problems with my Raspberry Pi. It would only work with 1 USB hub I had. I haven't had compatibility problems with BBB. Second, when I unplug USB keyboard and plug it back, BBB does not see it again. From memory, the BBB doesn't support hot plugging USB devices (or doesn't do it well). I spent a day messing with that. I don't have a problem if everything is connected at power up. -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Beaglebone USB
On 12/2/2013 2:08 PM, Charles Steinkuehler wrote: On 12/2/2013 1:45 PM, Andrew wrote: snip More googling shows that the problem is much deeper. There's a solution in this thread http://linux.derkeiler.com/Mailing-Lists/Debian/2011-10/msg01232.html I will probably try it later. Fell free to switch to LXDE or some other window system if the issue is peculiar to XFCE. I selected XFCE somewhat arbitrarily, based mainly on how usable it seemed with minimal install effort on my part. LXDE could very easily have been a better choice, and I'm not particularly tied to any one specific GUI window manager. Reading through some of the Debian bugs and wiki pages, it sounds like this could be the result of using xdm instead of something else. You might try installing LightDM as a replacement and see if that fixes things up w/o pulling in too much extra bloat. Let me know if you get a fix. This seems useful to have working by default on the MachineKit images if the fix isn't too messy. Please try the following. At a command prompt run: sudo aptitude install lightdm When prompted to pick a default display manager, choose lightdm instead of xdm. Once everything is installed, reboot and see if your USB issue is fixed. This only seems to pull in a few additional packages, and the lightdm is trusted by ConsoleKit, so things like the shutdown and reboot icons work (and hopefully your USB disk mounting). -- Charles Steinkuehler char...@steinkuehler.net signature.asc Description: OpenPGP digital signature -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] pmount package and pmount/pumount commands [Was: Beaglebone USB]
On 03.12.13 09:33, Kent A. Reed wrote: When I added myself to the group pmount, as the man pages explicitly notes must be done for Debian, I still couldn't invoke pmount as myself, although I should be able to since /usr/bin/pmount has file mode bits: -rwsr-xr-- [Note that I always logout and login again to ensure my changes to /etc/group are picked up.] Then perhaps the quickest workaround for the OP is to do a: $ sudo chmod o+x /usr/bin/pmount Then anyone can run it, and the Debian bug is avoided, admittedly at the cost of the risk that any of the hundreds of users on his home system could mount the flash drive as well. :^) As expected, I can invoke pmount as root, and if I install the sudo package and add myself to the sudoers list, I can invoke 'sudo pmount' whether or not I'm a member of group plugdev. Now that's bending over backwards to let Debian off the hook - 'sudo mount' has to be enough, as I'm sure you could tell me. (The whole point of pmount is to save having to be in /etc/sudoers, AIUI.) My results suggest there is something rotten in the state of Debian. Pretty darn convincingly, I'd say. A bug report is well warranted, I figure. Erik -- US surgeon Alton Ochsner recalled that when he was a medical student in 1919 his class was summoned to observe an autopsy of a lung cancer victim. At that time, the disease was so rare it was thought unlikely the students would ever get another chance. - http://www.bbc.co.uk/news/magazine-20042217 -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users