mtchang / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

[Question] Rename HDD root to something other than AiDisk_ax #790

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is not an issue, but a question to the group using the custom firmware. 
How can I change the HDD volume name to something other than AiDisk? 

I initially had a NTFS formatted disk with a custom volume name, and RT-N56U 
showed the same name under its samba share. Now to install Entware I formatted 
it to ext4. Now router defaulted it to AiDisk_a2 (I have another NTFS HDD on 
USB1). Can I change its name to something else?

Original issue reported on code.google.com by Adarsha...@gmail.com on 30 Mar 2013 at 7:47

GoogleCodeExporter commented 9 years ago
You can change mountpoint name by set volume label (please use latin charset).

Original comment by andy.pad...@gmail.com on 30 Mar 2013 at 9:04

GoogleCodeExporter commented 9 years ago
How do I do that? What us the command to use? I can't access the samba settings 
page due to other defect related to AiDisk settings page.

Original comment by Adarsha...@gmail.com on 30 Mar 2013 at 9:13

GoogleCodeExporter commented 9 years ago
For NTFS - please use Win host. For Ext2/3/4 - use tune2fs utility.

Original comment by andy.pad...@gmail.com on 31 Mar 2013 at 2:44

GoogleCodeExporter commented 9 years ago
Thank you Andy! it was just a command away. for the benefit of others, I am 
documenting what I did 

all commands to be executed in SSH terminal.

1. First see which partition you are interested in 
     mount
     <strong>/dev/sda2 on /media/AiDisk_a2 type ext4 </strong>(rw,noatime,user_xattr,barrier=1,data=ordered)
     /dev/sda2 on /opt type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)
     /dev/sdb5 on /media/Others type ufsd (rw,noatime,nls=utf8,sparse,force)

2. Now change the volume label using tune2fs
     tune2fs -L NetDrive /dev/sda2

3. Reboot the router

Original comment by Adarsha...@gmail.com on 1 Apr 2013 at 4:39

GoogleCodeExporter commented 9 years ago
No reboot needed - simple safe removal storage, eject and plug.

Original comment by andy.pad...@gmail.com on 1 Apr 2013 at 12:25

GoogleCodeExporter commented 9 years ago
Yeah, for me restart is easier than walking all the way to the router to unplug 
the drive and plugging it back :)

Original comment by Adarsha...@gmail.com on 1 Apr 2013 at 1:31

GoogleCodeExporter commented 9 years ago
Anyone know how to change the name of nfsd disk? tune2fs doesn't seem to work 
on this type of disk.

Original comment by yus...@gmail.com on 14 Sep 2013 at 4:11