Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got a Raspberry Pi here I've set up to use as a NAS box. I've set up Samba and all correct permissions on the shared folders. I can access them through Windows and begin copying files...
Soon after I encounter numerous errors;
The device has failed because of an I/O error
The network path is no longer available
You need permission tp perform this action
I then login to the machine and attempt to issue simple commands and get:
-bash: /bin/ls: No such file or directory
etc. etc.
I've used two different hard drives in an external enclosure and have made the Pi boot from the hard drives to improve performance.
I'm really stumped at what this could be, my current thinking is that the external enclosure I encase the hard drive in is somehow faulty as I have also tried making the shares available on just the external drive whilst still booting from the SD card.
Distribution: Lubuntu, Raspbian, Openelec, messing with others.
Posts: 143
Rep:
How is the drive connected to the PI? How is the drive powered? Sounds like it is loosing power and shutting off as far as the PI is saying (drawing too much power on a USB port perhaps).
Something I have experienced with USB drives is on slower USB 2.0 (which the PI is), the network will take more then the drive can accept over it (fills cache and slows down).
The drive is a self powered USB 2 hard drive caddy and is connected via USB A to B cable into one of the Pi's ports. The Pi is powered with it's own USB micro charger 5V 2A.
Distribution: Lubuntu, Raspbian, Openelec, messing with others.
Posts: 143
Rep:
3.5" drives in my experience, typically draw more power. You don't say what model and version your PI is, and I know some of the earlier ones had more issues with power through the USB, so one experiement to try, if you have one, is to plug the hard drive into a powered hub. (might stabilize it)
I was actually using a Pi2 for this - seems to have been a problem with Samba, which is weird because it was causing programs to produce 'command not found' error.
I was actually using a Pi2 for this - seems to have been a problem with Samba, which is weird because it was causing programs to produce 'command not found' error.
Anyway appreciate the help!
Remember the PI2 has that light sensitive power filter... cover it with some black electricians tape...
The disk should have an external power supply (the CIT container lists an auxiliary power unit)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.