You are not logged in.

#1 2013-12-17 21:57:34

HenryJia
Member
Registered: 2013-11-30
Posts: 20

How to use NFS to mount whole hard disk?

Hi guys, I want to use NFS to share my / directory across the LAN to my other computer. I tried NFS and managed to get it to mount a directory inside /srv/nfs4/ But now I want to use it to share my whole hard disk. Does anyone know how I could do this?


Computational scientist and machine learning engineer

Offline

#2 2013-12-17 22:44:34

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: How to use NFS to mount whole hard disk?

Apart from why this isn't a good idea, did you try the same procedure you used to mount a directory inside /srv/nfs4? Can you "mount --bind" your root to a share in /srv/nfs4? https://wiki.archlinux.org/index.php/Nfs#File_system

The alternative is to explicitly share root in /etc/exports, but this is also not a good idea.

Last edited by 2ManyDogs (2013-12-17 22:50:25)

Offline

Board footer

Powered by FluxBB