CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-25-2011, 06:15 PM
 
Join Date: Mar 2009
Location: USA
Posts: 11
13brv3 is on a distinguished road
USB stick question

Greetings,

I'm trying to learn to like EMC 2.4.3 (Linux 10.04), and I have something that is really confounding me. The machine (Probotix Comet) is running fine, and I'm using a USB stick to supply g-code files.

Say I finish a run, and decide I want to change the file before making a new run. This seems like a dumb question, but how do I get the stick out, and back in without having to shut down and restart EMC2? I've tried everything I can think of other than just yanking it out and putting it back.

Even if I open a local (HDD) g-code file within EMC2 (so I'm not using the USB drive), I still get an error when trying to "eject" the USB stick. It says the drive is busy, and that "Python" is using it. If I tell it to remove anyway, it doesn't comply. I can shut off the electronics box and shut down EMC2, and Ubuntu will let me eject the USB stick. The problem is that I now have to go through re-homing which is a hassle.

Is there a way to gracefully swap USB sticks while EMC2 is still running?

Thanks,
Rusty (Linux knows I don't like it)

Last edited by 13brv3; 04-26-2011 at 07:58 AM.
Reply With Quote

  #2   Ban this user!
Old 04-26-2011, 04:53 AM
 
Join Date: Mar 2007
Location: USA
Posts: 53
Lexx0001 is on a distinguished road

I'm not 100% certain what you mean when you unmount the file system.

Could you mean the USB Drive? If so, this may help. https://help.ubuntu.com/community/Mount/USB

Otherwise,

Which version of Ubuntu are you running? Probably doesn't matter, I'm just curious.

What's the error message?

Regards,

Bill K.
Reply With Quote

  #3   Ban this user!
Old 04-26-2011, 08:00 AM
 
Join Date: Mar 2009
Location: USA
Posts: 11
13brv3 is on a distinguished road

I just edited the original post so it's (hopefully) clearer. I just want to be able to swap USB sticks without shutting down EMC2.

Thanks,
Rusty
Reply With Quote

  #4   Ban this user!
Old 04-26-2011, 12:05 PM
 
Join Date: Jul 2007
Location: USA
Posts: 142
osphoto is on a distinguished road

If you are not using any files directly off the USB drive within EMC, you should not have to shutdown EMC.

What happens when you just remove the USB drive even if it does say it's busy?

If python is using the stick, and that process belongs to EMC, then verify your setup files for EMC.
Reply With Quote

  #5   Ban this user!
Old 04-26-2011, 02:43 PM
 
Join Date: May 2010
Location: US
Posts: 132
prcdslnc13 is on a distinguished road

1- never run a program off a usb stick, it doesnt supply the program in real time and theres always the chance it could drop off :/

2- I just pull my usb drives out, no unmounting or anything. As long as your not accessing your files, it shouldnt matter. Ive never once had an issue. Even with EMC running a program (not on the usb drive obviously)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-26-2011, 08:22 PM
 
Join Date: Mar 2009
Location: USA
Posts: 11
13brv3 is on a distinguished road

Thanks for the comments. I do in fact run the g-code directly from the USB stick, since it saves the hassle of copying it. Of course that's not too much hassle if you never change your files, but when you create them on another computer, keep a copy on a stick, AND keep a copy on the CNC computer, then it's a fairly significant PITA keeping them all the same. I'm really spoiled by my previous setup where Mach3 ran files across the network from the computer where they were made.

I have not tried pulling the USB stick out against it's will, since I've always been taught not to do that in Unix/Linux. If I only used the stick to copy to the HDD, I bet it would let me "eject" it even after EMC2 ran.

I will have to try another test based on what was mentioned here. I've got one large 3D file that always gives real time errors/delays somewhere during the run. It's never hurt anything, but it shouldn't happen of course. I tried copying the file to the HDD once to see if that helped, but it made no difference. What I'm wondering now is whether I removed the USB stick when I did that.

As for any configuration/setup questions, this system came pre-configured, and I've made no changes.

I'll play with this more later in the week.

Cheers,
Rusty
Reply With Quote

  #7   Ban this user!
Old 04-27-2011, 09:00 AM
 
Join Date: May 2010
Location: US
Posts: 132
prcdslnc13 is on a distinguished road

The real time errors are most likely caused but your base period being off.

Running code of the USB stick still concerns me, but really youll probably be ok. I just drag and drop the programs Im running onto my desktop, easy enough, and then move them to a folder once they have ran ok in case I want to run them later.
Reply With Quote

  #8   Ban this user!
Old 04-27-2011, 09:47 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,081
samco is on a distinguished road

you should be able to connect to window shares no problem with ubuntu. I do that all the time. (On my big hmc - I actually have the nc_files directory shared and drop files to it from the windows machines.)

sam
Reply With Quote

  #9   Ban this user!
Old 04-27-2011, 09:50 AM
 
Join Date: Jul 2007
Location: USA
Posts: 142
osphoto is on a distinguished road

If using Linux to run you machine, I'd be more opt to run it on a private network. Wireless routers are cheap or even get a cross over network cable and plug directly from computer to computer.

You could share off Linux storage area, mount on your windows box and copy/past and you are set.

I "sneaker" my files between windows boxes when I forget to cable up my two machines.
Reply With Quote

  #10   Ban this user!
Old 04-27-2011, 11:15 AM
 
Join Date: Dec 2009
Location: Hungary
Age: 35
Posts: 1
Doodkeen is on a distinguished road

For file sharing between Linux and Windows, Samba is the answer. You don't need a router, just a crossover ethernet cable, and fixed IP addresses for both computers.

Configuring a Samba server is not a big deal, but it would be easier if You share a folder on the Win, and mount it on your Ubuntu.



Dud
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-27-2011, 08:15 PM
 
Join Date: Mar 2009
Location: USA
Posts: 11
13brv3 is on a distinguished road

Thanks again for all the comments. I knew you could connect the computer to a windows network, but I didn't want to give the computer anything else to think about while it's trying to make parts.

I know that I have a lot to learn about Ubuntu and EMC2, but the machine was preconfigured, and I needed it to make parts as soon as possible. Now that I have a second machine on order, I intend to take some time with it to figure this stuff out, since I won't be required to be productive immediately. Of course it will be hard to resist setting it up with XP and Mach3 for a test as well.

Cheers,
Rusty
Reply With Quote

  #12   Ban this user!
Old 05-14-2011, 02:28 AM
 
Join Date: Aug 2008
Location: England
Posts: 26
melee is on a distinguished road
USB Stick busy?

Hi

Going back to your original question, I suspect that all that is happening is that so long as EMC has a file from the stick loaded, it is accessing the stick so it cannot be un-mounted.

Just put a dummy .ngc file on your hard drive and load that when you want to change sticks and you will then be able to 'umount /media/USBStick' or whatever it is called on your system.

Alternately you could use the stick as everyone else does and transfer files between computers with it and run them from your hard drive.

regards
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CHR Stick fonts adunor NCPlot G-Code editor / backplotter 1 07-18-2010 12:07 PM
Should I stick with CNC MBG CNCzone Club House 4 09-18-2009 10:46 PM
Stick Font V8 BUG Solidworks 1 11-21-2008 11:49 PM
Stick Fonts TZ250 BobCad-Cam 5 11-04-2007 08:03 PM
USB Stick as HDD babinda01 LinuxCNC (formerly EMC2) 7 09-17-2007 09:32 AM




All times are GMT -5. The time now is 05:03 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361