benavento / mac9p

9P Kernel Extension for MacOS
94 stars 8 forks source link

failure to mount on Mac OS X 10.9.5 #11

Open mignon-p opened 4 years ago

mignon-p commented 4 years ago

I'm having trouble getting mac9p to work on OS X 10.9.5.

I installed mac9p from the released installer.

Next, I tried mounting a 9p server on the command line using the commands given in the README, but I got an error\:

$ mkdir /tmp/sources
$ mount -t 9p -onoauth 9p.io /tmp/sources
mount: exec /System/Library/Filesystems/9p.fs/Contents/Resources/mount_9p for /private/tmp/sources: No such file or directory

And indeed, there is no /System/Library/Filesystems/9p.fs\:

$ ls -l /System/Library/Filesystems/
total 8
drwxr-xr-x  6 root  wheel  204 Nov 11  2013 AppleShare
drwxr-xr-x  7 root  wheel  238 Nov 11  2013 NetFSPlugins
drwxr-xr-x  4 root  wheel  136 Jul  1  2014 acfs.fs
lrwxr-xr-x  1 root  wheel   49 Sep 29  2015 afpfs.fs -> /System/Library/Filesystems/AppleShare/afpfs.kext
drwxr-xr-x  3 root  wheel  102 Sep 19  2013 cd9660.fs
drwxr-xr-x  3 root  wheel  102 Sep 19  2013 cddafs.fs
drwxr-xr-x  4 root  wheel  136 Nov 11  2013 exfat.fs
drwxr-xr-x  5 root  wheel  170 Aug 24  2013 ftp.fs
drwxr-xr-x  5 root  wheel  170 Nov 11  2013 hfs.fs
drwxr-xr-x  4 root  wheel  136 Nov 11  2013 msdos.fs
drwxr-xr-x  3 root  wheel  102 Aug 24  2013 nfs.fs
drwxr-xr-x  4 root  wheel  136 Nov 11  2013 ntfs.fs
drwxr-xr-x  3 root  wheel  102 Sep 19  2013 smbfs.fs
drwxr-xr-x  4 root  wheel  136 Nov 11  2013 udf.fs
drwxr-xr-x  4 root  wheel  136 Nov 11  2013 webdav.fs

However, it does exist in /Library/Filesystems/:

$ ls -l /Library/Filesystems/
total 0
drwxr-xr-x  3 root  wheel  102 Oct 15  2015 9p.fs
drwxr-xr-x  3 root  wheel  102 Sep  8 20:51 NetFSPlugins

So, I made a symbolic link in /System/Library/Filesystems/:

$ cd /System/Library/Filesystems/
$ sudo ln -s /Library/Filesystems/9p.fs .

But now it fails in a new way:

$ mount -t 9p -onoauth 9p.io /tmp/sources
mount_9p: /Library/Extensions/9p.kext/Contents/Resources/load_9p failed: No such file or directory
mount_9p: No such file or directory

Although the file mentioned exists:

$ ls -l /Library/Extensions/9p.kext/Contents/Resources/load_9p
-rwsr-xr-x  1 root  wheel  9124 Oct 15  2015 /Library/Extensions/9p.kext/Contents/Resources/load_9p

So I'm not sure what to do next.

karisawa commented 2 years ago

Please retry "ln -s ...." following examples below: mbook$ ls -l /sbin/m* -rwxr-xr-x 1 root wheel 28720 7 15 2017 /sbin/md5 -rwxr-xr-x 1 root wheel 18304 7 15 2017 /sbin/mknod -r-xr-xr-x 1 root wheel 23904 7 15 2017 /sbin/mount lrwxr-xr-x 1 root wheel 59 8 20 2017 /sbin/mount_acfs -> /System/Library/Filesystems/acfs.fs/Contents/bin/mount_acfs -rwxr-xr-x 1 root wheel 23216 7 15 2017 /sbin/mount_afp lrwxr-xr-x 1 root wheel 67 8 20 2017 /sbin/mount_apfs -> ../System/Library/Filesystems/apfs.fs/Contents/Resources/mount_apfs lrwxr-xr-x 1 root wheel 69 8 20 2017 /sbin/mount_cd9660 -> /System/Library/Filesystems/cd9660.fs/Contents/Resources/mount_cd9660 lrwxr-xr-x 1 root wheel 69 8 20 2017 /sbin/mount_cddafs -> /System/Library/Filesystems/cddafs.fs/Contents/Resources/mount_cddafs -r-xr-xr-x 1 root wheel 18224 7 15 2017 /sbin/mount_devfs lrwxr-xr-x 1 root wheel 67 8 20 2017 /sbin/mount_exfat -> /System/Library/Filesystems/exfat.fs/Contents/Resources/mount_exfat -r-xr-xr-x 1 root wheel 18448 7 15 2017 /sbin/mount_fdesc lrwxr-xr-x 1 root wheel 63 8 20 2017 /sbin/mount_ftp -> /System/Library/Filesystems/ftp.fs/Contents/Resources/mount_ftp lrwxr-xr-x 1 root wheel 63 8 20 2017 /sbin/mount_hfs -> /System/Library/Filesystems/hfs.fs/Contents/Resources/mount_hfs lrwxr-xr-x 1 root wheel 67 8 20 2017 /sbin/mount_msdos -> /System/Library/Filesystems/msdos.fs/Contents/Resources/mount_msdos -r-xr-xr-x 1 root wheel 51264 7 15 2017 /sbin/mount_nfs lrwxr-xr-x 1 root wheel 65 8 20 2017 /sbin/mount_ntfs -> /System/Library/Filesystems/ntfs.fs/Contents/Resources/mount_ntfs -r-xr-xr-x 1 root wheel 51248 9 22 2019 /sbin/mount_smbfs lrwxr-xr-x 1 root wheel 63 8 20 2017 /sbin/mount_udf -> /System/Library/Filesystems/udf.fs/Contents/Resources/mount_udf -rwxr-xr-x 1 root wheel 18288 7 15 2017 /sbin/mount_webdav -rwxr-xr-x 1 root wheel 72416 9 22 2019 /sbin/mpioutil mbook$

Kenji Arisawa

P.S. I am also interested in mac9p. I will be happy if you report your result.