Page 1 of 2

How to mount network drive ?(solved)

PostPosted: Mon Dec 21, 2015 8:27 pm
by ForumFan
I would like record from tvheadend. For this I have NAS and would like mount network folder for MOI+

I have created in MOI+ folder /mnt/record/ and I would like mount for this folder NAS network drive.

Unfortunately mount is not working

sudo mount -t cifs -o user=kp /192.168.0.2/downloads/record/ /mnt/record/

mount: mounting /192.168.0.2/downloads/record/ on /mnt/record/ failed: No such device

But I have such network drive and either local folder in MOI+ //mnt/record

How to mount network drive in MOI+ ?

Re: How to mount network drive ?

PostPosted: Thu Dec 24, 2015 2:21 pm
by ForumFan
Please help to mount a drive.

Re: How to mount network drive ?

PostPosted: Mon Dec 28, 2015 7:15 pm
by diabloss
i think you need to give some read / write rights in the syntax ... isn't?

Re: How to mount network drive ?

PostPosted: Mon Dec 28, 2015 10:34 pm
by ForumFan
Same commands I use to other linux device i.e. raspi and this works.
After entering this command on raspi I have to put password for this user to get access to this network drive.
For local drive I have rights 755.

Can you please help and put exact command ?

Re: How to mount network drive ?

PostPosted: Tue Dec 29, 2015 4:56 pm
by xiaocao
hi ,

try this command :
mount -t nfs -o nolock 192.168.0.2:/downloads/record /mnt/record

best regards !

Re: How to mount network drive ?

PostPosted: Tue Dec 29, 2015 10:49 pm
by costan
ForumFan Wrote:I would like record from tvheadend. For this I have NAS and would like mount network folder for MOI+

I have created in MOI+ folder /mnt/record/ and I would like mount for this folder NAS network drive.

Unfortunately mount is not working

sudo mount -t cifs -o user=kp /192.168.0.2/downloads/record/ /mnt/record/

mount: mounting /192.168.0.2/downloads/record/ on /mnt/record/ failed: No such device

But I have such network drive and either local folder in MOI+ //mnt/record

How to mount network drive in MOI+ ?



You're missing a slash in the command, but it will not work since the kernel part for CIFS client is missing.
The right syntax would be with this double slash, but it won't work for the missing module:
mount -t cifs -o user=kp //192.168.0.2/downloads/record/ /mnt/record/

Using NFS should, since the NFS kernel code is compiled in the kernel (you can check /proc/filesystems contents for quick check).

Re: How to mount network drive ?

PostPosted: Wed Dec 30, 2015 6:10 am
by ForumFan
still I cant mount device after putting following command:

Code: Select All Code
[root@moi /]# mount -t cifs -o user=kp //192.168.0.2/downloads/record/ /mnt/reco
rd/
mount: mounting //192.168.0.2/downloads/record/ on /mnt/record/ failed: No such device
[root@moi /]#



I really don't understand this error "failed: No such device" ...

Re: How to mount network drive ?

PostPosted: Wed Dec 30, 2015 6:47 pm
by costan
ForumFan Wrote:still I cant mount device after putting following command:

Code: Select All Code
[root@moi /]# mount -t cifs -o user=kp //192.168.0.2/downloads/record/ /mnt/reco
rd/
mount: mounting //192.168.0.2/downloads/record/ on /mnt/record/ failed: No such device
[root@moi /]#



I really don't understand this error "failed: No such device" ...



The command is right, the issue is that the MOI+ kernel has no CIFS client module compiled, so it cannot mount CIFS shares.
You need to use NFS as in the previous message. Obviously you need to configure the NAS for NFS export, not only CIFS.

Re: How to mount network drive ?

PostPosted: Sun Jan 03, 2016 8:55 pm
by ForumFan
I trided to use

Code: Select All Code
[root@moi /mnt]# mount -t nfs //192.168.20.2 /mnt/record/
mount: mounting //192.168.20.2 on /mnt/record/ failed: Invalid argument
[root@moi /mnt]#


... and still something is wrong, but what ?

Mount shows only that ?

Code: Select All Code
[root@moi /mnt]# mount
rootfs on / type rootfs (rw)
/dev/root on / type yaffs2 (rw,relatime)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)


/etc/fstab
Code: Select All Code
# /etc/fstab: static file system information.
#
# <file system> <mount pt>     <type>   <options>         <dump> <pass>
/dev/root /ext2    rw,noauto         0      1
proc      /proc      proc      defaults     0    0
devpts   /dev/pts  devpts   defaults,gid=5,mode=620     0    0
tmpfs        /dev/shm tmpfs   mode=0777         0      0
tmpfs        /tmp      tmpfs     defaults          0      0
sysfs      /sys         sysfs      defaults     0    0


Anyone has succed to mount external network drive ?

Re: How to mount network drive ?

PostPosted: Mon Jan 04, 2016 7:41 am
by costan
ForumFan Wrote:I trided to use

Code: Select All Code
[root@moi /mnt]# mount -t nfs //192.168.20.2 /mnt/record/
mount: mounting //192.168.20.2 on /mnt/record/ failed: Invalid argument
[root@moi /mnt]#


... and still something is wrong, but what ?

Mount shows only that ?

Code: Select All Code
[root@moi /mnt]# mount
rootfs on / type rootfs (rw)
/dev/root on / type yaffs2 (rw,relatime)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)


/etc/fstab
Code: Select All Code
# /etc/fstab: static file system information.
#
# <file system> <mount pt>     <type>   <options>         <dump> <pass>
/dev/root /ext2    rw,noauto         0      1
proc      /proc      proc      defaults     0    0
devpts   /dev/pts  devpts   defaults,gid=5,mode=620     0    0
tmpfs        /dev/shm tmpfs   mode=0777         0      0
tmpfs        /tmp      tmpfs     defaults          0      0
sysfs      /sys         sysfs      defaults     0    0


Anyone has succed to mount external network drive ?



Syntax for NFS is different.

It has to be

mount -t nfs 192.168.20.2:<share-name> /mnt/record/