Choose style:

Author Topic: editing grub [SOLVED]  (Read 2075 times)

0 Members and 1 Guest are viewing this topic.

Offline budman7

  • Newly Subscribed
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
editing grub [SOLVED]
« on: September 25, 2016, 06:28:33 pm »
I had Peppermint as the primary OS, among 4 distros.
I installed Apricity over Antergos.
Normally I just install the new distro on the mbr and when I reboot if all of my OS's arent' there I just reboot with the Yannubuntu repair disk and all of my distros are back.
This time, however, only 3 distros came back, Peppermint was left out.
Rebooted with Yannubuntu, same situation, no Peppermiint.
Booted with Peppermint dvd, tried Yannubuntu with that, same result. I thought it might make a difference being run from a Peppermint environment.
I tried copying and pasting the Peppermint menuentry While in Linux Mint. I got "command not found, menuentry", actually something close to that. So, I must have been putting it in the wrong place inside /etc/default/grub
I followed a chroot tutorial.
https://forums.linuxmint.com/viewtopic.php?f=42&t=175634&p=923441&hilit=chroot+grub2+tutorial#p923441
But I got an error saying no /bin/bash.
So, what would be the proper way of either editing my Linux Mint grub or chrooting?

« Last Edit: September 26, 2016, 12:53:55 am by AndyInMokum, Reason: Marking topic as [SOLVED]. »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
editing grub
« Reply #1 on: September 25, 2016, 06:28:33 pm »
To help us help you, ALL new requests for technical support should include basic system information.

If you haven't already done so, please open a terminal (Ctrl+Alt+T) and run the following command:
Code: [Select]
inxi -Fz
then copy what was returned in the terminal and post it back here.

This was an automated response but please don't ignore it, providing this information now is highly likely to save time for both you and any prospective respondents and aid in the diagnosis of your problem  .. Thanks in advance :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: editing grub
« Reply #2 on: September 25, 2016, 07:53:10 pm »
Which distro is now controlling GRUB ? .. ie. which distro boots automatically if you don't do anything at the GRUB screen ?

So what do you want to do here, point the MBR at Peppermint's GRUB and see if it'll detect the other distros ?

Do you know what partition Peppermint is on ?

From Mint, what's the output from:
Code: [Select]
sudo fdisk -l
and
Code: [Select]
sudo blkid
« Last Edit: September 25, 2016, 07:54:41 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline budman7

  • Newly Subscribed
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: editing grub
« Reply #3 on: September 25, 2016, 09:11:19 pm »
Linux Mint on sda1 is the current master.
Peppermint is on sda6

fdisk -l

Spoiler (click here to view / hide)
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048 243271579 243269532   116G 83 Linux
/dev/sda2       243271680 486541311 243269632   116G 83 Linux
/dev/sda3  *    486541312 729810843 243269532   116G 83 Linux
/dev/sda4       729812990 976752639 246939650 117.8G  f W95 Ext'd (LBA)
/dev/sda5       729812992 734025727   4212736     2G 82 Linux swap / Solaris
/dev/sda6       734027776 817917951  83890176    40G 83 Linux
/dev/sda7       817920000 976752639 158832640  75.8G 83 Linux

[close]

blkid

Spoiler (click here to view / hide)
sudo blkid
/dev/sda1: UUID="e2d6d5c0-5ef4-459c-b664-1478c8a7acec" TYPE="ext4" PARTUUID="04b604b5-01"
/dev/sda2: UUID="061e24e2-f547-4819-81c7-fd8aa553f5ac" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="04b604b5-02"
/dev/sda3: UUID="bc227b30-3438-490e-8e9d-92edb4cd2acf" TYPE="ext4" PARTUUID="04b604b5-03"
/dev/sda5: UUID="72ff6a09-fd2d-48e0-b43a-56be4b342f24" TYPE="swap" PARTUUID="04b604b5-05"
/dev/sda6: UUID="54094d32-fbed-4597-89f0-dfd0ef291df7" UUID_SUB="c9319e95-5a73-43d1-abad-ee1c58e68b3e" TYPE="btrfs" PARTUUID="04b604b5-06"
/dev/sda7: UUID="a2462b1a-f363-4f32-8fab-1361b132f048" TYPE="xfs" PARTUUID="04b604b5-07"
[close]

It really doesn't matter to me which is the controlling distro, as long as that distro boots all other distros.

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2078
  • Karma: 370
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: editing grub
« Reply #4 on: September 25, 2016, 09:40:35 pm »
It must be the btrfs file system on that partition that's causing the difficulty. Any particular reason for that?

Offline budman7

  • Newly Subscribed
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: editing grub
« Reply #5 on: September 25, 2016, 10:44:45 pm »
No special reason for btrfs.
If I had known it would cause a problem, I would not have done it.
I would have used ext4.
Btrfs was just the first one I clicked on.

I don't have much of anything on it yet.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4893
  • Karma: 1053
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: editing grub
« Reply #6 on: September 25, 2016, 11:26:00 pm »
Hi budman7, how's it going.  The btrfs file system is still experimental and not really ready for prime time.  It's also aimed more for server use.  For the moment, stick with ext4.  Forget about using ext3 or ext2.  They're old and basically obsolete.  The ext4 file system is fast, stable and journalled.  Here's a couple of links that explain the different file systems: What is the difference between Linux filesystems ext2, ext3, ext4, and ext5? and Difference between Btrfs and Ext4  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline budman7

  • Newly Subscribed
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: editing grub
« Reply #7 on: September 25, 2016, 11:39:14 pm »
Problem solved.
I reinstalled with the ext4 file system and all 4 distros are there.
Thanks for the link, I didn't know that about btrfs.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4893
  • Karma: 1053
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: editing grub [SOLVED]
« Reply #8 on: September 26, 2016, 12:55:19 am »
It's good to know you've resolved your issue 8).  For future reference, could you please remember to mark the topic as [SOLVED] in the subject line of the original post.  I've done this for you this time.  Many thanks  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: editing grub [SOLVED]
« Reply #9 on: September 26, 2016, 06:11:29 am »
GRUB works with btrfs, but if Peppermint was btrfs it would Peppermint to be controlling GRUB.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec