CIFS moutn in /etc/fstab behave randomly

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: CIFS moutn in /etc/fstab behave randomly

Postby moonman » Sat Dec 22, 2012 4:08 am

I am on my phone atm so i cant find it. Check the sticky thread about systemd in this forum, pepedog suggested it.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: CIFS moutn in /etc/fstab behave randomly

Postby jerry0000 » Sat Dec 22, 2012 4:24 am

$this->bbcode_second_pass_quote('karog', 'I')f that is not reliable, take a look at Cannot automount Samba share from fstab and a solution near the end using noauto,x-systemd.automount options to mount on first use. But also see that there are some hang issues unmounting and links to that.

It appears lots of people have run into this problem for years now and it is surprising it hasn't been dealt with more cleanly.


Edit:

This solution works very well.
Last edited by jerry0000 on Sun Dec 23, 2012 3:28 am, edited 1 time in total.
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: CIFS moutn in /etc/fstab behave randomly

Postby jerry0000 » Sat Dec 22, 2012 4:25 am

$this->bbcode_second_pass_quote('moonman', 'I') am on my phone atm so i cant find it. Check the sticky thread about systemd in this forum, pepedog suggested it.

OK. I will see if I can find it.

is it this one?
viewtopic.php?f=18&t=4145&p=24230&hilit=PRE_UP%3D+sleep+5+#p24230
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: CIFS moutn in /etc/fstab behave randomly

Postby moonman » Sat Dec 22, 2012 6:16 am

yes it is this one. So you would have something lilke this POST_UP="mount -t cifs -o user= pass= iocharset=utf8 && mount -t cifs... && mount -t cifs.."
or make a skript with the commands and execute it with post_up
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: CIFS moutn in /etc/fstab behave randomly

Postby jerry0000 » Sat Dec 22, 2012 9:47 pm

Thanks! I will try.

I think script is better, as I will start minidlna in the script (and remove minidlna from systemd start at boot) as well after the shares being mounted.

Will umount before reboot be an issue if the shares are mounted this way?
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: CIFS moutn in /etc/fstab behave randomly

Postby moonman » Sun Dec 23, 2012 2:26 am

Shouldn't be a problem as minidlna should start after network.target -> so only after the netcfg is finished which will happen only after mounts are done.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: CIFS moutn in /etc/fstab behave randomly

Postby jerry0000 » Sun Dec 23, 2012 3:30 am

pass "noauto,x-systemd.automount" to the mount option as mentioned by karog actually works well. I think this is a more elegant solution.

Thanks all that helped.
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am

Re: CIFS moutn in /etc/fstab behave randomly

Postby jerry0000 » Sun Dec 23, 2012 3:31 am

$this->bbcode_second_pass_quote('moonman', 'S')houldn't be a problem as minidlna should start after network.target -> so only after the netcfg is finished which will happen only after mounts are done.


Thanks for the help. using POST_UP works. However using "noauto,x-systemd.automount" seems work reliably and a more elegant solution.
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am
Top

Re: CIFS moutn in /etc/fstab behave randomly

Postby moonman » Sun Dec 23, 2012 3:42 am

noauto doesnt mount the share until you access it, i thought thats what you were trying to avoid
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: CIFS moutn in /etc/fstab behave randomly

Postby jerry0000 » Sun Dec 23, 2012 3:50 am

$this->bbcode_second_pass_quote('moonman', 'n')oauto doesnt mount the share until you access it, i thought thats what you were trying to avoid


That is true, so my first response to that advice is it will not work. However I tried that any way, and seems the moment minidlna start, it automounts all the shares because of the x-systemd.automount option.
jerry0000
 
Posts: 57
Joined: Tue Dec 11, 2012 5:38 am
Top

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 8 guests