LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-07-2015, 03:01 PM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
Dual boot jessie/mint lvm, grub shows debian and mint, all only boot debian


The subject line's character limit makes it hard to summarize easily.

Anyway, I'm using lvm to run jessie and mint 17.1. Grub is installed to /dev/sda, my volume group is "vgfirstdisk" debian is on "lvdebroot" and mint on "lvmintroot" and are sharing /home on "lvhome" and /boot on "lvboot" (creative, I know). Grub installed with out hassle (or so I thought). Had some very minor issues with jessie, but nothing worth mentioning. Wanted to check up on mint and update it, but the grub entry booted debian. So I went and looked at all of the entries for mint and they all look like ... well here's my grub.cfg for your consideration. Summation of the grub.cfg, all the entries that should be mint are pointing to lvdebroot, with an lvmid that I don't recognize ... nor do I know what lvmid is (I thought it was the UUID, but I'm probably mistaken). If it helps, here's the output of lvdisplay as well.

This was happening to an extent with wheezy when I was using that. Only, instead of just pointing all entries to debian, there just weren't any listings for mint.

If you all need more info to make sense of this just let me know.

EDIT 12/3/15 00:51 Solution found. Turns out using a single boot partition to hold kernels/boot files for multiple OSes is a bad idea. I removed the /boot partition, copied the mint files/kernels from said partition to mint's /boot, and the jessie files/kernels to jessie's /boot. Ran "sudo grub-mkconfig --output /boot/grub/grub.cfg" in jessie, all completed fine and both OSes were seen correctly.

EDIT 9/3/15 01:05 Was requested that I post my grub.cfg here in code tags, and I would add the output of lvdisplay as well, but apparently that would put me at 30424 characters which is just about 424 too many.

grub.cfg:
Code:
#
# 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 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 lvm
insmod ext2
set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/fFu87n-nwzM-B0yK-Zg0j-ZLhB-2fmd-6PynwW'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/fFu87n-nwzM-B0yK-Zg0j-ZLhB-2fmd-6PynwW'  923e35a1-f5dc-4216-9c9a-8f78d69facce
else
  search --no-floppy --fs-uuid --set=root 923e35a1-f5dc-4216-9c9a-8f78d69facce
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=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/fFu87n-nwzM-B0yK-Zg0j-ZLhB-2fmd-6PynwW'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/fFu87n-nwzM-B0yK-Zg0j-ZLhB-2fmd-6PynwW'  923e35a1-f5dc-4216-9c9a-8f78d69facce
else
  search --no-floppy --fs-uuid --set=root 923e35a1-f5dc-4216-9c9a-8f78d69facce
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
	else
	  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
	fi
	echo	'Loading Linux 3.16.0-4-amd64 ...'
	linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-init-sysvinit-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.13.0-37-generic' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-37-generic-advanced-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.13.0-37-generic ...'
		linux	/vmlinuz-3.13.0-37-generic root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.13.0-37-generic
	}
	menuentry 'Debian GNU/Linux, with Linux 3.13.0-37-generic (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-37-generic-init-sysvinit-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.13.0-37-generic ...'
		linux	/vmlinuz-3.13.0-37-generic root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.13.0-37-generic
	}
	menuentry 'Debian GNU/Linux, with Linux 3.13.0-37-generic (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-37-generic-recovery-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.13.0-37-generic ...'
		linux	/vmlinuz-3.13.0-37-generic root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.13.0-37-generic
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-advanced-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-init-sysvinit-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-recovery-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.2.0-4-amd64
	}
}

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

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

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
	else
	  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
	fi
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
	else
	  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
	fi
	linux16	/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
	else
	  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
	fi
	multiboot	/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
	else
	  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
	fi
	multiboot	/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Linux Mint 17.1 Rebecca (17.1) (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-ef8591cf-670a-425b-9916-f2ea59d6753c' {
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
	else
	  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
	fi
	linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
	initrd /initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Linux Mint 17.1 Rebecca (17.1) (on /dev/mapper/vgfirstdisk-lvmintroot)' $menuentry_id_option 'osprober-gnulinux-advanced-ef8591cf-670a-425b-9916-f2ea59d6753c' {
	menuentry 'Debian GNU/Linux (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.16.0-4-amd64--ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
		initrd /initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.16.0-4-amd64--ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
		initrd /initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (sysvinit) (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.16.0-4-amd64--ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet init=/lib/sysvinit/init
		initrd /initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode) (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.16.0-4-amd64-root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz-ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz
		initrd /initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.13.0-37-generic (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.13.0-37-generic--ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.13.0-37-generic root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
		initrd /initrd.img-3.13.0-37-generic
	}
	menuentry 'Debian GNU/Linux, with Linux 3.13.0-37-generic (sysvinit) (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.13.0-37-generic--ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.13.0-37-generic root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet init=/lib/sysvinit/init
		initrd /initrd.img-3.13.0-37-generic
	}
	menuentry 'Debian GNU/Linux, with Linux 3.13.0-37-generic (recovery mode) (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.13.0-37-generic-root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz-ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.13.0-37-generic root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz
		initrd /initrd.img-3.13.0-37-generic
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.2.0-4-amd64--ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet
		initrd /initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (sysvinit) (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.2.0-4-amd64--ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro initrd=/install/initrd.gz quiet init=/lib/sysvinit/init
		initrd /initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode) (on /dev/mapper/vgfirstdisk-lvmintroot)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-3.2.0-4-amd64-root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz-ef8591cf-670a-425b-9916-f2ea59d6753c' {
		insmod part_msdos
		insmod lvm
		insmod ext2
		set root='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='lvmid/Wujkgq-nigA-oeim-Zk37-a35J-lRbP-8pyWeq/tJrNGc-R70A-Bb07-V5AR-VnyD-QwBi-32Dgar'  38c465e2-fc57-49d3-bd30-7036e0ae1b05
		else
		  search --no-floppy --fs-uuid --set=root 38c465e2-fc57-49d3-bd30-7036e0ae1b05
		fi
		linux /vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vgfirstdisk-lvdebroot ro single initrd=/install/initrd.gz
		initrd /initrd.img-3.2.0-4-amd64
	}
}

### END /etc/grub.d/30_os-prober ###

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

### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###

### 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 ###

Last edited by slacker_; 03-11-2015 at 11:52 PM. Reason: Found solution
 
Old 03-07-2015, 11:34 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,414

Rep: Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847
Quote:
Originally Posted by slacker_ View Post
sharing /home on "lvhome" and /boot on "lvboot" (creative, I know).
Not the word I would have chosen. This may be just the first "quirky" error you confront.

Debian and Mint may be close enough that you avoid issues on that shared /home. Or not, time will tell.
As for /boot, the issue is most probably os-prober rather than grub itself. But think about it - how is a script to determine which partition a kernel is related to ?. I'm guessing an empty /boot (on that Mint lv in your case) causes the partition/lv to be ignored.
 
Old 03-08-2015, 12:52 AM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
The shared /home should not ever be a problem if you are using Linux or BSD or both on a shared /home.

The only thing that will screw that up is not having unique user names for each install sharing the single/home.

Even if you are this should not affect booting as grub pays no attention to /home no matter where it is.

It would be nice if you simply put your grub.cfg file, or any other thing for future reference on here as an attachment or, in this case, in code tags.

I have never used LVM so may not get all that is involved. But, I assume you can access the files for LM from Jessie. Open the /boot/grub/grub.cfg file for LM. Find the first menu entry there. Copy that to your Jessie /etc/grub.d/40_custom file. Do not change or over write what is in 40_custom, just add that menu entry to it. Run update-grub to get this in your grub.cfg file. Reboot. That entry sould be the very last entry.

This is because the scripts in grub.d are numbered and read in numerical order when generating the grub.cfg file.

See if that works. If it does you can go on about your business and ignore the problem or check to see what LM does if you run update-grub on it. That should pick up your Jessie install. If that works switch grub chores over to LM.
 
Old 03-09-2015, 12:03 AM   #4
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by syg00 View Post
Not the word I would have chosen. This may be just the first "quirky" error you confront.

Debian and Mint may be close enough that you avoid issues on that shared /home. Or not, time will tell.
They share /home with different user names, so it's /home/[mint_user] and /home/[jessie_user]. No conflicts.

Quote:
As for /boot, the issue is most probably os-prober rather than grub itself. But think about it - how is a script to determine which partition a kernel is related to ?. I'm guessing an empty /boot (on that Mint lv in your case) causes the partition/lv to be ignored.
That whole bit there doesn't make sense to me... Grammar issue I think. Could you please break it down further?

Quote:
Originally Posted by widget View Post
The shared /home should not ever be a problem if you are using Linux or BSD or both on a shared /home.

The only thing that will screw that up is not having unique user names for each install sharing the single/home.

Even if you are this should not affect booting as grub pays no attention to /home no matter where it is.
Yes, that's what I have set up.

Quote:
It would be nice if you simply put your grub.cfg file, or any other thing for future reference on here as an attachment or, in this case, in code tags.
I will do this after replying here, add it as an edit to the original post.

Quote:
I have never used LVM so may not get all that is involved. But, I assume you can access the files for LM from Jessie. Open the /boot/grub/grub.cfg file for LM. Find the first menu entry there. Copy that to your Jessie /etc/grub.d/40_custom file. Do not change or over write what is in 40_custom, just add that menu entry to it. Run update-grub to get this in your grub.cfg file. Reboot. That entry sould be the very last entry.

This is because the scripts in grub.d are numbered and read in numerical order when generating the grub.cfg file.

See if that works. If it does you can go on about your business and ignore the problem or check to see what LM does if you run update-grub on it. That should pick up your Jessie install. If that works switch grub chores over to LM.
That's a good idea, however LM having it's /boot in the same space as jessie means that jessie's boot files override LM, therefore there's no LM specific grub.cfg; when I installed (then updated) grub in jessie it wrote over top of all the /boot files there.

The thing is when I run grub-mkconfig --output /boot/grub/grub.cfg I get this output:

Code:
sudo grub-mkconfig --output /boot/grub/grub.cfg
[sudo] password for dra: 
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
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.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+_multiboot.bin
Found Linux Mint 17.1 Rebecca (17.1) on /dev/mapper/vgfirstdisk-lvmintroot
done
It clearly sees LM and where it's installed, just doesn't write it to the grub.cfg properly (as you can see in the OP about 90 seconds after I post this).
 
Old 03-09-2015, 06:41 PM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I am studying your 10_linux and 30_os-prober generated menu items.

Very interesting.

As I have never used LVM perhaps you can tell me how you identify the lvmid. I am familiar with blkid which lists all the uuids for the system. And I am familiar with using tune2fs to generate a new one if there is a problem like duplicate uuids.

But I have no idea if that is the same when using lvm. So if you want a list of all the lvmid's on your system; how do you get this list?

I see in the submenus for both installs there is a number listed as;
Code:
$menuentry_id_option 'osprober-gnulinux-advanced-ef8591cf-670a-425b-9916-f2ea59d6753c' {
$menuentry_id_option          'gnulinux-advanced-923e35a1-f5dc-4216-9c9a-8f78d69facce' {
I spaced the second one (Debian) to align them for easy comparison. Those look like a normal uuid and I am happy to see that they are not duplicates.

So this all seems to boil down to the lvmid which is being detected by 2 different scripts (10-* and 30_*) and identified as identical.

If there is a tool for lvm administration that will list the lvmid numbers it would be really nice to see that output. Only thing I could find in my very brief exploration of options would be the lvmdump command and what I read on that sounds like using a dynamite to swat a flie.

It may be that;
Code:
lsblk -O
will give this info but I have my doubts. You my want to try that though just to see. If you do I would run it without the -O first to see if it works at all. May not know what to make of a LVM setup. If it doesn't just throw gibberish try it with the -O.

This, in the case of normal partition is kind of a pain to read. Copy/pasting the lines of interest to a text editor, one at a time so as to separate them for ease of reading helps. I mention this because it gives me 3 lines of info in terminal per partition. Doesn't help that there are 4 drives in this box to make it even longer. I use my terminal at full size at all times so this really is a lot of info.

I am not sure what LVM does exactly. Is each volume treated as a block? If not lsblk is not going to be much help I am afraid.

But if you can get the information on the lvmid numbers somehow it would help.

What command do you use to mount the / partition for LM if mounting it manually?
 
Old 03-09-2015, 09:07 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,414

Rep: Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847Reputation: 3847
Quote:
Originally Posted by slacker_ View Post
They share /home with different user names, so it's /home/[mint_user] and /home/[jessie_user]. No conflicts.
Excellent - too many want to use the same user.
Quote:
That whole bit there doesn't make sense to me... Grammar issue I think. Could you please break it down further?
grub-mkconfig will call os-prober if it is present to look for other systems. All scripts, so you can look at them if you wish. Finding the Mint release details is easy - just look (from jessie) in /dev/mapper/vgfirstdisk-lvmintroot/etc. But I'm betting there is nothing in /dev/mapper/vgfirstdisk-lvmintroot/boot as you over-mounted /boot during the Mint install.
osprober will look (from jessie) for /dev/mapper/vgfirstdisk-lvmintroot/boot - if nothing there, ignore the partition/lv for parsing. I only had a quick look, so can't state categorically that's what happens.
 
Old 03-09-2015, 10:27 PM   #7
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
lsblk does display the lvm setup, so here's the output with -O

Code:
~$ lsblk -O
NAME                       KNAME MAJ:MIN FSTYPE MOUNTPOINT LABEL UUID PARTTYPE PARTLABEL PARTUUID PARTFLAGS  RA RO RM MODEL            SERIAL   SIZE STATE OWNER GROUP MODE       ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE TYPE DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO WSAME WWN RAND PKNAME HCTL       TRAN    REV VENDOR
sda                        sda     8:0                                                                      128  0  0 ST9160823AS             149.1G runni root  disk  brw-rw----         0    512      0     512     512    1 cfq       128 disk        0        0B       0B         0    0B        1        0:0:0:0    sata   E    ATA     
└─sda1                     sda1    8:1                                                                      128  0  0                         149.1G       root  disk  brw-rw----         0    512      0     512     512    1 cfq       128 part        0        0B       0B         0    0B        1 sda                           
  ├─vgfirstdisk-lvdebroot  dm-0  254:0          /                                                           128  0  0                            15G runni root  disk  brw-rw----         0    512      0     512     512    1           128 lvm         0        0B       0B         0    0B        0 sda1                          
  ├─vgfirstdisk-lvboot     dm-1  254:1          /boot                                                       128  0  0                           256M runni root  disk  brw-rw----         0    512      0     512     512    1           128 lvm         0        0B       0B         0    0B        0 sda1                          
  ├─vgfirstdisk-lvmintroot dm-2  254:2                                                                      128  0  0                            15G runni root  disk  brw-rw----         0    512      0     512     512    1           128 lvm         0        0B       0B         0    0B        0 sda1                          
  ├─vgfirstdisk-lvswap     dm-3  254:3          [SWAP]                                                      128  0  0                             2G runni root  disk  brw-rw----         0    512      0     512     512    1           128 lvm         0        0B       0B         0    0B        0 sda1                          
  └─vgfirstdisk-lvhome     dm-4  254:4          /home                                                       128  0  0                         116.8G runni root  disk  brw-rw----         0    512      0     512     512    1           128 lvm         0        0B       0B         0    0B        0 sda1                          
sr0                        sr0    11:0                                                                      128  0  1 DVDRAM GSA-4083N         1024M runni root  cdrom brw-rw----         0    512      0     512     512    1 cfq       128 rom         0        0B       0B         0    0B        1        4:0:0:0    ata    1.00 HL-DT-ST
It's entirely unhelpful to see there are no ids associated ... I mentioned in OP I had no idea what the lvmid was or how to check it. I assumed, seemingly incorrectly, that it was similar (if not the same) as the UUID. I just checked /dev/disk/by-uuid and here's what I see:

Code:
~$ ls -al /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 140 Mar  8 15:39 .
drwxr-xr-x 4 root root  80 Mar  8 15:39 ..
lrwxrwxrwx 1 root root  10 Mar  8 15:39 01400909-8761-4459-92f3-647b95898d60 -> ../../dm-3
lrwxrwxrwx 1 root root  10 Mar  8 15:39 38c465e2-fc57-49d3-bd30-7036e0ae1b05 -> ../../dm-1
lrwxrwxrwx 1 root root  10 Mar  8 15:39 640bf412-c214-437b-9193-0bfbf64b143d -> ../../dm-4
lrwxrwxrwx 1 root root  10 Mar  8 15:39 923e35a1-f5dc-4216-9c9a-8f78d69facce -> ../../dm-0
lrwxrwxrwx 1 root root  10 Mar  8 15:39 ef8591cf-670a-425b-9916-f2ea59d6753c -> ../../dm-2
So as you can see, the debian lv uuid (or lvmid I guess) is "923e35a1-f5dc-4216-9c9a-8f78d69facce" and mint's is "ef8591cf-670a-425b-9916-f2ea59d6753c" which looks to be called correctly in the grub.cfg.

When mounting manually, as in setting up a chroot or just to give me access to the files? If preparing a chroot, I'll "mount /dev/vgfirstdisk-lvmintroot /mnt/mint" then bind the sys, proc, and dev to the mint's corresponding locations (see here, I prepare my chroot the same way). If just to give me access to the files I'll "mount /dev/vgfirstdisk-lvmintroot /mount/mint" or something similar.

Quote:
Originally Posted by syg00 View Post
Excellent - too many want to use the same user.

grub-mkconfig will call os-prober if it is present to look for other systems. All scripts, so you can look at them if you wish. Finding the Mint release details is easy - just look (from jessie) in /dev/mapper/vgfirstdisk-lvmintroot/etc. But I'm betting there is nothing in /dev/mapper/vgfirstdisk-lvmintroot/boot as you over-mounted /boot during the Mint install.
osprober will look (from jessie) for /dev/mapper/vgfirstdisk-lvmintroot/boot - if nothing there, ignore the partition/lv for parsing. I only had a quick look, so can't state categorically that's what happens.
So, this whole debacle can be explained by having mint and debian sharing /boot? Ok, without reinstalling is there anything I can do to populate /boot within mint's and debian's respective root dirs with whatever files need to be there? If I can do that, I can then remove the /boot lv and add that to my /home lv (that part is simple enough, and one of the reasons I'm using lvm).
 
Old 03-10-2015, 06:14 PM   #8
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Regarding repopulating the /boot dirs of each OS, I copied the contents of my boot partition to a directory in my /home dir. I then unmounted boot partition, copied the contents to debian's /boot, and removed the contents pertaining to mint. I then prepared a chroot for mint at /mnt/ then copied the contents of the boot partition to /mnt/boot/ as well, but removing the kernel stuff for debian. I then ran update-grub in jessie, which gave this:

Code:
dra:~$ sudo update-grub
[sudo] password for dra: 
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
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.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+_multiboot.bin
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Found Linux Mint 17.1 Rebecca (17.1) on /dev/mapper/vgfirstdisk-lvmintroot
done
Looks right, right? Well the grub.cfg is still borked. I get how sharing a /boot directory/partition will confuse things and break stuff, but now that there is separation where it needs to be and it's still messed up, idk what happened. I'm going to try chrooting from a live mint usb and see if I can get grub working from mint.
 
Old 03-11-2015, 09:46 AM   #9
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Another update.

My previous post detailed grub-mkconfig not finding things properly in jessie. I booted a live usb for mint, chrooted into my mint install which has it's own /boot now, and reinstalled grub from within mint and ran grub-mkconfig and it found everything fine. I figured since mint's /boot was setup right now I could go back to jessie and see if it would see mint properly, but it didn't.

So something with grub in debian (both jessie and wheezy it seems) doesn't play nicely with dualboot. Where do I go from here?

Last edited by slacker_; 03-11-2015 at 11:46 PM.
 
Old 03-11-2015, 07:49 PM   #10
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I beg to differ with the idea that Wheezy and Jessie have a problem with multi booting, let alone dual booting.

I have 8 installs on my internal drives all, like yours, Debian based. These are installed using the MSDos partition table and with legacy mbr support enabled in my uefi "bios".

I have an external using the GPT and uefi bootloading from grub. Grub is being handled by a Debian testing (Jessie) OpenBox install. There are 2 other installs; Manjaro and Mageia 4.

There is no trouble booting to either the internal drives or the external drive.

Mint is running the same grub as Debian. Could be a different version but it started out in a Debian repo.

Have you tried using the Mint Grub to do your bootloading chores? Either should be able to handle this. If Mint is handling it fine and Debian isn't then Debian needs to be set up identical to the way Mint is set up for grub.
 
Old 03-11-2015, 08:18 PM   #11
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
The reason I say wheezy and jessie have a problem dual booting is more about dual booting with mint. I've dualbooted with ubuntu, slackware, arch for a brief time, and mint. And the only one I've had a problem with is mint, so debian for some reason doesn't see mint properly.

I know they're using the same version, which is one of the reasons I can't see why they're producing such different results. Does jessie just have such a vastly different osprober or what? How do I go about fixing it so jessie's grub behaves like mint's? Could I just copy over the 30_os-prober from mint into jessie's /etc/grub.d/?

Also I noticed how both mint and jessie have 05_debian_theme, and 06_mint_theme. How did that happen?
 
Old 03-11-2015, 11:43 PM   #12
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Problem solved. I forgot to update my fstab to no longer mount /boot in jessie, which was still causing some confusion for osprober it seems. I fixed that, 'umount'ed /boot, ran grub-mkconfig again, and it generated a proper grub.cfg! WOOT! Thanks for all the help everyone!
 
Old 03-12-2015, 01:13 AM   #13
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by slacker_ View Post
Problem solved. I forgot to update my fstab to no longer mount /boot in jessie, which was still causing some confusion for osprober it seems. I fixed that, 'umount'ed /boot, ran grub-mkconfig again, and it generated a proper grub.cfg! WOOT! Thanks for all the help everyone!
Great.

Don't hurt yourself. When I do things like that I try kicking myself in the butt. Doesn't work well.
 
  


Reply

Tags
dual boot, grub, grub 2, grub config, jessie


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help installing Mint 17 in place of Mint 15 on dual boot with windows7 Gwynny Linux - Newbie 5 07-26-2014 09:58 AM
[SOLVED] Grub Error with Mint Debian over Ubuntu 12.04 with Win7 Dual Boot Grub Error Gad Linux - Newbie 8 07-01-2013 08:31 PM
Dual-boot, Grub errors, linux mint SuperMechaCow Linux - Newbie 47 11-23-2011 09:18 PM
Grub 22 error using dual boot of Win7 and Linux Mint brianste Linux - Newbie 12 12-30-2009 08:31 PM
I am getting a frozen screen once i try to load linux mint through grub in dual boot putush Linux - Newbie 2 10-25-2007 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration