• February 23, 2025, 07:22:36 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Rename Volume  (Read 5900 times)

Cliff

  • Level 3 Member
  • ***
  • Posts: 101
Rename Volume
« on: October 14, 2008, 12:13:38 PM »

The EZ Search Utility found my drive fine as Volume_1. To ease typing, I'd like to rename it VOL1. Is this possible, if so how do I rename the volume and will I lose data if the volume is renamed?

I do understand network mappings would have to be redone. Thanks.
Logged

chuckv

  • Level 2 Member
  • **
  • Posts: 88
Re: Rename Volume
« Reply #1 on: October 15, 2008, 04:46:50 PM »

i dont think this is possible

however, why not just do a susbst within a windows cmd to do this for you?
Logged

Cliff

  • Level 3 Member
  • ***
  • Posts: 101
Re: Rename Volume
« Reply #2 on: October 17, 2008, 06:10:01 AM »

I often do commands from the command line and typing vol1 is so much more convenient than volume_1
Logged

SilentException

  • Level 1 Member
  • *
  • Posts: 6
Re: Rename Volume
« Reply #3 on: October 17, 2008, 01:01:36 PM »

how about pressing v and then [tab] ? :)
anyhow quick way to change share name would be: create file named fun_plug on Volume_1 and type this in:

Code: [Select]
#!/bin/sh
/bin/sed "s/\[\ Volume_1\ \]/[\ vol1\ \]/" /etc/samba/smb.conf > /etc/samba/smb.conf.1
mv -f /etc/samba/smb.conf.1 /etc/samba/smb.conf
smb restart

replace vol1 with whatever you want (no special characters or spaces) and restart the nas.
« Last Edit: October 17, 2008, 01:12:29 PM by SilentException »
Logged