
これらを sudo gedit /etc/fstab //192.168.0.119/shared/kamil /mnt/backup cifs guest,uid=1000,iocharset=utf8,codepage=unicode,unicode 0 0 に追加し、sudo mount -a を実行すると、次のエラーが発生しました。
mount: wrong fs type, bad option, bad superblock on //192.168.0.119/shared/kamil,
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
そしてdmesg | tailを試してみたところ、結果は次のようになりました
[ 17.552465] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro,commit=0
[ 24.200021] eth0: no IPv6 routers present
[ 30.427109] CIFS: Unknown mount option codepage
[ 30.427126] CIFS: Unknown mount option unicode
[ 30.427136] CIFS VFS: No username specified
[ 30.427148] CIFS VFS: cifs_mount failed w/return code = -22
[ 2404.866610] CIFS: Unknown mount option codepage
[ 2404.866625] CIFS: Unknown mount option unicode
[ 2404.866634] CIFS VFS: No username specified
[ 2404.866645] CIFS VFS: cifs_mount failed w/return code = -22
何が起こっているのか分かりません。Ubuntu 11.04 を使用しています
答え1
smbfs がインストールされていることを確認し、codepage=unicode
fstab からオプションを削除してみてください。また、オプションを追加する必要があるかもしれませんusername=guest
。