How can I change name of a shared disk attached to the NAS?

Post Reply
Harald
Posts: 5
Joined: Mon Jul 11, 2016 5:31 am

How can I change name of a shared disk attached to the NAS?

Post by Harald » Tue Jul 12, 2016 11:12 am

Hello
I need to change the name of an external USB disk attached to my Network Space 2.
I got a rooted access so I went to /etc/fstab/ but this is weird: there’re only "~" in it.
Where can I change it?

EDIT:
using vi I can edit fstab.
But my disk isn’t there:
# Swap partition entry
/dev/sda5 swap swap defaults 0 0

# Mount the ROOT filesystem from the hard drive
/dev/sda7 / ext3 defaults,ro 1 1

# Mount the virtual proc filesystem
none /proc proc defaults 0 0

#UserData
#/dev/sda2 /home xfs defaults,rw 1 2
Any idea where I can see my SAMSUNG (usb) disk?

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: How can I change name of a shared disk attached to the N

Post by Mijzelf » Tue Jul 12, 2016 5:07 pm

Harald wrote:Any idea where I can see my SAMSUNG (usb) disk?

Code: Select all

cat /proc/mounts
But that only shows the mountpoint. I guess you are talking about share name, which is defined in smb.conf (possibly /etc/samba/smb.conf). As this file is created dynamically, changes will be reverted on each change in the filesystem, I think.

Harald
Posts: 5
Joined: Mon Jul 11, 2016 5:31 am

Re: How can I change name of a shared disk attached to the N

Post by Harald » Wed Jul 13, 2016 5:20 am

Mijzelf wrote:As this file is created dynamically, changes will be reverted on each change in the filesystem, I think.
You are right. :(
As well as the root access.
I give up playing with it.

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: How can I change name of a shared disk attached to the N

Post by Mijzelf » Wed Jul 13, 2016 7:29 am

Harald wrote:As well as the root access.
For the root access you can use key login: Wiki.

Post Reply