fstab mount on reboot not working
|
5th Jan, 2014, 06:28 AM
Post: #1
|
|||
|
|||
fstab mount on reboot not working
Hi,
I'm trying to configure Transmission to download to a drive connected to my router as a NAS. The router is a Huawei HG533 , it has some basic samba config available you can create user accounts and set them as read only or read/write also set the root folder for the user ... There's no options for a guest account or much else. So after much reading and playing about I have the set up half working. (users and passwords have been ****'d out for obvious reasons) To get the drive mounted manually this works, although it does prompt for a password afterwards - Code: sudo mount -t cifs //192.168.1.1/router /mnt/router -o user=****** So I added this to fstab to match the above Code: //192.168.1.1/router /mnt/router cifs username=******,password=****** 0 0 I had a few problems getting the drive to mount under xbian, one thing I have found is that it appears that you MUST include the domain parameter in the fstab file.. I have added this to /etc/fstab Code: //192.168.1.1/router /mnt/router cifs username=******,password=******,domain=WORKGROUP 0 0 Then I run - Code: sudo mount -a It mounts fine , but on reboot it doesn't mount at all ! Anyone know of a fix for this ? Thanks, Stu |
|||
7th Jan, 2014, 07:45 PM
Post: #2
|
|||
|
|||
RE: fstab mount on reboot not working
@stumax
edit /etc/init/xbian-net.conf and take this first lines: Code: #!upstart change to: ("………" just means whatever is there, keep "start on" as is - important is change "stop on …." to "stop on started xbian-net") Code: #!upstart report back. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
7th Jan, 2014, 08:11 PM
Post: #3
|
|||
|
|||
RE: fstab mount on reboot not working
Thanks mk01, I'll give this a try this evening and let you know how I get on !
Stu |
|||
8th Jan, 2014, 07:40 AM
Post: #4
|
|||
|
|||
RE: fstab mount on reboot not working
Hi mk01,
Unfortunatlely it didn't do the trick So the first few lines of xbian-net.conf looks like so, is this what you meant ? Code: #!upstart in fstab I have - Code: //192.168.1.1/router /mnt/router cifs username=******,password=******,domain=WORKGROUP 0 0 Thanks, sTu |
|||
8th Jan, 2014, 08:55 AM
Post: #5
|
|||
|
|||
RE: fstab mount on reboot not working
realized just now, updated the post
how I wrote it at first will not change the logic (to start and then stop). now should be ok. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
8th Jan, 2014, 11:47 PM
Post: #6
|
|||
|
|||
RE: fstab mount on reboot not working
Hi mk01,
OK so now I have - Code: #!upstart Same result on boot i'm afraid (not mounting)! Thanks, Stu |
|||
9th Jan, 2014, 04:24 AM
Post: #7
|
|||
|
|||
RE: fstab mount on reboot not working
ok, can you post to pastebin:
Code: cat /run/upstart-ev.log also what happens if you do from command line: Code: sudo mount -avs -t cifs Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
9th Jan, 2014, 05:02 AM
Post: #8
|
|||
|
|||
RE: fstab mount on reboot not working
Hi there,
my results: pastebin Just for your info, the harddrives weren't in any form of sleep state so this doesn't seem to be a problem. |
|||
9th Jan, 2014, 05:09 AM
Post: #9
|
|||
|
|||
RE: fstab mount on reboot not working
ok, got the point
change "stop on started xbian" to Code: stop on started xbian-net and (net-device-up IFACE!=lo or xbian-nowait) Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
9th Jan, 2014, 07:49 PM
Post: #10
|
|||
|
|||
RE: fstab mount on reboot not working
Hi mk01,
seems like it's still not working. I get the same errors on nzbget. Here's the logs from the three commands. pastebin |
|||
9th Jan, 2014, 08:20 PM
Post: #11
|
|||
|
|||
RE: fstab mount on reboot not working
can you please post your xbian-update version ? i will check the source as original B2 was a bit different than i'm testing on.
and yes, the mount.nfs output "nothing was mounted" is confusing, but it because current "new" linux implementation joined nfs4 and nfs2/3 under one helper so as you use mount -a -t nfs it actually runs two programs, one for nfs4 and second for nfs2/3 . of course one will report failure, second one will succeeded . people programming it should be sometimes think rather twice (btw: me too ) ) or maybe to speed this up - can you replace your /etc/init/xbian-net.conf with this content? Code: #!upstart Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
9th Jan, 2014, 08:39 PM
Post: #12
|
|||
|
|||
RE: fstab mount on reboot not working
Looks like editing it broke my setup. At least it doesn't come up again. Have to investigate further by the time i get home.
|
|||
9th Jan, 2014, 08:58 PM
Post: #13
|
|||
|
|||
RE: fstab mount on reboot not working
ok now I have the feeling we are hitting two problems one maybe solved masked by the other.
can you refer to this post ? and the linked link http://forum.xbian.org/thread-1770-post-19570.html#pid19570 (if you have "nfs" type in fstab, the new joined mount helper is trying nfs4 first. unfortunately under some conditions can't fallback correctly. according to the last changes in man pages around nfs, stating the vers= is highly recommended). Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
10th Jan, 2014, 01:12 AM
Post: #14
|
|||
|
|||
RE: fstab mount on reboot not working
Thanks for the updates .. I won't get chance to test this until tomorrow evening. I'll let you know how I get on!
Cheers, Stu |
|||
10th Jan, 2014, 03:34 AM
Post: #15
|
|||
|
|||
RE: fstab mount on reboot not working
So finnaly got my fingers on the box.
Adding vers=3 to the options in the fstab finally worked. If I would have started xbian while watching the output on the screen and comparing it to the logs on the nas would have showed me 2 things: 1. Xbian isn't going through its "normal" routine. It stops at the login prompt only to start xbmc after the internal timer counted down 2. There was no attempt to mount an nfs share in the logs of the nas Btw, I am back to the "old" Version of the xbian-net.conf Thanks for your help and your hard work for xbian. |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
Cannot Mount SMB share via Fstab | ttsk8r | 1 | 9,450 |
17th Jul, 2013 09:55 PM Last Post: Gwystyl |