在我的本地文件夹上安装 smb

在我的本地文件夹上安装 smb

我在 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

相关内容