Author Topic: Change The name of your hard drive  (Read 3615 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: 1193
  • 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
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • 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,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

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