Author Topic: Change The name of your hard drive  (Read 601 times)

tux-box1

  • Veteran
  • ***
  • Posts: 80
    • View Profile
Change The name of your hard drive
« on: March 30, 2011, 01:23:15 am »
Ok I added and formated a new drive and installed it into my core/hybrid told it to use LMCE file structure, but noticed that it named it by the model of the drive + some random number. Normally this wouldn't matter to most and under certain circumstances it wouldn't bother me; however I have, and will install several more drives of the same model. Once you have something that woks stick with it, right..
I would like to know how to rename the drives so it makes since to me when I'm about in SSH, or on the web page it's self, with out breaking everything.
Thanks.

Aviator

  • Veteran
  • ***
  • Posts: 79
    • View Profile
Re: Change The name of your hard drive
« Reply #1 on: March 30, 2011, 03:15:11 am »
I would leave this alone. This name is created by the auto mounter script and is used through the database and symlinks in /home. It will never assign the same number to two different drives. I don't think this can be done without causing things to break.

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1087
  • hrumpf!
    • View Profile
    • Mah Website
Re: Change The name of your hard drive
« Reply #2 on: March 30, 2011, 10:29:52 am »
You can do this, but its really a pain to do mid installation. LinuxMCE will spider the data on the drives, obviously, but the paths wont match when you change the name. So you have to wait for it to re-spider the new stuff or be really good with mysql or it will have all the old stuff that you cant tell between as it works out whats changed.  Otherwise, it needs to be dont AS SOON as the drive is detected so it has the proper name as update media spiders things.

hth
golgoj4
Official Releases
http://deb.linuxmce.org/QOrbiter-release.apk latest Qt4 android apk  http://deb.linuxmce.org/QOrbiterQt5-release.apk for the Qt5 Android version http://deb.linuxmce.org/QOrbiter-release.dmg for the MacOSX version

Unstable Nightlies
http://langstonball.com/downloads

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4463
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Change The name of your hard drive
« Reply #3 on: March 30, 2011, 11:17:07 am »
Ok I added and formated a new drive and installed it into my core/hybrid told it to use LMCE file structure, but noticed that it named it by the model of the drive + some random number. Normally this wouldn't matter to most and under certain circumstances it wouldn't bother me; however I have, and will install several more drives of the same model. Once you have something that woks stick with it, right..
I would like to know how to rename the drives so it makes since to me when I'm about in SSH, or on the web page it's self, with out breaking everything.
Thanks.

As golgoj4 and Aviator have already said I would not attempt this...you'll end up with a severely broken system.

All the best


Andrew
Andy Herron,
Convergent Home Technologies Ltd

My Blog; http://ellipticalcurve.com

Get RaspSqueeze-CEC Wifi enabled for Dianemo/LinuxMCE: http://wp.me/P4KgIc-7C

Contact me for Smart Home consulting advice here;
@herron on Twitter, inquiries@ellipticalcurve.com via email or PM me here.

Get a Dianemo License: http://forum.linuxmce.org/index.php?topic=8880.msg100221#msg100221
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

Sales & Info:
http://www.dianemo.co.uk

JoakimL

  • Veteran
  • ***
  • Posts: 149
    • View Profile
Re: Change The name of your hard drive
« Reply #4 on: March 30, 2011, 08:09:32 pm »
I changed the name of my 2 TB drive in thew Web Admin, worked like a charm. Now it's called 2T and all links work just fine.


/Joakim