LoginSignup
79

More than 5 years have passed since last update.

VirtualBoxの共有フォルダのマウントに失敗する

Posted at

なんか自動マウントされなくなった。
手動でマウントしようとすると、こんなエラー出た

$ sudo mount -t vboxsf HOGE hoge
/sbin/mount.vboxsf: mounting failed with the error: No such device

ここみるとアドイン入れなおせとのことなので入れなおす
http://slashdot.jp/journal/509239/VirtualBox%E5%85%B1%E6%9C%89%E3%83%95%E3%82%A9%E3%83%AB%E3%83%80%E8%A6%9A%E6%9B%B8

入れ直したけど、まだエラー出る

$ sudo mount -t vboxsf HOGE hoge
mount: 間違ったファイルシステムタイプ、不正なオプション、
       vmshare のスーパーブロックが不正、コードページまたは
       ヘルパープログラムの未指定、或いは他のエラー
       (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 -n 1
[  221.398880] sf_read_super_aux err=-22

エラーでググルとこんな情報ある

I solved the problem (at lease for my machine)!

Despite installing the GuestAddons for 64 Bit OS (Fedora 11 in my case) the link in > /sbin/mount.vboxsf points to /usr/lib/... where it should be /usr/lib64/

見てみるとビンゴっぽかったのでsymlink作りなおす

$ ll /sbin/mount.vboxsf
lrwxrwxrwx 1 root root 42  8月 10 18:25 /sbin/mount.vboxsf -> /usr/lib64/VBoxGuestAdditions/mount.vboxsf
$ sudo rm /sbin/mount.vboxsf
$ sudo ln -s /usr/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf
$ sudo mount -t vboxsf HOGE hoge
# 成功

やったー

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
79