Problem with a Samba mount
Hi I've got a 1.5TB drive I use as a network mount controlled by fstab and samba, however the drive does not mount upon booting. Issuing a 'mount -a' mounts the drive correctly, I then restart samba and shaboom it works.
However it seems to unmount itself randomly, when I was copying some files from it today the mount just disappeared so I had to restart the server. My /etc/fstab looks like: Code:
# /etc/fstab: static file system information. Code:
/dev/root on / type ext4 (rw,noatime,data=ordered) Code:
[Crypt] My thinking is it's something to do with ntfs-3g... |
/var/log/syslog implies that drive disconnected and it's using usb 1-1.3? The drive is running USB 2.0
Code:
Mar 5 22:01:29 box kernel: [524973.048356] usb 1-1.3: USB disconnect, device number 5 |
I assume the drive is connected to the RPi and not version 2. What is the make/model of your drive? Is the drive USB powered?
It might be pulling to much power at start up and when it spins up and also assume that this is a mechanical vs SSD. If it is USB powered then I suggest getting a powered hub. As a side suggestion I would reformat the drive as ext4 vs NTFS. Makes things a little neater. Be sure to backup any data prior since reformatting will erase all data. |
This is actually connected to a Pi2, good suggestion I'll connect it to my hub (didn't originally as I thought the Pi2 had corrected problems with it's USB power) if the problem persists I'll format over o EXT4 - only reason I didn't initially is that makes it a little easier to pull data from it on 'other platforms'.
The drive is connected via a USB cable with it's own 12V 2A self powered supply. The make is 'CiT'. Pi2 is powered by a 5v 2A power supply. |
Quote:
However the drive is powered differently, as you've already cited. Therefore I'm confused a bit. You mention connecting it to a hub. Well whether a hub or a cable, if there is sufficient power provided to the USB accessory via external power, then it doesn't matter whether it's a hub or direct cable. Reformatting the drive is probably too reactionary of an early diagnostic. What I'd do is see if that drive worked with a normal x86 architecture. Do you have a full PC setup where you can test it? If so, and if the drive works fine in that case, then it's not the format or contents on the drive but instead the power being provided to it. 2A should be sufficient. It's not one of those 50 foot powered CiT USB cables is it? The power there would likely be chewed up by the line propagation for the length of such a cable. Instead try to find and use a normal length < 6 foot USB cable. And if this means that you need to swap over to a powered USB HUB, then so be it. |
I took your advice as recommended and the some issues came up even on my Desktop machine - I eventually worked out that the hard drive enclosure only supports upto ~1TB and haven't had an issue since.
Thanks again |
Quote:
You did post the solution, but in general form and maybe if there are some specifics which can help someone in the future, it would be beneficial to them to see a documented solution. Regards, - RT |
All times are GMT -5. The time now is 08:30 AM. |