【トラブル】【Linux】Windows共有フォルダをマウントした際のトラブルシューティング

■ はじめに

 * 以下の関連記事で起こったトラブルについて、纏める
https://blogs.yahoo.co.jp/dk521123/37415363.html

【1】 sudo mount -t cifs...した時にエラー

 * 以下の「エラー内容」がでて、マウントできない

エラー内容

mount: wrong fs type, bad option, bad superblock on //ADMIN/shared,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

解決策

# cifs-utils をインストールする

sudo yum install cifs-utils -y

参考文献

http://kimama-na-tomo-no.blog.so-net.ne.jp/2017-03-01

【2】 sudo mount -a した時にエラー

 * 以下の「エラー内容」がでて、マウントできない

エラー内容

Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

原因

Windows共有フォルダの共有名が間違っていた

解決策

 * /etc/fstab を修正して、再度、sudo mount -a を行う

参考文献

http://linux-memo.net/knoppix/mac_fullbackup_restore.html

関連記事

CentOS7 からWindows共有フォルダをマウントする

https://blogs.yahoo.co.jp/dk521123/37415363.html