Через NFS можно расшарить подмонтированные разделы винта? (solved)
WXP 9 апреля, 2008 - 21:53
Есть два компа. На одном компе расшариваю папку по NFS и хочу расшарить подмонтированный NTFS раздел (на этом же винте).
Т.е. получается:
/mnt/media/hard_disc - монтированный NTFS раздел
/mnt/ - эту папку я экспортирую для расшаривания по NFS.
В итоге всё срабатывает, я вижу файлы и папки в /mnt/ будучи уже с другого компа, но вот /mnt/media/hard_disc - пустая.. Т.е. расшаривание обходит её стороной :)
Так и должно быть? NFS так и работает? Или же можно как-то увидеть монтированные ресурсы через NFS?
»
- Для комментирования войдите или зарегистрируйтесь
у меня cat
у меня
cat /etc/fstab
/dev/sda5 /home/abitur/windows/D ntfs-3g umask=0,silent,locale=ru_RU.utf8,force 0 0
cat /etc/samba/smb.conf
[windows]
path = /home/abitur/windows/D/
writeable = no
Возможно неправильно смонтированы NTFS разделы или проблемы с правами
права.
права?
Смонтирована
Смонтирована эта директория так:
/dev/sda7 /mnt/media/hard_drive ntfs noatime,noauto,ro,nls=cp1251,umask=0 0 0
права на /mnt/media/hard_drive - 777.
права
а вот это пофиг. в отличие от самбы работают acl и pam
..........nohide This option
man exports
(nohide) This option is based on the option of the same name provided in IRIX NFS. Normally, if a server exports two filesystems one
of which is mounted on the other, then the client will have to mount both filesystems explicitly to get access to them. If
it just mounts the parent, it will see an empty directory at the place where the other filesystem is mounted. That filesys-
tem is "hidden".
Setting the nohide option on a filesystem causes it not to be hidden, and an appropriately authorised client will be able to
move from the parent to that filesystem without noticing the change.
However, some NFS clients do not cope well with this situation as, for instance, it is then possible for two files in the one
apparent filesystem to have the same inode number.
The nohide option is currently only effective on single host exports. It does not work reliably with netgroup, subnet, or
wildcard exports.
This option can be very useful in some situations, but it should be used with due care, and only after confirming that the
client system copes with the situation effectively.
The option can be explicitly disabled with hide.
(crossmnt)
This option is similar to nohide but it makes it possible for clients to move from the filesystem marked with crossmnt to
exported filesystems mounted on it. Thus when a child filesystem "B" is mounted on a parent "A", setting crossmnt on "A" has
the same effect as setting "nohide" on B.
........................................................
Unix - дружественная система, но своих друзей она хорошо выбирает.
Я так понял, что
Я так понял, что если мне поставить на NTFS систему опцию nohide, то она перестанет быть "скрытой" фс для НФС?
Куда писать эту nohide? Посмотрел в `man mount` и `man fstab` такой опции не нашёл :)
хотя.. с другой
хотя.. с другой стороны... почему нельзя две шары сделать и смонтировать на стороне клиента?
Т.е.
Т.е. примонтировать на втором компе NTFS раздел винта от первого компа?? А как это сделать? :)
решено..
Кстати, говоря, проблема решилась практически сама собой. Может кто столкнётся с этим - на всякий случай скажу, чем дело закончилось.
Если в /mnt/ у меня две точки монтирования (допустим двух разных винтов):
/mnt/hard_a
/mnt/hard_b
То если экспортировать (/etc/exports) папку /mnt, то содержимое hard_a и hard_b не будет экспортировано. А вот если экспортировать их по отдельности, то всё экспортируется отлично..
Хм...
...А мне казалось, что так оно и должно бы быть...по отдельности...