V
V
vipvizor2014-01-27 12:11:54
linux
vipvizor, 2014-01-27 12:11:54

How to correctly mount a network drive in a Raspbian system?

Hello! I have a hard drive connected to my router. How do I write mount to mount a disk to Raspberrypi? (I do for the Transmission client). I tried several ways, writes Premission denied, works with the disk only through sudo.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis, 2014-01-27
@vipvizor

It needs to be added to /etc/fstab.

P
Pavel S, 2015-06-02
@SymbiosisX

1) sudo apt-get install cifs-utils will either update or say that the latest version is worth it.
2) On the router, you make a separate user with access to a disk with a password.
2) In /etc/fstab add the line:
//192.168.xxx.xxx/folder on the router /mnt/folder on the raspberry cifs iocharset=utf8,username=User created,password=pass from user,nounix,dir_mode=0777, file_mode=0777 0 0
3)reboot

O
Oxidedixo, 2021-06-30
@Oxidedixo

At one time, there was also a task to gain access to a hard drive connected to a router + reconnect when the network connection is lost. Then I sketched out the algorithm of actions , how to do it in Raspberry Pi OS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question