Author Topic: Mover GRUB2 from MBR to Peppermint root partition. [SOLVED]  (Read 3433 times)

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Mover GRUB2 from MBR to Peppermint root partition. [SOLVED]
« on: November 08, 2014, 04:07:39 pm »
Hi all,  I figured it was time to have some pure Debian alongside Peppermint Five.  Pure Debian is so dull though.   The solution is the ultra classy and sexy  Crunchbang.  I now have Crunchy goodness sitting beautifully next to Peppermint Five.  Perfect except for one irritation. When I ran the Debian installer, I installed the GRUB2 bootloader to the MBR.  No big deal.  I figured I'd reboot into Peppermint and install GRUB2 to Peppermint's root partition and have the Peppermint bootloader back.  It didn't want to play nice.  This is the output from blkid:
Code: [Select]
andy@AMILO-Li3710 ~ $ sudo blkid
/dev/sda5: LABEL="/" UUID="c2325a73-e71c-4ab8-8a74-e1a3a151bbf8" TYPE="ext4"
/dev/sda6: LABEL="/home" UUID="4f9e893d-e6c8-4881-a78c-e634695c4102" TYPE="ext4"
/dev/sda7: UUID="3397bc26-0090-4125-8e94-88b13bb7dfdc" TYPE="swap"
/dev/sda8: LABEL="CB/" UUID="075603cb-de92-495c-9947-7e4d0842f8a9" TYPE="ext4"
/dev/sda9: LABEL="CB/home" UUID="8d185df0-0a51-45fd-a548-8ef910eace0f" TYPE="ext4"
/dev/sda10: UUID="fb9cc62c-c80a-4d3c-97fe-45e49fbaf278" TYPE="swsuspend"
andy@AMILO-Li3710 ~ $
Peppermint's "root" partition is /dev/sda5.  This is what I get when I try to install GRUB2 to it:
Code: [Select]
andy@AMILO-Li3710 ~ $ sudo grub-install /dev/sda5
Installing for i386-pc platform.
grub-install: warning: Filesystem `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
andy@AMILO-Li3710 ~ $
Then just for good measure I try to update GRUB:
Code: [Select]
andy@AMILO-Li3710 ~ $ sudo update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found background image: dark-grey-peppermint-wallpaper.-1366x768.tga
Found linux image: /boot/vmlinuz-3.13.0-39-generic
Found initrd image: /boot/initrd.img-3.13.0-39-generic
Found linux image: /boot/vmlinuz-3.13.0-37-generic
Found initrd image: /boot/initrd.img-3.13.0-37-generic
Found linux image: /boot/vmlinuz-3.13.0-35-generic
Found initrd image: /boot/initrd.img-3.13.0-35-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Debian GNU/Linux (7.7) on /dev/sda8
done
andy@AMILO-Li3710 ~ $
Everything is working, I'd just like to use the Peppermint as my primary bootloader screen rather that the Crunchbang one.  Any help would be much appreciated.  Many thanks  ;).
« Last Edit: November 10, 2014, 06:13:00 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2377
  • Karma: 624
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Mover GRUB2 from MBR to Peppermint root partition.
« Reply #1 on: November 10, 2014, 05:20:28 am »
Hi Andy,

I'm not sure I understand what you are missing.  :-\ My understanding is that you need to modify your grub-install command by adding --force so it looks like this:
Code: [Select]
sudo grub-install --force /dev/sda5which should permit the grub-install command to complete -- but you might end up with other problems (see the Arch Wiki and read the section 2.1.1.3 Install to partition or partitionless disk).

Good luck and best regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Mover GRUB2 from MBR to Peppermint root partition.
« Reply #2 on: November 10, 2014, 05:28:29 am »
So what's the plan here ? .. to get GRUB stage 1 (master boot record) to point to Peppermints GRUB stage 2 rather than Debians ?

If that's the case .. boot to Peppermint, then run:
Code: [Select]
sudo grub-install /dev/sdawhich will overwrite the MBR with a new GRUB stage 1 that points at the currently running OS.
then run:
Code: [Select]
sudo update-grubso it detects and adds Debian to Peppermint GRUB stage 2 configuration files .. and therefore thhe GRUB menu.
« Last Edit: November 10, 2014, 06:24:49 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Mover GRUB2 from MBR to Peppermint root partition.
« Reply #3 on: November 10, 2014, 06:12:22 am »
Thanks a bunch guys.  I haven't done this in about a year.  I really thought I'd screwed something up.  Of course the bleedin' obvious was staring me right in the face.  As soon as I saw that I had to assign GRUB2 to the MBR while in PM5 and then update GRUB - the penny dropped  :o!!   I now have the Peppermint bootloader screen, rather than the Crunchbang one.  Thanks again  ;).

On a side note.  My Crunchbang 11 "Waldorf" installation is sitting pretty next to Peppermint Five.  I'd forgotten how "drop dead gorgeous" you can make OpenBox look  :).
« Last Edit: November 10, 2014, 06:18:45 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline rjm65

  • Veteran
  • ****
  • Posts: 1035
  • Karma: 313
  • I have Peppermint Fresh Breath. :P
    • View Profile
  • Peppermint version(s): Win-98 /Win-7/ Peppermint 9
Re: Mover GRUB2 from MBR to Peppermint root partition. [SOLVED]
« Reply #4 on: November 10, 2014, 06:47:21 am »
Not to mention the fact  that there is a penny on andy's floor now...   ;)
Robert
Peppermint 9 User

Gateway Solo 9300 Pro
IBM T40

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Mover GRUB2 from MBR to Peppermint root partition. [SOLVED]
« Reply #5 on: November 10, 2014, 06:48:32 am »
It's mine .. MINE I tell you...
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline rjm65

  • Veteran
  • ****
  • Posts: 1035
  • Karma: 313
  • I have Peppermint Fresh Breath. :P
    • View Profile
  • Peppermint version(s): Win-98 /Win-7/ Peppermint 9
Re: Mover GRUB2 from MBR to Peppermint root partition. [SOLVED]
« Reply #6 on: November 10, 2014, 08:59:00 am »
LOL hurry up and grab it then...   LOL    ;)
Robert
Peppermint 9 User

Gateway Solo 9300 Pro
IBM T40

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: Mover GRUB2 from MBR to Peppermint root partition. [SOLVED]
« Reply #7 on: November 10, 2014, 09:20:54 am »
Its rolling - run, run, run  :D!!!!
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.