Nfs для mac os
Перейти к содержимому

Nfs для mac os

  • автор:

whoa there, pardner!

Your request has been blocked due to a network policy.

Try logging in or creating an account here to get back to browsing.

If you’re running a script or application, please register or sign in with your developer credentials here. Additionally make sure your User-Agent is not empty and is something unique and descriptive and try again. if you’re supplying an alternate User-Agent string, try changing back to default as that can sometimes result in a block.

You can read Reddit’s Terms of Service here.

if you think that we’ve incorrectly blocked you or you would like to discuss easier ways to get the data you want, please file a ticket here.

when contacting us, please include your ip address which is: 95.214.216.211 and reddit account

4.2. Mounting NFS Exports on MacOS¶

You can mount an NFS export created in Acronis Software-Defined Infrastructure like any other directory exported via NFS. You will need the share IP address (or hostname) and the volume identifier.

You can use the command-line prompt or Finder:

    In console, run a command like the following:

# mount -t nfs -o vers=4.0 192.168.0.51:// /mnt/nfs
  • -o vers=4.0 is the NFS version to use.
  • 192.168.0.51 is the share IP address. You can also use the share hostname.
  • // is the root export path. For user exports, specify their full path, for example: //export1 .
  • /mnt/nfs is an existing local directory to mount the export to.
  1. Set the NFS version to 4.0. To do this, add the nfs.client.mount.options = vers=4.0 line to the /etc/nfs.conf file.
  2. In the Finder >Go >Connect to server window, specify nfs://192.168.0.51:// where:
    • 192.168.0.51 is the share IP address. You can also use the share hostname.
    • // is the root export path. For user exports, specify their full path, for example: //export1 .
  3. Click Connect. The Finder will mount the export to /Volumes// .

NFS and MacOSX

I have a NFS server running on a Linux machine on my (home) local network, and I would want my powerbook (also on the local network) to access the volumes exported by the Linux server.

On the server side, i added the IP of my powerbook in /etc/exports, run exportfs -ra, and on the client (my powerbook) I tried to connect to the server by:

nfs://IPadress of the server.

But the mac tells me the connection to server [IPadress] has failed.

Did I miss something ?

Any help would be greatly appreciated.

Show more Less

MacBook Air 13″, macOS 10.14

Posted on Dec 29, 2022 9:46 AM

Me too (10) Me too Me too (10) Me too Reply
Question marked as Best reply
User level: Level 10
115,424 points

Posted on Dec 29, 2022 10:14 AM

Apple prefers SMB shares, so consider enabling and exporting that on the Linux server, and all will likely be happy.

NFS support and interest has seemingly been fading at Apple particularly, and elsewhere more generally as well.

If you do want NFS and there is no good option for SMB on this Linux server, here are some reasonable and reasonably-recent setup instructions:

If you’re setting up a network share more generally, installing and using TrueNAS on the storage server can be a reasonable choice.

And to avoid some potential confusion, this probably isn’t about a PowerBook (as those won’t run anything past Leopard, Mac OS X 10.6), and the footer here shows Mojave macOS 10.14 and not Monterey (macOS 12) where this is posted. I’m going to assume a MacBook, or MacBook Pro, or MacBook Air, and macOS Mojave, in the above.

Show more Less

Similar questions

How to mount nfs share in Ventura Hello, all the information on NFS shares are completely outdated. I am looking for a way to natively connect to a NFS share on MacOS 13.1 Ventura. I setup a NFS server on Windows server 2019. On the Mac, I attempted to go to Go > Connect to server and entered in: nfs://server_ip/share I also tried to mount from terminal using: servername:/share Neither works. Firewall is turned off on the windows server. Given that everything I found on NFS for mac is severely outdated, it doesn’t surprise me that those old methods don’t work anymore. I am aware I can use SMB but I wanted to see if I could mount NFS as a learning experience.

Mac OS Mojave NFS4 support Does Mac OS Mojave has support for NFS4 ? I am running cent OS in vagrant and would like to share folders between my macPro (running Mojave) using nfs4. But I am getting error, mount -o vers=4,tcp 192.168.33.1:/Users/. /var/www/. Stdout from the command: Stderr from the command: mount.nfs: Protocol not supported I read at many places that nfs4 is not supported in Mac (correct me if I am wrong!) If MacOS does not have nfs4 support, I would like to know if there is some way to install it on MacOS?

Ventura as NFS Server: Client reports Protocol not supported I’m trying to mount a volume on an external hard disk connected to my MacBook Pro (16″, 2021) on a Linux box running an offshoot of RedHat Enterprise Linux. Here is my /etc/exports file on the Mac: /Volumes/Passport -mapall=501 -network 192.168.0.0 -mask 255.255.255.0 where 501 is the UID of the local user who has full permission to write to the directory on the volume that I wish to mount. The purpose is to do a backup of certain directories on the Linux box. showmount -e verifies that nfsd is enabled and running. Here is the command given on the Linux box and the output (in full, in case it is helpful): % sudo mount -v -t nfs macbookpro:/Volumes/Passport /mac/backup [sudo] password for : mount.nfs: timeout set for Thu Dec 22 09:22:40 2022 mount.nfs: trying text-based options ‘vers=4.1,addr=192.168.0.3,clientaddr=192.168.0.2’ mount.nfs: mount(2): Protocol not supported mount.nfs: trying text-based options ‘vers=4.0,addr=192.168.0.3,clientaddr=192.168.0.2’ mount.nfs: mount(2): Protocol not supported mount.nfs: trying text-based options ‘addr=192.168.0.3’ mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying 192.168.0.3 prog 100003 vers 3 prot TCP port 2049 mount.nfs: prog 100005, trying vers=3, prot=17 mount.nfs: trying 192.168.0.3 prog 100005 vers 3 prot UDP port 748 mount.nfs: mount(2): Device or resource busy mount.nfs: Protocol not supported Can anyone tell me why this doesn’t work and/or how to fix it?

Вики IT-KB

Работа с сетевыми ресурсами по протоколу NFS в macOS

Поддержка протокола NFS в macOS принципиально ничем не отличается реализаций на базе Linux. В каждой macOS уже есть встроенный NFS клиент и сервер, который включен в конфигурации по умолчанию.

Для того, чтобы сделать каталог общедоступным, необходимо создать конфигурационный файл /etc/exports . В этом файле следует перечислить локальные каталоги, для которых мы хотим разрешить доступ из сети, а также обозначить параметры предоставления общего доступа.

sudo nano /etc/exports
/Volumes/Files/Projects -ro -all

В данном примере каталог Projects на съёмном накопителе Files будет доступен для всех пользователей сети в режиме чтения.

Начиная с macOS 10.14 (Mojave), демону nfsd необходимо разрешить работу с диском. В противном случае он не сможет получить доступ к этому диску. Предоставить такой доступ можно через:
«Настройки» → «Защита и безопасность» → «Конфиденциальность» → «Доступ к диску».

Здесь следует добавить исполняемый файл /sbin/nfsd .

Такую же операцию необходимо выполнить и для брандмауэра, если он включен.

Выполним перезапуск демона nfsd:

sudo nsfd restart

Теперь поговорим о настройке NFS-клиента.

Чтобы всякий раз не выполнять подключения NFS-шары вручную (+K), можно настроить механизм автоматического монтирования.

Создадим конфигурационный файл:

sudo nano /etc/auto_nfs
/System/Volumes/Data/../Data/Volumes/Проекты -fstype=nfs,ro,resvport,bg,nfc nfs://NFSServer.local:/Volumes/Files/Projects

Разберёмся с точкой монтирования и ключами:

/../ — обязательный элемент пути, он показывает automount начало корня.
В macOS до 10.15 (Catalina) нужно использовать /../Volumes/Проекты (!);

Предварительно /Volumes/Проекты создавать не нужно (!);
nfs — шара NFS;
ro — доступ только чтение;
resvport — использование защищённого соединения;
bg — автоматический реконнект при разрыве соединения;
nfc — использовать uncode для отображения имён.

Имя удалённого каталога не может быть на кириллице, иначе automount не сможет смонтировать каталог.

В заключении отредактируем конфигурационный файл /etc/auto_master , добавив в конец этого файла подключаемый конфиг автомонтирования NFS

sudo nano /etc/auto_master
/- auto_nfs -nobrowse

Для проверки автомонтирования выполним:

sudo automount -vc

Теперь при каждой перезагрузке macOS NFS-шара будет автоматически монтироваться для любого пользователя.

Проверено на следующих конфигурациях:

Версия ОС
Apple macOS High Sierra (10.13)
Apple macOS Mojave (10.14)
Apple macOS Catalina (10.15)

Автор первичной редакции:
Виталий Якоб
Время публикации: 24.03.2020 13:11

Обсуждение

apple-mac-os/macos-catalina/work-with-nfs-resources-on-macos.txt · Последнее изменение: 24.03.2020 13:52 — Алексей Максимов

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *