Author Topic: Change The name of your hard drive  (Read 587 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: 1074
  • hrumpf!
    • View Profile
    • La Smarthomes - SoCal smarthome site
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
Those people who tell you not to take chances, they are all missing what life's all about.

Wiki Hardware Page http://wiki.linuxmce.org/index.php/User:Langstonius

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4383
  • 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
United Kingdom

Read My Blog; http://ellipticalcurve.com

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

Get a Dianemo S License: http://forum.linuxmce.org/index.php?topic=8880.0
iOS Orbiter: http://wiki.linuxmce.org/index.php/Dianemo_iOS_Orbiter
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