Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

fstab mount on reboot not working
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
fstab mount on reboot not working
9th Jan, 2014, 08:20 PM
Post: #11
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
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 Smile) )

or maybe to speed this up - can you replace your /etc/init/xbian-net.conf with this content?

Code:
#!upstart

start on started xbian-run
stop on started xbian-net and (net-device-up IFACE!=lo or xbian-nowait)

nice -6

pre-start script
    splash --msgtxt="configuring network..." --percentage
    net="$(printf "%b" "$(ip a | grep "state UP" | awk -F': ' '{print $2}')\n$(ifquery -la | grep -vw lo)\neth0" | sort | uniq)"
    for i in $net; do start -q network-interface INTERFACE=$i IFACE=$i || :; done
end script

post-stop script
    timeout 20 sh -c "while true; do timeout -k 15 -s 9 10 mount -avs -t nfs4,nfs,cifs -o wsize=65536,rsize=262144 && break; done"
    [ $? -ne 124 ] || mount -aFs -t nfs4,nfs,cifs &
    exit 0
end script

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
fstab mount on reboot not working - stumax - 5th Jan, 2014, 06:28 AM
RE: fstab mount on reboot not working - mk01 - 7th Jan, 2014, 07:45 PM
RE: fstab mount on reboot not working - stumax - 7th Jan, 2014, 08:11 PM
RE: fstab mount on reboot not working - stumax - 8th Jan, 2014, 07:40 AM
RE: fstab mount on reboot not working - mk01 - 8th Jan, 2014, 08:55 AM
RE: fstab mount on reboot not working - stumax - 8th Jan, 2014, 11:47 PM
RE: fstab mount on reboot not working - mk01 - 9th Jan, 2014, 04:24 AM
RE: fstab mount on reboot not working - Enferax - 9th Jan, 2014, 05:02 AM
RE: fstab mount on reboot not working - mk01 - 9th Jan, 2014, 05:09 AM
RE: fstab mount on reboot not working - Enferax - 9th Jan, 2014, 07:49 PM
RE: fstab mount on reboot not working - Enferax - 9th Jan, 2014, 08:39 PM
RE: fstab mount on reboot not working - mk01 - 9th Jan, 2014 08:20 PM
RE: fstab mount on reboot not working - mk01 - 9th Jan, 2014, 08:58 PM
RE: fstab mount on reboot not working - stumax - 10th Jan, 2014, 01:12 AM
RE: fstab mount on reboot not working - Enferax - 10th Jan, 2014, 03:34 AM
RE: fstab mount on reboot not working - stumax - 11th Jan, 2014, 07:18 AM
RE: fstab mount on reboot not working - Enferax - 11th Jan, 2014, 07:54 AM
RE: fstab mount on reboot not working - mk01 - 11th Jan, 2014, 10:07 PM
RE: fstab mount on reboot not working - stumax - 12th Jan, 2014, 10:03 PM
RE: fstab mount on reboot not working - mk01 - 16th Jan, 2014, 02:22 PM
RE: fstab mount on reboot not working - stumax - 31st Jan, 2014, 08:48 AM
RE: fstab mount on reboot not working - mk01 - 3rd Feb, 2014, 10:23 AM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Cannot Mount SMB share via Fstab ttsk8r 1 9,872 17th Jul, 2013 09:55 PM
Last Post: Gwystyl

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th Jun, 2025, 06:10 AM Powered By MyBB, © 2002-2025 MyBB Group.