Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

How do I rename HDD?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
How do I rename HDD?
30th Jun, 2013, 09:20 PM
Post: #1
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
How do I rename HDD?
Hi,

I just upgraded some of the packages and now have a fixed mount for the USB HDD. This is good. What isn't so good is that it now has 16 digit hex code for a name! At least USB0 was memorable! ;-)

I can rename it in XBMC/SYSTEM/File Manager but as soon as I hit 'done' it always reverts to it's hex code.

There's nothing in config on the SD card either. So, how do I change it to something more memorable?

Thanks

Skywatch.
See my profile for the set up.

Hmmm... Would it be safe to use NTFSLabel command and would it work on a USB attached drive?
Find all posts by this user
Quote this message in a reply
1st Jul, 2013, 01:46 AM
Post: #2
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: How do I rename HDD?
Search and ye will find.

@Fred answered this in http://forum.xbian.org/thread-1031.html page 2.

Use a symbolic link

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
1st Jul, 2013, 03:18 AM
Post: #3
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: How do I rename HDD?
Thanks for the response IriDium.

I am still on 1A5 and not 1B1, but the update obviously applies to both that caused this to happen.

Will doing a symbolic link also change it on SMB connections? They too see it with the new 'name'...

Thanks

skywatch
Find all posts by this user
Quote this message in a reply
1st Jul, 2013, 03:42 AM
Post: #4
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: How do I rename HDD?
Then you've applied something or you are running a non standard Alpha5. Stock alpha5 has USB mounted at /media/usbx it's only beta1 that has USB mounted as media./usb<UID>

The SMB name should not be affected.

A symbolic link is described here http://en.wikipedia.org/wiki/Symbolic_link

It's like having Muv or 555-12345678 on your phone. It's both the same thing as far as the phone goes, ditto linux. If you address /media/usb-1234567689 it's the same as media/usb/xxxx depending on how you set up the link.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
1st Jul, 2013, 10:47 AM
Post: #5
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How do I rename HDD?
(30th Jun, 2013 09:20 PM)Skywatch Wrote:  I just upgraded some of the packages and now have a fixed mount for the USB HDD. This is good. What isn't so good is that it now has 16 digit hex code for a name! At least USB0 was memorable! ;-)

we can do an auto-symlink during mounting with only partition LABEL in name. ... if this is problem.

btw: functionality which takes mountpoint name from /etc/fstab (if record present) and uses this is still there.

you can put into /etc/fstab:
Code:
UUID=2423423-4324234-24-234234        /media/usb        ext4/xxx       noatime,rw,...       0        0
or
LABEL=my_label .....
or even old fashioned (and no recommended - if you are using more than one ext disk)
/dev/sdaX ....

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
2nd Jul, 2013, 07:22 PM
Post: #6
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: How do I rename HDD?
Hi and thanks for the replies.

If it is a non-standard install I don't know how it happened. I just updated via xbian-config and then apt-get update. That's all.

It is a problem and will get worse as more disks are added to the system.

It would be good to have an option to add a NAME to a drive in set up or something so that this doesn't happen. I do like the fixed mount idea though and can see it will have advantages.

Ideally the drive would have the same name whether it is 'seen' from Xbian or via a SMB share.

I might try your ideas later on today if I get the time.

Thanks

Skywatch
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 09:03 AM Powered By MyBB, © 2002-2025 MyBB Group.