LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2016, 02:35 PM   #16
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,152

Rep: Reputation: Disabled

Quote:
Originally Posted by Higgsboson View Post
Yes - I did install grub to the hdd and not the partition. Then I updated grub. But for some reason it didn't work.
I'm going to look into this a little more, but like you say, it does look like I'll need a separate repair pgm to sort it out.
or try that other dudes idea first too

or just reinstall Debian again then let it actually install into where it is suppose to be, /dev/sda

but I'd use that as a last ditch option

Last edited by BW-userx; 02-13-2016 at 02:40 PM.
 
Old 02-13-2016, 02:43 PM   #17
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by colorpurple21859 View Post
what do you mean by lock up? what kind of error message or that the last line before the lock up.
The grub menu opens up and correctly identifies all the OSs.
But when I select the problem OS to boot, there's a black screen with 'Loading please wait....' and it just hangs on that message.
Grub doesn't continue to load the OS.
 
Old 02-13-2016, 02:56 PM   #18
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,152

Rep: Reputation: Disabled
Quote:
Originally Posted by Higgsboson View Post
I think you've said before you've employed this method and it works.
For some reason though, there must be some other issue in my case, as its not quite working.
I'll look into 'Boot Repair', give that a try and if that fails I'll create a live usb as I currently have jessie dvd.iso installed on the usb.

are you even booting into either one of them installs or are you on a different pc altogether?
 
Old 02-13-2016, 02:59 PM   #19
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,906

Rep: Reputation: 262Reputation: 262Reputation: 262
You didn't happen to change the boot order of the disk in the bios? I don't think the problem is grub but that the drive naming has changed somewhere? Does the linux line for /dev/sda1 have root=/dev/sd?1 or root=UUId="some number"?
 
Old 02-14-2016, 09:05 AM   #20
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by BW-userx View Post
are you even booting into either one of them installs or are you on a different pc altogether?
I can boot into all the installs except sda1. I'm using one computer.
 
Old 02-14-2016, 09:15 AM   #21
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,906

Rep: Reputation: 262Reputation: 262Reputation: 262
what distro is on /dev/sda1 and if there is quiet and/or splash in the linux line of the grub entry for /dev/sda1 delete those before booting /dev/sda1. should give some text output before hanging.
 
Old 02-14-2016, 09:17 AM   #22
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by colorpurple21859 View Post
You didn't happen to change the boot order of the disk in the bios? I don't think the problem is grub but that the drive naming has changed somewhere? Does the linux line for /dev/sda1 have root=/dev/sd?1 or root=UUId="some number"?
That's a very good point.
When I installed the OS via USB I had to change BIOS settings to boot from USB.
I think I may have changed the boot order of the disks.
I've alternated the boot order between the two disks in BIOS, and then did
Code:
grub-install /dev/sda
update-grub
But this hasn't made a change.

What is the 'linux line'?
 
Old 02-14-2016, 09:23 AM   #23
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,906

Rep: Reputation: 262Reputation: 262Reputation: 262
Quote:
I think I may have changed the boot order of the disks.
this is probably the problem. at the grub menu highlight the sda1 entry and hit the e key to edit sda grub entry. there should be a line that starts with "linux /boot/vmlinuz??? root=????"" It may be easier if you post your /boot/grub/grub.cfg entry for sda1
 
Old 02-14-2016, 09:27 AM   #24
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,906

Rep: Reputation: 262Reputation: 262Reputation: 262
This may also help to sort things out. http://bootinfoscript.sourceforge.net/ run the script and post the output but don't select the repair option.
 
Old 02-14-2016, 09:38 AM   #25
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by colorpurple21859 View Post
this is probably the problem. at the grub menu highlight the sda1 entry and hit the e key to edit sda grub entry. there should be a line that starts with "linux /boot/vmlinuz??? root=????"" It may be easier if you post your /boot/grub/grub.cfg entry for sda1
It's a really big file. Not sure which part to give so here it is in its entirety:
Code:
/boot/grub# cat grub.cfg
#
# 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 ext2
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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
else
  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
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 ext2
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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
else
  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
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-345ca57e-9947-462f-a828-be2f021e9cf3' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
	else
	  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
	fi
	echo	'Loading Linux 3.16.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=345ca57e-9947-462f-a828-be2f021e9cf3 ro  quiet radeon.audio=1
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-345ca57e-9947-462f-a828-be2f021e9cf3' {
	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-345ca57e-9947-462f-a828-be2f021e9cf3' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
		else
		  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=345ca57e-9947-462f-a828-be2f021e9cf3 ro  quiet radeon.audio=1
		echo	'Loading initial ramdisk ...'
		initrd	/boot/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-345ca57e-9947-462f-a828-be2f021e9cf3' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
		else
		  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=345ca57e-9947-462f-a828-be2f021e9cf3 ro  quiet radeon.audio=1 init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/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-345ca57e-9947-462f-a828-be2f021e9cf3' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
		else
		  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=345ca57e-9947-462f-a828-be2f021e9cf3 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	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-345ca57e-9947-462f-a828-be2f021e9cf3' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
		else
		  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=345ca57e-9947-462f-a828-be2f021e9cf3 ro  quiet radeon.audio=1
		echo	'Loading initial ramdisk ...'
		initrd	/boot/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-345ca57e-9947-462f-a828-be2f021e9cf3' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
		else
		  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=345ca57e-9947-462f-a828-be2f021e9cf3 ro  quiet radeon.audio=1 init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/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-345ca57e-9947-462f-a828-be2f021e9cf3' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
		else
		  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
		fi
		echo	'Loading Linux 3.2.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.2.0-4-amd64 root=UUID=345ca57e-9947-462f-a828-be2f021e9cf3 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/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 ext2
	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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
	else
	  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
	fi
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
	else
	  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_msdos
	insmod ext2
	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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
	else
	  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
	fi
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_msdos
	insmod ext2
	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 --hint='hd0,msdos1'  345ca57e-9947-462f-a828-be2f021e9cf3
	else
	  search --no-floppy --fs-uuid --set=root 345ca57e-9947-462f-a828-be2f021e9cf3
	fi
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux (8.1) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-c1e59da9-473d-4e25-b766-af1e4515ad3e' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2'  c1e59da9-473d-4e25-b766-af1e4515ad3e
	else
	  search --no-floppy --fs-uuid --set=root c1e59da9-473d-4e25-b766-af1e4515ad3e
	fi
	linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=c1e59da9-473d-4e25-b766-af1e4515ad3e ro quiet radeon.audio=1
	initrd /boot/initrd.img-3.2.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (8.1) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-c1e59da9-473d-4e25-b766-af1e4515ad3e' {
	menuentry 'Debian GNU/Linux (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64--c1e59da9-473d-4e25-b766-af1e4515ad3e' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2'  c1e59da9-473d-4e25-b766-af1e4515ad3e
		else
		  search --no-floppy --fs-uuid --set=root c1e59da9-473d-4e25-b766-af1e4515ad3e
		fi
		linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=c1e59da9-473d-4e25-b766-af1e4515ad3e ro quiet radeon.audio=1
		initrd /boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64--c1e59da9-473d-4e25-b766-af1e4515ad3e' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2'  c1e59da9-473d-4e25-b766-af1e4515ad3e
		else
		  search --no-floppy --fs-uuid --set=root c1e59da9-473d-4e25-b766-af1e4515ad3e
		fi
		linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=c1e59da9-473d-4e25-b766-af1e4515ad3e ro quiet radeon.audio=1
		initrd /boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64-root=UUID=c1e59da9-473d-4e25-b766-af1e4515ad3e ro single-c1e59da9-473d-4e25-b766-af1e4515ad3e' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2'  c1e59da9-473d-4e25-b766-af1e4515ad3e
		else
		  search --no-floppy --fs-uuid --set=root c1e59da9-473d-4e25-b766-af1e4515ad3e
		fi
		linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=c1e59da9-473d-4e25-b766-af1e4515ad3e ro single
		initrd /boot/initrd.img-3.2.0-4-amd64
	}
}

menuentry 'Windows 7 (loader) (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-BCC04A84C04A44BC' {
	insmod part_msdos
	insmod ntfs
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  BCC04A84C04A44BC
	else
	  search --no-floppy --fs-uuid --set=root BCC04A84C04A44BC
	fi
	parttool ${root} hidden-
	chainloader +1
}
menuentry 'Debian GNU/Linux (8.1) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-776911fe-7f88-4441-b66d-182b18178007' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 --hint='hd1,msdos2'  776911fe-7f88-4441-b66d-182b18178007
	else
	  search --no-floppy --fs-uuid --set=root 776911fe-7f88-4441-b66d-182b18178007
	fi
	linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=776911fe-7f88-4441-b66d-182b18178007 ro quiet radeon.audio=1
	initrd /boot/initrd.img-3.2.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux (8.1) (on /dev/sdb2)' $menuentry_id_option 'osprober-gnulinux-advanced-776911fe-7f88-4441-b66d-182b18178007' {
	menuentry 'Debian GNU/Linux (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64--776911fe-7f88-4441-b66d-182b18178007' {
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 --hint='hd1,msdos2'  776911fe-7f88-4441-b66d-182b18178007
		else
		  search --no-floppy --fs-uuid --set=root 776911fe-7f88-4441-b66d-182b18178007
		fi
		linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=776911fe-7f88-4441-b66d-182b18178007 ro quiet radeon.audio=1
		initrd /boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64--776911fe-7f88-4441-b66d-182b18178007' {
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 --hint='hd1,msdos2'  776911fe-7f88-4441-b66d-182b18178007
		else
		  search --no-floppy --fs-uuid --set=root 776911fe-7f88-4441-b66d-182b18178007
		fi
		linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=776911fe-7f88-4441-b66d-182b18178007 ro quiet radeon.audio=1
		initrd /boot/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64-root=UUID=776911fe-7f88-4441-b66d-182b18178007 ro single-776911fe-7f88-4441-b66d-182b18178007' {
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 --hint='hd1,msdos2'  776911fe-7f88-4441-b66d-182b18178007
		else
		  search --no-floppy --fs-uuid --set=root 776911fe-7f88-4441-b66d-182b18178007
		fi
		linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=776911fe-7f88-4441-b66d-182b18178007 ro single
		initrd /boot/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 ###
 
Old 02-14-2016, 09:46 AM   #26
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
The simplest way to get help is to run the boot repair script you have but NOT try any repairs but select the option to "Create BootInfo Summary" and post a link to that output here so that others can view it and possibly point out potential problems.
 
Old 02-14-2016, 09:59 AM   #27
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by colorpurple21859 View Post
This may also help to sort things out. http://bootinfoscript.sourceforge.net/ run the script and post the output but don't select the repair option.
I've extracted bootinfoscript but am having trouble running the pgm.
What's the command to run it?
 
Old 02-14-2016, 10:32 AM   #28
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Ok the run command is './bootinfoscript <outputfile>'.
The initial instruction on the sourceforge page is incorrect.

The results are as follows:

Code:
 Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 135 for .
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 135 for .

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda1 
                       and looks at sector 36136000 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       in partition 135 for .
    Operating System:  Debian GNU/Linux 8
    Boot files:        /boot/grub/grub.cfg /etc/fstab 
                       /boot/extlinux/extlinux.conf

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Debian GNU/Linux 8
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda8: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda9: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe /ntldr

sdb2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sdb2 
                       and looks at sector 531848880 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       in partition 135 for .
    Operating System:  Debian GNU/Linux 8
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sdb3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Debian GNU/Linux 8
    Boot files:        /boot/grub/grub.cfg /etc/fstab
There is more info such as the outputs of fdisk -l, blkid, mountpoint (root is in sda3) and then the outputs of grub.cfg in each partition.
 
Old 02-14-2016, 01:54 PM   #29
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,152

Rep: Reputation: Disabled
you could try moding both fstabs because of that last idea I read.

just commoent out the UUID and use hard code it something like this
$sudo cat /etc/fstab
Code:
#UUID=f79f684e-c079-4daa-8eb7-570890855ef9 swap swap defaults 0 0
#UUID=aa6520d6-bf65-4039-abd1-4b55bf95b551 / ext4 defaults 0 1
#UUID=cd01a154-f459-4b13-b867-1e4dbc86d677 /home ext4 defaults 0 2

/dev/sda1 swap swap defaults 0 0
/dev/sda2 / ext4 defaults 0 1
/dev/sda3 /home ext4 0 2

second partition other os same thing. 

/dev/sdb1 swap swap defaults 0 0
/dev/sdb2 / ext4 defaults 0 1
/dev/sdb3 /home ext4 0 2
if you're usind BIOS lagacy boot, that might just work, then when you get things back on track by after getting your boot order in grub situated, then in each OS do this.

Code:
sudo blkid

12:48 PM ~$ sudo blkid
/dev/mmcblk0: UUID="2015-11-10-18-13-04-00" LABEL="VOID_LIVE" TYPE="iso9660" PTUUID="467a0b70" PTTYPE="dos"
/dev/mmcblk0p1: UUID="061B-882D" TYPE="vfat" PARTUUID="467a0b70-01"
/dev/sda1: UUID="f79f684e-c079-4daa-8eb7-570890855ef9" TYPE="swap" PARTUUID="6147b2c4-01"
/dev/sda2: UUID="aa6520d6-bf65-4039-abd1-4b55bf95b551" TYPE="ext4" PARTUUID="6147b2c4-02"
/dev/sda3: UUID="cd01a154-f459-4b13-b867-1e4dbc86d677" TYPE="ext4" PARTUUID="6147b2c4-03"
/dev/sdb1: LABEL="data" UUID="8dd0fcbe-9526-428c-8760-104d7f3dde45" TYPE="ext4" PARTUUID="24f545a6-01"
that will give you your UUID's then check'em see if they are the same if yes, then I'd say its ok to just uncomment them and remove the hard code /dev/sdax or if they are endded different then remove them and put in the new ones. If you want to go back to UUID.

this is just an off the top of the head trouble shooting Idea ..

logic if the UUID's are confusing the system then the hard code should work because it is the same drive.

Last edited by BW-userx; 02-14-2016 at 01:57 PM.
 
Old 02-14-2016, 02:00 PM   #30
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Quote:
I loaded grub onto the same partition I was installing in (sdb3). I think this means the new install has overwritten the MBR.
The quote above is from your initial post. It's also incorrect. If you installed the Grub bootloader to the partition on which you installed the new version of Debian, it will never boot unless you update whichever Grub bootloader you were using. If you had the Grub from your original Debian install in the MBR of the first drive, you would have needed to boot that system and run update-grub or grub-mkconfig. I don't use Debian so I don't know which it uses.

When you run the boot repair, you should have an option to post the file to the boot repair site and put a link here to it as it gives much more detailed information. You did not indicate which grub.cfg file you are posting. The grub.cfg file you posted seems to have 4 separate Debian installs on 4 separate partitions with 4 instances of boot and Grub files.

Quote:
But when I select the problem OS to boot, there's a black screen with 'Loading please wait....' and it just hangs on that message.
The message above would indicate that what you think is sda1 is actually seen as sdb1 by whichever Grub you are using. sdb1 is a windows partition and the entry for sda1 is not going to mount and boot a windows partition with the entry for Debian. Post the entire boot repair and while you are waiting, change the boot priority in the BIOS to each drive and try booting and make a note of any errors or output.

You might also run: df -h when you boot whichever Debian you can boot to show which partition it is on.

Last edited by yancek; 02-14-2016 at 02:16 PM.
 
  


Reply


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
Installed Debian from DVD, now I can't access the drive/boot the OS? BoggyB Linux - Newbie 8 08-22-2012 08:30 AM
[SOLVED] Newly installed debian sid & saved debian wheezy home would like to transfer files EDDY1 Linux - Newbie 11 01-20-2012 08:43 PM
Installed Debian, now only a user, can't install, mount or access. Eric Elliott Debian 7 07-17-2008 01:24 AM
I installed Wine and configure this at Debian 4.0 r1.I installed windows software hassancemk Linux - Software 2 04-02-2008 12:28 AM
Dual boot Debian Etch and XP with GRUB - Debian installed First - one HDD bence8810 Debian 11 01-07-2007 11:45 AM


All times are GMT -5. The time now is 06:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration