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

(Solved) fStab automount smb/cifs fails (keeps loading XBMC)
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
(Solved) fStab automount smb/cifs fails (keeps loading XBMC)
5th Feb, 2014, 12:12 AM
Post: #1
NitSuA Offline
Registered
Posts: 61
Joined: Feb 2014
Reputation: 1
(Solved) fStab automount smb/cifs fails (keeps loading XBMC)
Hi all,

I try to mount my smb shares locally, and this works perfectly, using the following commands:

Code:
sudo -i (password raspberry)
mkdir /media/your-share
mount -t cifs -o username=share_username,password=share_password //server/share_name /media/your-share
ls -la /media/your-share

When I use the list (ls) command, I can see all my media.

But whenever I add the following to fStab:

Code:
//server/share_name /media/your-share user=share_username,pass=share_password 0 0

the list is empty.

And when I add "cifs", and reboot the system, the system keeps spinning at the boot screen "loading XMBC"
Code:
//server/share_name /media/your-share cifs username=share_username,password=share_password,rw,file_mode=0777,dir_mode=0777 0 0

So how can I correctly automount my smb mount commands?
Find all posts by this user
Quote this message in a reply
5th Feb, 2014, 01:35 AM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: fStab automount smb/cifs fails (keeps loading XMBC)
can you post /etc/auto.master.d/auto.xbian ?

(remove password before)

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
5th Feb, 2014, 01:47 AM
Post: #3
NitSuA Offline
Registered
Posts: 61
Joined: Feb 2014
Reputation: 1
RE: fStab automount smb/cifs fails (keeps loading XMBC)
Hi mk01,

I will do tonight, but just for your information, i have tried this multiple times with a clean installation, only finished the welcome wizzard, so no further configuration has been applied..

[edit] Someone just told me I have to use tabs instead of whitespaces in fstab, can you confirm that, or does that make no difference?
Find all posts by this user
Quote this message in a reply
5th Feb, 2014, 02:12 AM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: fStab automount smb/cifs fails (keeps loading XMBC)
nope Smile)))

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
5th Feb, 2014, 09:43 PM
Post: #5
NitSuA Offline
Registered
Posts: 61
Joined: Feb 2014
Reputation: 1
RE: fStab automount smb/cifs fails (keeps loading XMBC)
ok, I forgot to check the /etc/auto.master.d/auto.xbian file, but what I did do was install raspbmc and try the exact same fstab lines. And that works perfectly. So I do think there is some bug in the fstab cifs mount in the xbian 1.0 beta 2.
Find all posts by this user
Quote this message in a reply
5th Feb, 2014, 10:56 PM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: fStab automount smb/cifs fails (keeps loading XMBC)
@NitSuA

yes, we can assume that.

but to find "the" bug I need to see the file I asked you for.

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
7th Feb, 2014, 07:40 AM
Post: #7
NitSuA Offline
Registered
Posts: 61
Joined: Feb 2014
Reputation: 1
RE: fStab automount smb/cifs fails (keeps loading XMBC)
@mk01, I have scanned the complete device, but there is no auto.xbian file, there even isn't a auto.master.d folder in the /etc folder.
Find all posts by this user
Quote this message in a reply
8th Feb, 2014, 07:11 AM
Post: #8
NitSuA Offline
Registered
Posts: 61
Joined: Feb 2014
Reputation: 1
RE: fStab automount smb/cifs fails (keeps loading XMBC)
Or do I need to install / update certain packages?

[EDIT]

Ok, now I am completely lost...

Since I couldn't find the /etc/auto.master.d/auto.xbian file, I thought to update the system, both from XMBC Xbian config and from the SSH (started xbian-config as root).

But every try, I get the following error:
"Errors were encountered while processing: autofs"

Please, is there any advice? I really would like to run Xbian, since I still like it a lot!




This is all produced from a freshly installed Xbian 1.0 Beta 2 install, without any changes or extra installed packages.
Find all posts by this user
Quote this message in a reply
18th Feb, 2014, 01:04 PM
Post: #9
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: fStab automount smb/cifs fails (keeps loading XMBC)
this is very stupid bug in autofs postinst script which without any check loads "autofs" module. but as you are still on kernel not containing this support (it would be installed a few moments later autofs thi way simply blocks the updates / system / everything.

but as you and me are better than autofs package, we will edit your file [b]/var/lib/dpkg/info/autofs.postinst[/0] (for instance with nano
Code:
sudo nano /var/lib/dpkg/info/autofs.postinst

and on third line after "set -e" will write "exit 0".
then we save (with CTRL+x) and from console start
Code:
sudo dpkg --configure -a

after that you can continue with updates.

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
4th Mar, 2014, 06:58 PM
Post: #10
NitSuA Offline
Registered
Posts: 61
Joined: Feb 2014
Reputation: 1
RE: fStab automount smb/cifs fails (keeps loading XMBC)
Thnx mk01, but I fixed it in another way, based on comments of other users on the forum, namely as follows:

Goto SSL and update system, till you get the autofs error
Reboot
Continue update in SSL (xbian-config)

This way, the system will get fully updated and still boots ;-)
Find all posts by this user
Quote this message in a reply
18th Mar, 2014, 05:16 AM
Post: #11
Aeious Offline
Registered
Posts: 2
Joined: Mar 2014
Reputation: 0
RE: (Solved) fStab automount smb/cifs fails (keeps loading XBMC)
I have the same problem with autofs when upgrading. I tried to edit the autofs.postinst file. But I cannot find it in a newly installed Xbian 1.0 Beta 2.
Should I create that file on my own?
I also tried to fix it by upgrading via SSL. But after it runs into the autofs failure Xbian wount start again.
Find all posts by this user
Quote this message in a reply
18th Mar, 2014, 10:37 PM
Post: #12
NitSuA Offline
Registered
Posts: 61
Joined: Feb 2014
Reputation: 1
RE: (Solved) fStab automount smb/cifs fails (keeps loading XBMC)
Hi Aeious,

Please do the following:
  • Clean install of Xbian 1.0 beta 2
  • Update by SSL one by one
  • Once you get the autofs error, exit and reboot
  • The system won't boot completely, but you're able to connect to SSL again
  • Continue updating
  • Reboot once finished

Once the system is fully updated, the system boots correctly and is on RC1.
Please check again for your files at that moment.

Can you tell me if the upgrading is above way works?
Find all posts by this user
Quote this message in a reply
19th Mar, 2014, 03:55 AM
Post: #13
Aeious Offline
Registered
Posts: 2
Joined: Mar 2014
Reputation: 0
RE: (Solved) fStab automount smb/cifs fails (keeps loading XBMC)
It worked perfectly. Now its able to boot again and its on RC1. Thank you.
Only the three python2.7 packages returned an error.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [PROBLEM] Cifs automount with FStab problem.... Skywatch 2 6,191 7th Apr, 2016 07:17 AM
Last Post: Skywatch
  XBMC stopped loading, can ssh and start manually brycestejskal 2 10,216 19th Jul, 2013 07:46 AM
Last Post: mk01

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

Current time: 29th Mar, 2023, 05:38 PM Powered By MyBB, © 2002-2023 MyBB Group.