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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-05-2015, 04:19 PM
|
#1
|
LQ Newbie
Registered: Nov 2014
Distribution: Mint, Raspbian, Ubuntu 14
Posts: 24
Rep: 
|
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.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/sda1 /media/Crypt ntfs-3g defaults,locale=en_GB.UTF-8 0 0
'mount' displays:
Code:
/dev/root on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=437856k,nr_inodes=109464,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=88432k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=176860k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda1 on /media/Crypt type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
My Samba config is:
Code:
[Crypt]
comment = Crypt
path = /media/Crypt
browseable = yes
#writeable = yes
valid users = @users
force group = users
#create mask = 0777
#directory mask = 0777
read only = no
My thinking is it's something to do with ntfs-3g...
|
|
|
03-05-2015, 04:36 PM
|
#2
|
LQ Newbie
Registered: Nov 2014
Distribution: Mint, Raspbian, Ubuntu 14
Posts: 24
Original Poster
Rep: 
|
/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
Mar 5 22:01:30 box kernel: [524973.067530] sd 0:0:0:0: [sda]
Mar 5 22:01:30 box kernel: [524973.067559] Result: hostbyte=0x01 driverbyte=0x00
Mar 5 22:01:30 box kernel: [524973.067575] sd 0:0:0:0: [sda] CDB:
Mar 5 22:01:30 box kernel: [524973.067588] cdb[0]=0x2a: 2a 00 6c 32 27 40 00 00 f0 00
Mar 5 22:01:30 box kernel: [524973.067657] blk_update_request: I/O error, dev sda, sector 1815226176
|
|
|
03-05-2015, 06:33 PM
|
#3
|
Moderator
Registered: Aug 2002
Posts: 26,758
|
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.
|
|
|
03-06-2015, 04:53 AM
|
#4
|
LQ Newbie
Registered: Nov 2014
Distribution: Mint, Raspbian, Ubuntu 14
Posts: 24
Original Poster
Rep: 
|
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.
Last edited by Ali3n0id; 03-06-2015 at 04:56 AM.
|
|
|
03-06-2015, 08:36 AM
|
#5
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,954
|
Quote:
Originally Posted by Ali3n0id
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.
|
Still don't believe the Pi is going to be capable of powering USB accessories no matter how much current you make available for it. The Pi2 did not add USB powering capabilities, instead they added two more ports. The bridge chip on most PC's provides power up to 2A per USB bus for peripherals, the ARM does not have this and most of the bridge chips they're using also do not have these capabilities.
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.
Last edited by rtmistler; 03-06-2015 at 08:38 AM.
|
|
|
03-16-2015, 11:16 AM
|
#6
|
LQ Newbie
Registered: Nov 2014
Distribution: Mint, Raspbian, Ubuntu 14
Posts: 24
Original Poster
Rep: 
|
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
|
|
|
03-16-2015, 11:51 AM
|
#7
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,954
|
Quote:
Originally Posted by Ali3n0id
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
|
Glad you got it worked out. Can you mark the thread as solved and perhaps consider posting some of the details of the final problem solution?
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 03:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|