投げ銭

★当サイトへの投げ銭(PayPal)★

LINK


(無償、寄付歓迎) logo
世界中で使われるISO標準オフィスソフト(MSオフィス互換)

★LibreOfficeの導入事例★
詳細について

人気の投稿(1ヶ月間)

Ad

Ad

投げ銭

★当サイトへの投げ銭(PayPal)★

2021年3月14日日曜日

【Raspbian】Sambaサーバーのリモートフォルダをマウントするためのコマンド


◯システム情報の表示

Raspberry pi 4(Raspbian)

root@raspberrypi:/home/pi# uname -a
Linux raspberrypi 5.4.51-v8+ #1333 SMP PREEMPT Mon Aug 10 16:58:35 BST 2020 aarch64 GNU/Linux

◯マウントに失敗したコマンド

Sambaサーバーのリモートフォルダをマウントしようとしたら、次のエラーが発生した。

root@raspberrypi:/home/pi# mount -t cifs -o user=admin,pass=mypassword //fileserver.exaple.com/mine /mnt/cifs/fileserver/
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

◯マウントに成功したコマンド

次のように修正したところうまくリモートフォルダをマウントできた。

root@raspberrypi:/home/pi# mount -t cifs -o user=admin,pass=mypassword,vers=1.0 //fileserver.exaple.com/mine /mnt/cifs/fileserver/


もしくは、次のようにしてもうまくマウントできた。

root@raspberrypi:/home/pi# mount -t cifs -o user=admin,pass=mypassword,vers=2.0 //fileserver.exaple.com/mine /mnt/cifs/fileserver/



<参考>
・mount.cifs fails with mount error(2): No such file or directory
< https://askubuntu.com/questions/1162199/mount-cifs-fails-with-mount-error2-no-such-file-or-directory > 2021年3月14日

投げ銭

★当サイトへの投げ銭(PayPal)★

Ad

Ad