Choose style:

Author Topic: Editing grub to change boot order (Solved)  (Read 5953 times)

0 Members and 1 Guest are viewing this topic.

Offline 10i

  • Trusted User
  • Member
  • *****
  • Posts: 481
  • Karma: 129
  • Peppermint Enthusiast
    • View Profile
    • My Peppermint Blog
  • Peppermint version(s): Peppermint 10 - 64 bit
Editing grub to change boot order (Solved)
« on: February 21, 2015, 01:40:36 pm »
Hi everyone, I installed Linux Mint XFCE to dual boot with Peppermint 5. I haven't checked Mint since version 15 and I was feeling curious. Now Mint is option 1 and Peppermint is option 5.

I want to change Peppermint to be option 1, instead of Mint.

In the folder: /etc/grub.d I have options to manually edit GRUB. But I am a little out of my depth here.

There are ten files here:
00_header
05_debian_theme
10_linux
20_linux_xen
20_memtest 86+
30_os-prober
30_uefi-firmware
40_custom
41_custom
readme

At this point my eyes glaze over, and I am not sure where to start. I read through the readme, but I need a bit of help here please.
« Last Edit: February 23, 2015, 04:41:11 am by 10i »
Running Peppermint 8- 64 bit on my Lenovo i3 laptop.

View my Linux blog:  http://myiceadventure.blogspot.com

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26290
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Editing grub to change boot order
« Reply #1 on: February 21, 2015, 01:47:51 pm »
As you installed Mint after Peppermint, Mint will have installed GRUB stage 1 (on the master boot record) to point at the Mint GRUB stage 2 configuration files

So effectively Mint is controlling the booting of both distros

You have 2 options...

a) reinstall GRUB from within Peppermint, so Pepepermint is the one controlling booting of both distros

or

b) mark Peppermint as the first distro to boot in Mint's copy of GRUB stage 2

personally If Peppermint is going to be your primary distro .. I'd go with option "a" .. sound good to you ? .. and do you want instructions ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline 10i

  • Trusted User
  • Member
  • *****
  • Posts: 481
  • Karma: 129
  • Peppermint Enthusiast
    • View Profile
    • My Peppermint Blog
  • Peppermint version(s): Peppermint 10 - 64 bit
Re: Editing grub to change boot order
« Reply #2 on: February 21, 2015, 03:29:11 pm »
A sounds good, please help with instructions.

I wil only have a chance to test it tomorrow evening though as I am working all day.

Thanks in advance
Running Peppermint 8- 64 bit on my Lenovo i3 laptop.

View my Linux blog:  http://myiceadventure.blogspot.com

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26290
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Editing grub to change boot order
« Reply #3 on: February 21, 2015, 03:52:32 pm »
OK, if you only have one hard drive, and that's /dev/sda

Boot into Peppermint, then run:
Code: [Select]
sudo grub-install /dev/sda
then reboot to test.

If you're unsure if you only have one hard drive or if it's /dev/sda .. DO NOT run the  above command, instead post the output from:
Code: [Select]
sudo fdisk -l
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline 10i

  • Trusted User
  • Member
  • *****
  • Posts: 481
  • Karma: 129
  • Peppermint Enthusiast
    • View Profile
    • My Peppermint Blog
  • Peppermint version(s): Peppermint 10 - 64 bit
Re: Editing grub to change boot order
« Reply #4 on: February 22, 2015, 10:58:44 am »
According to Disks, Peppermint is installed on /dev/sda1

Here is the output you asked for:

Spoiler (click here to view / hide)
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006f470

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   251902902   125950427+  83  Linux
/dev/sda2       251903998   312580095    30338049    5  Extended
/dev/sda5       310505472   312580095     1037312   82  Linux swap / Solaris
/dev/sda6       251904000   310505471    29300736   83  Linux

Partition table entries are not in disk order
[close]

Running Peppermint 8- 64 bit on my Lenovo i3 laptop.

View my Linux blog:  http://myiceadventure.blogspot.com

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Editing grub to change boot order
« Reply #5 on: February 22, 2015, 11:07:06 am »
Hi 10i, you are fine there.  Just run the install command Mark has given you while Peppermint is open.  You will have the Peppermint bootloader screen when you next start your machine  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline 10i

  • Trusted User
  • Member
  • *****
  • Posts: 481
  • Karma: 129
  • Peppermint Enthusiast
    • View Profile
    • My Peppermint Blog
  • Peppermint version(s): Peppermint 10 - 64 bit
Re: Editing grub to change boot order
« Reply #6 on: February 22, 2015, 02:14:05 pm »
Thanks, I am downloading the 64 bit version of Peppermint right now. I want to test Peppermint on a Lenovo G5070 i3 , 6GB RAM and 1 TB HDD that I have my eye on.

I will run the command after the download has finished and report back.
Running Peppermint 8- 64 bit on my Lenovo i3 laptop.

View my Linux blog:  http://myiceadventure.blogspot.com

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26290
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Editing grub to change boot order
« Reply #7 on: February 22, 2015, 02:20:56 pm »
Be sure to run it from within Peppermint, NOT Mint ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5445
  • Karma: 957
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Editing grub to change boot order
« Reply #8 on: February 22, 2015, 02:32:32 pm »
I want to test Peppermint on a Lenovo G5070 i3 , 6GB RAM and 1 TB HDD that I have my eye on.

Don't know if it's one of the affected models, but...

If you decide to acquire any Lenovo computers, make sure to check for the OEM pre-installed root kit:

http://www.theregister.co.uk/2015/02/22/lenovo_superfish_removal_tool/

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26290
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Editing grub to change boot order
« Reply #9 on: February 22, 2015, 02:39:27 pm »
Yeah I saw that the other day  :o
« Last Edit: February 22, 2015, 03:01:01 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline 10i

  • Trusted User
  • Member
  • *****
  • Posts: 481
  • Karma: 129
  • Peppermint Enthusiast
    • View Profile
    • My Peppermint Blog
  • Peppermint version(s): Peppermint 10 - 64 bit
Re: Editing grub to change boot order
« Reply #10 on: February 22, 2015, 02:41:45 pm »
@VinDSL I read about that, really weird how that was chosen to be installed.

My Lenovo netbook has lasted me very well, while working harder than a netbook was meant to.

It is an older, dual core chip. Not sure if I should rather wait until quad core comes out.
Running Peppermint 8- 64 bit on my Lenovo i3 laptop.

View my Linux blog:  http://myiceadventure.blogspot.com

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26290
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Editing grub to change boot order
« Reply #11 on: February 22, 2015, 03:01:28 pm »
The G50-70 is on the list of affected models:
http://www.theregister.co.uk/2015/02/20/lenovo_caves_in_face_of_public_firestorm_release_superfish_killer/

Not so much a "rootkit" as a malware application, and root CA-Certificate that allows injection of adverts into web browsers.

It's not going to affect Peppermint (or any other Linux distro, as they won't contain the software or CA-Cert) .. purely a Windows thing, but if you're running Windows it'd be best to check the software and MOST IMPORTANTLY the CA-Cert aren't present:
http://support.lenovo.com/us/en/product_security/superfish_uninstall
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5445
  • Karma: 957
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Editing grub to change boot order
« Reply #12 on: February 22, 2015, 04:38:04 pm »
Not so much a "rootkit" as a malware application, and root CA-Certificate that allows injection of adverts into web browsers.

I picked that 'puff-piece' at random.

Is this better?   ;D

Lenovo & Superfish: A Case Study in How Not To Handle Security Issues

Quote
"The internet erupted with outrage at Lenovo Thursday for their inclusion of Superfish adware on certain consumer laptops. The adware was extremely intrusive: it installed a kernel-level rootkit to persist itself… which is surprisingly not the most alarming thing about it (unless someone finds a way to exploit it…). The intent of the adware was to inject “visual shopping” ads in traffic."

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26290
  • Karma: 2855
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Editing grub to change boot order
« Reply #13 on: February 22, 2015, 06:38:21 pm »
OK I suppose it depends on your definition of "rootkit"

I've always taken that to mean software that runs at boot, is stealthy enough to hide its process, and can be used for backdoor admin level access.

Now whilst I don't know enough about this piece of software to say for sure it doesn't fill all those criteria .. I was taking it as not opening a backdoor, more software that just intercepted browser traffic and allowed adverts to be injected authenticated via a rogue CA certificate.

If I'm wrong and it actually allows outside access, I stand corrected :)
(won't be the first time today .. just ask Andy  :-[ )

To tell the truth, as it's a Windows only problem, I can't be bothered to dig deeper .. it's a stupid piece of software either way, don't laptop manufacturers make enough ? why do they feel the need to make more money from an advertising company (or bloatware) at their customers expense ? .. if you're margins are really that small, charge me an extra fiver rather than annoy the **** outa me, that aint the way to build brand loyalty >:D
« Last Edit: February 22, 2015, 06:52:47 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5445
  • Karma: 957
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Editing grub to change boot order
« Reply #14 on: February 22, 2015, 08:02:45 pm »
Last 'new' laptop I bought was a Toshiba.  I needed one 'yesterday' and a Best Buys was close by, so...

The salesman asked, "Would you like our service department to remove the ad-ware?"

"How much does that cost? I replied.

"$60.00," he said, without blinking an eye.

"No, thanks, I'll do it myself!"

OMG!!!  Had I known it was going to take three days to remove it all, I would have gladly let them bend me over the counter.  LoL   :D

Some of that crap-ware is like a virus - interwoven into the core OS DLLs - so real viruses can't attack their helpful viruses.

Man, I had to run all over the web looking for obscure uninstallers, like Lenovo is now offering.  It was a total PITA.

And, get this, the #$&! recovery CD contained all the same ad-ware, so using that POS wasn't even an option!

Er... don't get me going, okay?!?!?!?  I'll never buy another MS infected machine!  I'm getting angrier, as I type...   8)