Triple Boot Android x86 with Win7 & Mint (Grub issues)

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
User avatar
lake33
Level 1
Level 1
Posts: 4
Joined: Tue Jan 24, 2017 1:41 am
Location: United States

Triple Boot Android x86 with Win7 & Mint (Grub issues)

Post by lake33 »

I'm about ready to pull my hair out. I've only been a Linux user for a month, so I'm still a noob.

I've been successfully dual booting Windows 7 64-bit and Linux Mint 64-bit running Cinnamon. I'm using Grub 2.
I wanted to add Android x86 6.0 Marshmallow 64-bit to my dual boot, making a triple boot. As far as I can tell, everything installs fine, but I absolutely cannot figure out how to add Android to the GRUB. Here's some info...

I downloaded "Android-x86 6.0-r1 live and installation iso (64-bit)" from this website: http://www.android-x86.org/download
I created a 10gb partition, created a bootable flashdrive using UNETbootin and the iso, formatted the partition (first I tried NTFS, then I tried again using Ext4), and installed Android.
Then I tried all manner possible to add Android to the GRUB to no avail. Various hangups included....
1. /etc/grub.d/40_custom was blank. I added the header and what I thought was the right code to add it to the GRUB, but it ended up amalgamating one of my Windows Boots with the non-functioning Android Boot code. The GRUB still can boot Windows and Mint though.
2. There's little info out there for adding 6.0 to the GRUB menu.
3. Maybe I don't know what I'm doing, but GRUB customizer seems like a terrible program. When I try to rename something it closes the whole program, it's error reporting is vague, and I'm unable to remove Boots that I know are broken and useless.

If anyone can help me I'd be just plain overjoyed. I'm at wits end right now.

Anyway, here's some information...
The android files are in media/david/Android-x86/android-6.0-r1

etc/default/grub

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="0"
#GRUB_HIDDEN_TIMEOUT="0"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
grub.cfg

Code: Select all

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  53ed58ab-4a88-4ea7-b135-d07f5c9f757d
else
  search --no-floppy --fs-uuid --set=root 53ed58ab-4a88-4ea7-b135-d07f5c9f757d
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux_proxy ###

function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode



### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-5056F3F156F3D5A6' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  5056F3F156F3D5A6
	else
	  search --no-floppy --fs-uuid --set=root 5056F3F156F3D5A6
	fi
	parttool ${root} hidden-
	chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/31_linux_proxy ###
menuentry "Linux Mint 18.1 Cinnamon 64-bit" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-53ed58ab-4a88-4ea7-b135-d07f5c9f757d' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  53ed58ab-4a88-4ea7-b135-d07f5c9f757d
	else
	  search --no-floppy --fs-uuid --set=root 53ed58ab-4a88-4ea7-b135-d07f5c9f757d
	fi
	linux	/boot/vmlinuz-4.4.0-53-generic root=UUID=53ed58ab-4a88-4ea7-b135-d07f5c9f757d ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-4.4.0-53-generic
}
### END /etc/grub.d/31_linux_proxy ###

### BEGIN /etc/grub.d/33_lupin ###
### END /etc/grub.d/33_lupin ###

### BEGIN /etc/grub.d/34_linux_xen ###

### END /etc/grub.d/34_linux_xen ###

### BEGIN /etc/grub.d/35_memtest86+_proxy ###



### END /etc/grub.d/35_memtest86+_proxy ###

### BEGIN /etc/grub.d/36_uefi-firmware ###
### END /etc/grub.d/36_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom_proxy ###

# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode




### END /etc/grub.d/40_custom_proxy ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
The biggest mess of all, grub.cfg.new

Code: Select all

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  53ed58ab-4a88-4ea7-b135-d07f5c9f757d
else
  search --no-floppy --fs-uuid --set=root 53ed58ab-4a88-4ea7-b135-d07f5c9f757d
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux_proxy ###

function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode



### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-5056F3F156F3D5A6' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  5056F3F156F3D5A6
	else
	  search --no-floppy --fs-uuid --set=root 5056F3F156F3D5A6
	fi
	parttool ${root} hidden-
	chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/31_linux_proxy ###
menuentry "Linux Mint 18.1 Cinnamon 64-bit" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-53ed58ab-4a88-4ea7-b135-d07f5c9f757d' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  53ed58ab-4a88-4ea7-b135-d07f5c9f757d
	else
	  search --no-floppy --fs-uuid --set=root 53ed58ab-4a88-4ea7-b135-d07f5c9f757d
	fi
	linux	/boot/vmlinuz-4.4.0-53-generic root=UUID=53ed58ab-4a88-4ea7-b135-d07f5c9f757d ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-4.4.0-53-generic
}
### END /etc/grub.d/31_linux_proxy ###

### BEGIN /etc/grub.d/33_lupin ###
### END /etc/grub.d/33_lupin ###

### BEGIN /etc/grub.d/34_linux_xen ###

### END /etc/grub.d/34_linux_xen ###

### BEGIN /etc/grub.d/35_memtest86+_proxy ###



### END /etc/grub.d/35_memtest86+_proxy ###

### BEGIN /etc/grub.d/36_uefi-firmware ###
### END /etc/grub.d/36_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom_proxy ###

# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode




menuentry "Android-x86 6.0 Marshmallow" {
	set root=' (hd1, 3)'
	linux /android-6.0-r1/kernel quiet androidboot.hardware=android_x86 video=-16
	nomodeset SRC=/android-6.0-r1
	initrd /android-6.0-r1/initrd.img }
	
	if [ -f  ${config_directory}/custom.cfg ]; then
	  source ${config_directory}/custom.cfg
	elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
	  source $prefix/custom.cfg;
	fi
}
### END /etc/grub.d/40_custom_proxy ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
blkid

Code: Select all

/dev/sda1: LABEL="System Reserved" UUID="5056F3F156F3D5A6" TYPE="ntfs" PARTUUID="dac784d6-01"
/dev/sda2: LABEL="SSD" UUID="3A08F54308F4FF27" TYPE="ntfs" PARTUUID="dac784d6-02"
/dev/sda5: UUID="53ed58ab-4a88-4ea7-b135-d07f5c9f757d" TYPE="ext4" PARTUUID="dac784d6-05"
/dev/sdb2: LABEL="HDD" UUID="AA94FA2494F9F325" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a6f73881-69db-4350-8a0f-e8d44c383dae"
/dev/sdb3: LABEL="Android-x86" UUID="033e8fc7-4cfe-9454-bc59-df7329ca862d" TYPE="ext4" PARTLABEL="Basic data partition" PARTUUID="244f5e05-4428-4a29-81d9-f58537e8659b"
/dev/sdb4: UUID="93f2ed3b-b3f7-46f3-999c-86432bf1d72b" TYPE="swap" PARTUUID="25edbdf9-44da-490e-bc71-f55b44e6d721"
/dev/sdc1: LABEL="MYLINUXLIVE" UUID="2296-1F8D" TYPE="vfat" PARTUUID="a67977c7-01"
Last edited by lake33 on Tue Jan 24, 2017 12:46 pm, edited 2 times in total.
deepakdeshp
Level 18
Level 18
Posts: 8433
Joined: Sun Aug 09, 2015 10:00 am

Re: Triple Booting Android x86 with Win7 and Mint

Post by deepakdeshp »

Please see

https://ubuntuforums.org/showthread.php?t=2307580

Grub customizer complicates booting and adds many un necessary files to grub2.
Try uninstalling the same. But it may mess up grub2 and make system unbootable.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 20 Cinnamon 64 bit with AMD A8/7410 / 8GB
Mint 20 Cinnamon AMD Ryzen3500U
User avatar
lake33
Level 1
Level 1
Posts: 4
Joined: Tue Jan 24, 2017 1:41 am
Location: United States

Re: Triple Booting Android x86 with Win7 and Mint

Post by lake33 »

I uninstalled Grub Customizer. I can still boot Windows and Mint.

As I said, "40_custom" is always blank when I open it, and the link you posted almost immediately tells the poster to edit that file. Is that going to be an issue?
deepakdeshp
Level 18
Level 18
Posts: 8433
Joined: Sun Aug 09, 2015 10:00 am

Re: Triple Booting Android x86 with Win7 and Mint

Post by deepakdeshp »

lake33 wrote:I uninstalled Grub Customizer. I can still boot Windows and Mint.

As I said, "40_custom" is always blank when I open it, and the link you posted almost immediately tells the poster to edit that file. Is that going to be an issue?
You can try following the link.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 20 Cinnamon 64 bit with AMD A8/7410 / 8GB
Mint 20 Cinnamon AMD Ryzen3500U
User avatar
lake33
Level 1
Level 1
Posts: 4
Joined: Tue Jan 24, 2017 1:41 am
Location: United States

Re: Triple Booting Android x86 with Win7 and Mint

Post by lake33 »

I read the entire thread. Long before you ever linked it to me and I'm still where I'm at right now, which is why I'm here.

Regardless, this will serve as a good point to troubleshoot from.
I took the advice at the end. In the terminal I edited my blank 40_custom...

Code: Select all

sudo gedit etc/grub.d/40_custom
I pasted this into the file and saved...
#!/bin/sh
exectail -n +3 $0
#This file provides an easy way to add custom menu entries. Simplytype the
#menu entries you want to add after this comment. Be careful not tochange
#the 'exec tail' line above.

menuentry"Android x86" {
setroot='(hd1,3)'
linux/android-6.0-rt/kernel quiet root/dev/ram0androidboot.hardware=android_x86_64
acpi_sleep=s3_bios,s3_mode SRC=/android-6.0-rt/
initrd/android-6.0-rt/initrd.img}
(Android is installed on the second drive, 3rd partition (see blkid). I'm using 64-bit. My changes are bolded.

I did sudo update-grub and got this...

Code: Select all

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-53-generic
Found initrd image: /boot/initrd.img-4.4.0-53-generic
Found Windows 7 (loader) on /dev/sda1
Found linux image: /boot/vmlinuz-4.4.0-53-generic
Found initrd image: /boot/initrd.img-4.4.0-53-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 236
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
done
Now I will restart. And if what happened last time happens again, what will happen is nothing at all.
deepakdeshp
Level 18
Level 18
Posts: 8433
Joined: Sun Aug 09, 2015 10:00 am

Re: Triple Booting Android x86 with Win7 and Mint

Post by deepakdeshp »

Somebody else may step in
Doesnt look it is going to work.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 20 Cinnamon 64 bit with AMD A8/7410 / 8GB
Mint 20 Cinnamon AMD Ryzen3500U
hallergard
Level 3
Level 3
Posts: 158
Joined: Wed Aug 01, 2012 4:11 am

Re: Triple Boot Android x86 with Win7 & Mint (Grub issues)

Post by hallergard »

Typo? android-6.0-rt or android-6.0r1 ?
hallergard
Level 3
Level 3
Posts: 158
Joined: Wed Aug 01, 2012 4:11 am

Re: Triple Boot Android x86 with Win7 & Mint (Grub issues)

Post by hallergard »

The output from update-grub never shows 40_Custom entries. There are a few more typos I think in what you pasted: " root/dev/ram0android......" should be " root=/dev/ram0 " and "setroot" should be "set root", though I prefer using the search function. This is my 40_Custom:

Code: Select all

menuentry 'Android 6.0-r2              (on /dev/sdb9)' --class android --class gnu-linux --class gnu --class os {
   insmod part_gpt
	insmod ext2
	search --file --no-floppy --set=root /android-6.0-r2/kernel
	linux /android-6.0-r2/kernel root=/dev/ram0 androidboot.hardware=android_x86_64 SRC=/android-6.0-r2 SDCARD=sda4
	initrd /android-6.0-r2/initrd.img
}
Believe I can skip androidboot.hardware=android_x86_64 but will test that first
User avatar
austin.texas
Level 20
Level 20
Posts: 12046
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Triple Booting Android x86 with Win7 and Mint

Post by austin.texas »

lake33 wrote:I uninstalled Grub Customizer. I can still boot Windows and Mint.
As I said, "40_custom" is always blank when I open it, and the link you posted almost immediately tells the poster to edit that file. Is that going to be an issue?
Hold on... You are wasting your time with something that is not going to work.
Your "40_custom" is always blank when you open it, because every time you do "sudo update-grub" the "40_custom" you created gets erased (or not used).
The bad news is that your grub configuration is borked almost beyond repair. The culprit is Grub Customizer. Grub Customizer, in it's infinite wisdom, converted your "40_custom" and all the other config files in /etc/grub.d/ to "proxified" files.
The biggest mess of all, grub.cfg.new
### BEGIN /etc/grub.d/40_custom_proxy ###
If you don't believe me, look in /etc/grub.d/ in your file manager and see.
viewtopic.php?f=90&t=190245&p=1085698#p1085698

What I would do in your situation is re-install grub.

Code: Select all

sudo apt-get install --reinstall grub-pc
You could try editing /etc/grub.d/40_custom_proxy to add your menuentry. I don't know if that will work or not - never tried it.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
User avatar
lake33
Level 1
Level 1
Posts: 4
Joined: Tue Jan 24, 2017 1:41 am
Location: United States

Re: Triple Boot Android x86 with Win7 & Mint (Grub issues)

Post by lake33 »

Holy crap, what a mess.

My solution was to give up. I reinstalled Linux Mint and the Grub Completely, and went with installing Android on a flash drive. Good enough for my purposes.
Thank you Austin and Hallergard.
Post Reply

Return to “Installation & Boot”