overdue-scratch

Author Topic: Re-naming partitions  (Read 5107 times)

0 Members and 1 Guest are viewing this topic.

crabhunter

  • Member
  • Posts: 31
Re-naming partitions
« on: November 20, 2010, 07:58:59 PM »
Hi, can someone help me with the syntax for re-naming partitions in com.apple.Boot.plist
I have found the following in the documentation.

Code: [Select]
"Rename Partition" Rename partition(s) for the boot menu.
=hd(x,y) <alias>[;hd(m,n) <alias2> ...]

So lets say I want to rename hd(0,3) to say Ubuntu instead of showing up as Linux I create a

Code: [Select]
<key>Rename Partition</key>
<string>hd(0,3) <Ubuntu>[;hd(?,?)]</string>

Does Ubuntu need to be between <> ? and do the m and n have to be 0,3 as well?
I'm afraid to just try it in case I can't boot afterwards.
Mike

Azimutz

  • VoodooLabs
  • Posts: 420
  • Paranoid Android
Re: Re-naming partitions
« Reply #1 on: November 21, 2010, 01:57:46 PM »
Crabhunter, you don't need to rename it with Chameleon; just boot Ubuntu and use it's Disk Utility to set a label to it's volume ;)
 System & Patches: http://goo.gl/i961
 Chameleon:
- trunk builds: http://goo.gl/9G1Hq
- pref pane: http://goo.gl/OL2UT

crabhunter

  • Member
  • Posts: 31
Re: Re-naming partitions
« Reply #2 on: November 21, 2010, 05:07:05 PM »
I've heard that breaks the mbr and takes a lot of recovery, is that right?
Mike

kulfon77

  • Entrant
  • Posts: 4
Re: Re-naming partitions
« Reply #3 on: November 21, 2010, 05:34:52 PM »
No, it doesn't, I've just done it.
The only problem i had was that I had to re-add music to iTunes  ;)

Azimutz

  • VoodooLabs
  • Posts: 420
  • Paranoid Android
Re: Re-naming partitions
« Reply #4 on: November 22, 2010, 10:11:15 AM »
I did it one of these days and had no problems. It's just renaming a volume, can't see why it would mess the MBR.
 System & Patches: http://goo.gl/i961
 Chameleon:
- trunk builds: http://goo.gl/9G1Hq
- pref pane: http://goo.gl/OL2UT

crabhunter

  • Member
  • Posts: 31
Re: Re-naming partitions
« Reply #5 on: November 22, 2010, 11:42:34 AM »
Well I've tried disk utility without success,
let me explain, this is a triple boot set-up on a dell netbook on a single hard drive with a hybrid mbr/guid partition table.
Disk utility now shows the partition as named Ubuntu but neither osx, chameleon or windows7 can see the label.
I have changed the label both in the option filesystem label and edit partitions, I have tried ticking required/firmware but as yet have not tried to change the type of the partition.
Changing the type might be what I have been warned about.
Any other ideas?
Mike

crabhunter

  • Member
  • Posts: 31
Re: Re-naming partitions
« Reply #6 on: November 22, 2010, 04:10:49 PM »
Well it did mess up my mbr, although I could still boot osx and Ubuntu windows would not boot.
I had to use gptsync to fix the mbr then diskpart to set osx back to active.
And it still shows up as Linux :(
Still no news on how to use rename in chameleon though,
Mike

Azimutz

  • VoodooLabs
  • Posts: 420
  • Paranoid Android
Re: Re-naming partitions
« Reply #7 on: November 25, 2010, 08:21:29 PM »
Ok... about labeling Linux partitions, i can assure it works at least on Ubuntu installed to MBR scheme, on ext4 file system.
About multibooting OS X with Windows and Linux on the mix on a GPT   scheme, for me it's asking for troubles like the one you just faced; neither Windows or Linux are prepared to live on GPT and it's pretty easy to get the partition tables out of sync.

Now, about renaming partitions, this
Code: [Select]
<key>Rename Partition</key>
<string>hd(0,3) Ubuntu</string>
should work, though i never tried it on a volume without label.
This
Code: [Select]
<key>Rename Partition</key>
<string>Ubunto UbuntuX</string>
works for me and this
<key>Rename Partition</key>
<string>"Mac OS X Install DVD" "OS X Install";Ubuntu "Ubuntu X"</string>
and this is how you handle it, when using labels with spaces and renaming multiple volumes.

Hope it helps :)
« Last Edit: November 25, 2010, 08:24:09 PM by Azimutz »
 System & Patches: http://goo.gl/i961
 Chameleon:
- trunk builds: http://goo.gl/9G1Hq
- pref pane: http://goo.gl/OL2UT