LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-14-2015, 05:51 PM   #1
Ali3n0id
LQ Newbie
 
Registered: Nov 2014
Distribution: Mint, Raspbian, Ubuntu 14
Posts: 24

Rep: Reputation: Disabled
Annoying Issue with Samba/Hard Drive/Windows


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.

I really appreciate your thoughts...
 
Old 02-14-2015, 07:46 PM   #2
LinuxUser42
Member
 
Registered: Nov 2010
Distribution: Lubuntu, Raspbian, Openelec, messing with others.
Posts: 143

Rep: Reputation: 19
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).
 
Old 02-15-2015, 08:51 AM   #3
Ali3n0id
LQ Newbie
 
Registered: Nov 2014
Distribution: Mint, Raspbian, Ubuntu 14
Posts: 24

Original Poster
Rep: Reputation: Disabled
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.

You could very well be right...

I'm using this drive here: http://www.amazon.co.uk/CiT-3-5-inch...productDetails

But looking at the power cable for the hard drive it could possibly be wrong, can't find power requirements for it on the web.

I have a ton of power cables but two stand out, one which was plugged into provides 12V with 1.5A while the other is 12V with 2A Output...

Hmmm...
 
Old 02-15-2015, 08:57 PM   #4
LinuxUser42
Member
 
Registered: Nov 2010
Distribution: Lubuntu, Raspbian, Openelec, messing with others.
Posts: 143

Rep: Reputation: 19
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)
 
Old 02-18-2015, 07:58 AM   #5
Ali3n0id
LQ Newbie
 
Registered: Nov 2014
Distribution: Mint, Raspbian, Ubuntu 14
Posts: 24

Original Poster
Rep: Reputation: Disabled
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!
 
Old 02-18-2015, 08:28 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by Ali3n0id View Post
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive issue or kernel issue grob115 Linux - Server 2 04-22-2012 03:34 AM
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Windows grub hard drive issue! Ubumby Linux - Newbie 12 04-28-2008 06:31 PM
[SOLVED] How do I swap windows on hard 2 to hard drive 1 and linux from 1 to 2 uncle guido Linux - Newbie 5 10-25-2006 11:14 AM
External storage for Linux/Windows: Samba or USB 2.0 attached Hard Drive? SparceMatrix Linux - Hardware 1 02-04-2005 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration