How to share partitions?

Asked by නොදන්නා

Ubuntu 20.04.01

I have installed `nfs-kernel-server` and there're more straightforward guide https://linuxize.com/post/how-to-install-and-configure-an-nfs-server-on-ubuntu-18-04/ It explain how to share directories etc.

i want to know how to share other non-system partitions (whole partition) or particular folder in that partitions?

I login to server device as non-root user then the partition share must be work without trouble.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu nfs-utils Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You always share a folder, the fact that it is a separate partition is irrelevant in Linux. It is seen as a folder just like all the other file systems your OS uses. It's accessed in the same way rather than Windows with clunky drive letters.

Does this help
https://www.howtoforge.com/tutorial/how-to-configure-a-nfs-server-and-mount-nfs-shares-on-ubuntu-18.04/

Obviously don't use the chown command if it is standing data. I believe symlinks can be made to be honoured

Revision history for this message
නොදන්නා (aunknown) said :
#2

I think my problem still not covered well. Let me explain,

[Server device] When login to Ubuntu as eg: non-root user then other partitions don't mount automatically (not client side nor about NFS). Eg: GUI mode, In nautilus or dolphin, it ask root password when open particular partition then it get mounted or we have to mount manually

After that it appear in media, we can see the path /media/useraccount/partition1/

Next boot this occur again. (means i have to mount required partition again otherwise path invalid) then any solution for that?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

How about if you add the NFS to /etc/fstab

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Create a mount point for the partition and create an entry for that partition in /etc/fstab. Then it is automatically mounted at boot time.

Revision history for this message
නොදන්නා (aunknown) said :
#5

Is there any GUI tool for nfs-server side? (and client side too) because sometimes i want to stop it and start again during the day
(it's possible to play with cli but gui tool may has many benefits, just show the status, has buttons to start, stop, show ab connected clients etc)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Just SSH in and stop the services if you need to. You can show the status of the service using the same command you stop and start it.

Considering you are asking if there is a GUI, how do you know there will be any benefits if you don't even know if one exists, what it does, what colour it is.. Nothing

Can you help with this problem?

Provide an answer of your own, or ask නොදන්නා for more information if necessary.

To post a message you must log in.