mount時に正常なブロックデバイスではありませんエラー

CentOSからWindowsサーバへバックアップを取る為にマウントする必要がある。

[bash]
$ mount -t cifs -o username=hoge,password=xxxx "//192.168.0.5/Backup/" /mnt/win
[/bash]

mount時に正常なブロックデバイスではありませんエラーが発生。
samba-clientが必要らしくインストール。

[bash]
$ yum install samba-client
[/bash]

それでもまだ同じエラーが起きていたので、cifs-utilsのインストール。
CIFS-UTILs

[bash]
$ tar jxvf cifs-utils-6.3.tar.bz2
$ cd cifs-utils-6.3
$ ./configure –prefix=/usr
$ make
$ make install
[/bash]

マウント可能となった。

ちなみに、rootユーザ以外がmountする必要がある場合、visudoにて下記を追記する。
[bash]
$ sudo visudo

%ユーザ名 ALL=(ALL) /bin/mount, /bin/umount
[/bash]

This entry was posted in CentOS, 技術情報. Bookmark the permalink.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です