auto mounting a network drive

Ask questions about Arch Linux ARM. Please search before making a new topic.

auto mounting a network drive

Postby permitivity » Sun Jul 21, 2013 8:08 am

I tried searching, but there might be some out dated information about this for fstab.

How do you make your pogoplug automount a network drive? I know this command to manually mount a network drive:

$this->bbcode_second_pass_quote('', '
')mount.cifs //192.168.1.7/mynetworkfolder /media/mountpoint


But I'd like it to mount this on startup.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Re: auto mounting a network drive

Postby moonman » Sun Jul 21, 2013 9:36 am

$this->bbcode_second_pass_code('', '//192.168.1.7/mynetworkfolder /media/mountpoint cifs noauto,x-systemd.automount,user=nobody,password="",iocharset=utf8,noperm,nounix,nobrl 0 0')
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: auto mounting a network drive

Postby permitivity » Mon Jul 22, 2013 4:51 am

I tried this, but after rebooting the pogoplug, the network drive did not auto-mount.

$this->bbcode_second_pass_quote('', 'm')ount.cifs //192.168.1.7/media/webcam /media/NetworkDrive cifs noauto,x-systemd.automount,user=nobody,password="",iocharset=utf8, noperm, nounix, nobrl 0 0


The command does mount the drive, but not on reboot.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Re: auto mounting a network drive

Postby moonman » Mon Jul 22, 2013 5:46 am

I gave you the line to put in /etc/fstab so it is mouted after reboot on access (meaning it is not mounted unless you or an application accesses the mountpoint, otherwise if the remote share isn't available your device will fail to boot). That's what you wanted, right?
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: auto mounting a network drive

Postby permitivity » Wed Jul 24, 2013 3:00 am

Oooh, ok. Thanks. I'm still new to this, so I didn't get what you wrote.

I tried it, and it works great.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 27 guests