fswebcam

Hello

So I am trying to use my arduino yun to capture images. It doesn't work more often than not. Some times it will capture an image, other times, the arduino will end up rebooting at this point:

--- Opening v4l2:/dev/video0...
/dev/video0 opened.
Adjusting resolution from 384x288 to 352x288.

At the moment, I am getting it to work by accident really. Does any one know what needs to be done to achieve the goal consistently?

How did you connected the webcam on Arduino Yun? USB port?

Do you access the images from web browser?

The camera is connected via usb.
And the images are taken and then stored on an sd card. I move to the sd card directory:
/mnt/sda1

then go on to take a picture with

fswebcam test.png

I have even tried to reduce resolution, thinking the webcam is over working the yun, but I still get the same result.