Moderator Control Panel ]

How to mount network drive ?(solved)

How to mount network drive ?(solved)

Postby ForumFan » Mon Dec 21, 2015 8:27 pm

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+ ?
ForumFan
 
Posts: 28
Joined: Tue Nov 17, 2015 2:42 am

Re: How to mount network drive ?

Postby ForumFan » Thu Dec 24, 2015 2:21 pm

Please help to mount a drive.
ForumFan
 
Posts: 28
Joined: Tue Nov 17, 2015 2:42 am

Re: How to mount network drive ?

Postby diabloss » Mon Dec 28, 2015 7:15 pm

i think you need to give some read / write rights in the syntax ... isn't?
diabloss
 
Posts: 147
Joined: Thu Nov 22, 2012 2:51 am

Re: How to mount network drive ?

Postby ForumFan » Mon Dec 28, 2015 10:34 pm

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 ?
ForumFan
 
Posts: 28
Joined: Tue Nov 17, 2015 2:42 am

Re: How to mount network drive ?

Postby xiaocao » Tue Dec 29, 2015 4:56 pm

hi ,

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

best regards !
xiaocao
 
Posts: 71
Joined: Tue Jun 25, 2013 5:48 pm

Re: How to mount network drive ?

Postby costan » Tue Dec 29, 2015 10:49 pm

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).
costan
 
Posts: 66
Joined: Sat Feb 21, 2015 8:30 am

Re: How to mount network drive ?

Postby ForumFan » Wed Dec 30, 2015 6:10 am

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" ...
ForumFan
 
Posts: 28
Joined: Tue Nov 17, 2015 2:42 am

Re: How to mount network drive ?

Postby costan » Wed Dec 30, 2015 6:47 pm

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.
costan
 
Posts: 66
Joined: Sat Feb 21, 2015 8:30 am

Re: How to mount network drive ?

Postby ForumFan » Sun Jan 03, 2016 8:55 pm

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 ?
ForumFan
 
Posts: 28
Joined: Tue Nov 17, 2015 2:42 am

Re: How to mount network drive ?

Postby costan » Mon Jan 04, 2016 7:41 am

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/
costan
 
Posts: 66
Joined: Sat Feb 21, 2015 8:30 am

Next

Return to MOI+

Who is online

Users browsing this forum: No registered users and 6 guests

cron