PDA

View Full Version : [SOLVED] Totally Messed up my Grub with Grub Customizer - Please help.



Mahogan
October 14th, 2015, 06:10 AM
Well, I really messed things up, and am clueless how to fix it. I have a "New" dual-boot laptop with Ubuntu 14.04 LTS and Windows 7. I have another "old laptop hard drive" that has several versions of Linux, Mint, Ubuntu 8.10 and Windows, I think it is a triple boot. The "old laptop drive" I was trying to boot and get a Grub Error 17, so I was attempting to fix this by putting it in a mobile USB drive and then run the Grub Customizer to hopefully fix the grub menu of the "old laptop drive". Well, it seems to have taken the entries of the "old laptop drive" and Over Written my "New" drive with a whole bunch of junk entries and now I cannot get into Ubuntu 14 on this drive.

At this point, I do not care about fixing my old drive. I just want my new menu to be fixed so that I can dual boot UB 14.04 and Win7. Please help.

Can I manually edit the grub.cfg file to remove the garbage that does not apply to may actual dual boot according to what gparted displays? If so, can I get this info from gparted?

264935

I can currently get into Windows 7, but Ubuntu 14.04 LTS is missing and all the other Mint and UB 8.10, is not even on this drive.

Here is what my current grub.cfg with the garbage reads:


#
# 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_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 efb684f3-7a8e-4856-9946-37ad9b0f2bda
else
search --no-floppy --fs-uuid --set=root efb684f3-7a8e-4856-9946-37ad9b0f2bda
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
if background_color 44,0,30,0; then
clear
fi
### END /etc/grub.d/05_debian_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_proxy ###


set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
menuentry "Seven" --class windows --class os $menuentry_id_option 'osprober-efi-943A-4686' {
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 943A-4686
else
search --no-floppy --fs-uuid --set=root 943A-4686
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "Ubuntu 8.10 (8.10) (on /dev/sdb6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-b251fdf9-bb35-43dd-9005-78b564f49780' {
insmod part_msdos
insmod ext2
set root='hd1,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6 b251fdf9-bb35-43dd-9005-78b564f49780
else
search --no-floppy --fs-uuid --set=root b251fdf9-bb35-43dd-9005-78b564f49780
fi
linux /boot/vmlinuz-2.6.27-7-generic root=UUID=b251fdf9-bb35-43dd-9005-78b564f49780 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
}
menuentry "Linux Mint 6 Felicia - Main Edition (6) (on /dev/sdb1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-db7c896e-69f8-46c0-83d7-4affc7b6aa36' {
insmod part_msdos
insmod ext2
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 db7c896e-69f8-46c0-83d7-4affc7b6aa36
else
search --no-floppy --fs-uuid --set=root db7c896e-69f8-46c0-83d7-4affc7b6aa36
fi
linux /boot/vmlinuz-2.6.27-7-generic root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
}
submenu "Advanced options for Linux Mint 6 Felicia - Main Edition (6) (on /dev/sdb1)"{
menuentry "Linux Mint 6, kernel 2.6.27-7-generic (on /dev/sdb1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.27-7-generic--db7c896e-69f8-46c0-83d7-4affc7b6aa36' {
insmod part_msdos
insmod ext2
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 db7c896e-69f8-46c0-83d7-4affc7b6aa36
else
search --no-floppy --fs-uuid --set=root db7c896e-69f8-46c0-83d7-4affc7b6aa36
fi
linux /boot/vmlinuz-2.6.27-7-generic root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
}
menuentry "Linux Mint 6, kernel 2.6.27-7-generic (recovery mode) (on /dev/sdb1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.27-7-generic-root=/dev/sda1 ro single-db7c896e-69f8-46c0-83d7-4affc7b6aa36' {
insmod part_msdos
insmod ext2
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 db7c896e-69f8-46c0-83d7-4affc7b6aa36
else
search --no-floppy --fs-uuid --set=root db7c896e-69f8-46c0-83d7-4affc7b6aa36
fi
linux /boot/vmlinuz-2.6.27-7-generic root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.27-7-generic
}
menuentry "Linux Mint 6, memtest86+ (on /dev/sdb1)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/memtest86+.bin--db7c896e-69f8-46c0-83d7-4affc7b6aa36' {
insmod part_msdos
insmod ext2
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 db7c896e-69f8-46c0-83d7-4affc7b6aa36
else
search --no-floppy --fs-uuid --set=root db7c896e-69f8-46c0-83d7-4affc7b6aa36
fi
linux /boot/memtest86+.bin
}
}
submenu "Advanced options for Ubuntu 8.10 (8.10) (on /dev/sdb6)"{
menuentry "Ubuntu" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-efb684f3-7a8e-4856-9946-37ad9b0f2bda' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 efb684f3-7a8e-4856-9946-37ad9b0f2bda
else
search --no-floppy --fs-uuid --set=root efb684f3-7a8e-4856-9946-37ad9b0f2bda
fi
linux /boot/vmlinuz-3.19.0-28-generic.efi.signed root=UUID=efb684f3-7a8e-4856-9946-37ad9b0f2bda ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.19.0-28-generic
}
menuentry "Ubuntu 8.10, kernel 2.6.27-7-generic (on /dev/sdb6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.27-7-generic--b251fdf9-bb35-43dd-9005-78b564f49780' {
insmod part_msdos
insmod ext2
set root='hd1,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6 b251fdf9-bb35-43dd-9005-78b564f49780
else
search --no-floppy --fs-uuid --set=root b251fdf9-bb35-43dd-9005-78b564f49780
fi
linux /boot/vmlinuz-2.6.27-7-generic root=UUID=b251fdf9-bb35-43dd-9005-78b564f49780 ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
}
menuentry "Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode) (on /dev/sdb6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.27-7-generic-root=UUID=b251fdf9-bb35-43dd-9005-78b564f49780 ro single-b251fdf9-bb35-43dd-9005-78b564f49780' {
insmod part_msdos
insmod ext2
set root='hd1,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6 b251fdf9-bb35-43dd-9005-78b564f49780
else
search --no-floppy --fs-uuid --set=root b251fdf9-bb35-43dd-9005-78b564f49780
fi
linux /boot/vmlinuz-2.6.27-7-generic root=UUID=b251fdf9-bb35-43dd-9005-78b564f49780 ro single
initrd /boot/initrd.img-2.6.27-7-generic
}
menuentry "Ubuntu 8.10, memtest86+ (on /dev/sdb6)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/memtest86+.bin--b251fdf9-bb35-43dd-9005-78b564f49780' {
insmod part_msdos
insmod ext2
set root='hd1,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6 b251fdf9-bb35-43dd-9005-78b564f49780
else
search --no-floppy --fs-uuid --set=root b251fdf9-bb35-43dd-9005-78b564f49780
fi
linux /boot/memtest86+.bin
}
}
### END /etc/grub.d/30_os-prober_proxy ###

### BEGIN /etc/grub.d/33_linux_proxy ###
submenu "Advanced options for Ubuntu"{
menuentry "Ubuntu, with Linux 3.19.0-28-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-28-generic-advanced-efb684f3-7a8e-4856-9946-37ad9b0f2bda' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 efb684f3-7a8e-4856-9946-37ad9b0f2bda
else
search --no-floppy --fs-uuid --set=root efb684f3-7a8e-4856-9946-37ad9b0f2bda
fi
echo 'Loading Linux 3.19.0-28-generic ...'
linux /boot/vmlinuz-3.19.0-28-generic.efi.signed root=UUID=efb684f3-7a8e-4856-9946-37ad9b0f2bda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-28-generic
}
menuentry "Ubuntu, with Linux 3.19.0-28-generic (upstart)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-28-generic-init-upstart-efb684f3-7a8e-4856-9946-37ad9b0f2bda' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 efb684f3-7a8e-4856-9946-37ad9b0f2bda
else
search --no-floppy --fs-uuid --set=root efb684f3-7a8e-4856-9946-37ad9b0f2bda
fi
echo 'Loading Linux 3.19.0-28-generic ...'
linux /boot/vmlinuz-3.19.0-28-generic.efi.signed root=UUID=efb684f3-7a8e-4856-9946-37ad9b0f2bda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-28-generic
}
menuentry "Ubuntu, with Linux 3.19.0-28-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-28-generic-recovery-efb684f3-7a8e-4856-9946-37ad9b0f2bda' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 efb684f3-7a8e-4856-9946-37ad9b0f2bda
else
search --no-floppy --fs-uuid --set=root efb684f3-7a8e-4856-9946-37ad9b0f2bda
fi
echo 'Loading Linux 3.19.0-28-generic ...'
linux /boot/vmlinuz-3.19.0-28-generic.efi.signed root=UUID=efb684f3-7a8e-4856-9946-37ad9b0f2bda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-28-generic
}
menuentry "Ubuntu, with Linux 3.19.0-15-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-advanced-efb684f3-7a8e-4856-9946-37ad9b0f2bda' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 efb684f3-7a8e-4856-9946-37ad9b0f2bda
else
search --no-floppy --fs-uuid --set=root efb684f3-7a8e-4856-9946-37ad9b0f2bda
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=efb684f3-7a8e-4856-9946-37ad9b0f2bda ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
menuentry "Ubuntu, with Linux 3.19.0-15-generic (upstart)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-init-upstart-efb684f3-7a8e-4856-9946-37ad9b0f2bda' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 efb684f3-7a8e-4856-9946-37ad9b0f2bda
else
search --no-floppy --fs-uuid --set=root efb684f3-7a8e-4856-9946-37ad9b0f2bda
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=efb684f3-7a8e-4856-9946-37ad9b0f2bda ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
menuentry "Ubuntu, with Linux 3.19.0-15-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-recovery-efb684f3-7a8e-4856-9946-37ad9b0f2bda' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 efb684f3-7a8e-4856-9946-37ad9b0f2bda
else
search --no-floppy --fs-uuid --set=root efb684f3-7a8e-4856-9946-37ad9b0f2bda
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=efb684f3-7a8e-4856-9946-37ad9b0f2bda ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
}
### END /etc/grub.d/33_linux_proxy ###

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

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

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

### BEGIN /etc/grub.d/36_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/36_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 ###

ajgreeny
October 14th, 2015, 11:18 AM
I think you need to follow the Boot-Repair link in my signature and run the Boot-info script contained in that, but without the old HDD attached, of course. Report back here with the pastebin link that you get and it should help get you back up and running.

Running the Default-Repair option may work for you, but it is probably best to let us see the report first.

grahammechanical
October 14th, 2015, 12:18 PM
Older versions of Ubuntu used Grub legacy. Newer versions of Ubuntu use Grub 2. The layout of the configuration files for the old and new versions of Grub is different. Combining the two produces the garbbage. This issue was common a few years ago when Ubuntu changed over from Grub legacy to Grub 2 for anyone who had old and new versions of Ubuntu installed.

Can you load into Ubuntu 8.10? You should be able to load into 14.04. There are entries for it in the configuration file. It is hidden in one of the Advanced Options for Ubuntu sub-menus. Possibly the 8.10 Advanced Options Sub-menu. Look for Ubuntu, with Linux 3.19.0-28-generic. That will be the Linux kernel used in 14.04. It will load from sda 4.

Look for set root=

set root= 'hdo, gprt4' means the first hard disk and partition 4. Grub uses hd instead of sd. You will also see that Ubuntu 8.10 has set root= 'hd1, msdos6' and Mint has set root= hd1, msdos 1' They are on the second hard disk in partitions 6 and 1. gpt and msdos refer to the partiton table used in each disc. Do not get confused about those labels.

If you get into Ubuntu 14.04 run


sudo install-grub /dev/sda
sudo update-grub

Watch the printout. The boot menu will still have gabbage as long as that second hard disk is connected and you want to access the OSes on it. But Ubuntu 14.04 should be at the top of the list. Once you remove that second hard disk then load into 14.04 and run those two commands again and the garbbage will be removed from the boot menu.

Regards

oldfred
October 14th, 2015, 04:26 PM
Grub error 17 is from grub legacy.

And your drive looks like a new UEFI system.

I would use Boot-Repair and run a full uninstall/reinstall of grub. Be sure to boot Boot-repair in UEFI mode. Grub Customizer changes not just settings but adds its own scripts which if system is not standard can lead to issues.

Mahogan
October 14th, 2015, 04:31 PM
Thank you both for the reply and the input. I will be making a boot repair disk, but am short on time so first opted for the quickest option, but hit a bump.

@grahammechanical - I thought your option seemed easy. and your right, I was able to get into Ubuntu 14.04 from the Linux 3.19.0-28 generic. So I opened a terminal and get this error: sudo: install-grub: command not found

Suggestions?

yancek
October 14th, 2015, 05:39 PM
So I opened a terminal and get this error: sudo: install-grub: command not found

Backwards, try sudo grub-install /dev/sda (change sda if that is not the drive you want).

Mahogan
October 14th, 2015, 05:57 PM
@yancek - Yes, that was it. I typed: sudo grub-install /dev/sda and then it worked.

So I rebooted and it deleted most of the garbage entries. I went back into grub customizer (without the old drive) and then customized as needed and it is all better.

For my old drive, I will just remove the new drive and install that only and then try the Boot Repair method that ajgreeney suggested. Will post my results of that at the end of day.

yancek
October 14th, 2015, 10:17 PM
Glad you got it even with my mis-spelling! Changed it.

Mahogan
October 15th, 2015, 03:51 AM
Ok, so I put my old hard drive back in my old laptop computer booted from the drive and get Grub Error 17. Then ran the Boot Startup Repair from a CD. Here is the result:

http://paste.ubuntu.com/12785646/

Not sure what to do now?

oldfred
October 15th, 2015, 04:27 AM
It looks like everything on that drive is obsolete.
Boot-Repair does not fix grub legacy issues, and only newer installs have grub2 to update to.

http://members.iinet.net.au/~herman546/p15.html#17

17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.


You may have corruption or other issues with the Linux partition(s). You could try fsck, but I do not know if it will work on your old system ok or not.

Mahogan
October 15th, 2015, 04:37 AM
@oldfred - Yes, it is an old setup. I wanted to get the Windows and Ubuntu bootable if possible. I think the problem with this is that I had a working Win & UB dual boot setup working and one time I got the bright idea to install Mint as well, that is when it all went wrong about the time I got a new computer and I just walked away from this one.

No familiar with fsck, but found this: http://ubuntuforums.org/showthread.php?t=1508294

Any suggestions/how-tos for my drive?

So, I tried this and here is the result:

lubuntu@lubuntu:~$ sudo e2fsck -C0 -p -f -v /dev/sda1

103116 inodes used (31.47%, out of 327680)
100 non-contiguous files (0.1%)
68 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 4571/37/0
602110 blocks used (47.07%, out of 1279175)
0 bad blocks
1 large file

78084 regular files
11742 directories
69 character device files
26 block device files
2 fifos
78 links
13173 symbolic links (12463 fast symbolic links)
11 sockets
------------
103185 files
lubuntu@lubuntu:~$

oldfred
October 15th, 2015, 04:46 AM
That thread is older, but I was about to post the essentially the same instructions.

#From liveDVD/Flash so everything is unmounted,swap off if necessary, change example shown with partition sdb1 to your partition(s) which are sda1 , sda6 & sda7 or sdb1, etc if mounted externally?
#e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p trys fixes where response not required
sudo e2fsck -C0 -p -f -v /dev/sdb1
#if errors: -y auto answers yes for fixes needing response, also see man e2fsck
sudo e2fsck -f -y -v /dev/sdb1

For NTFS on sda3, you need to move boot flag to sda3 using gparted. Grub does not use boot flag, but Windows has to have it to repair sda3.
But you need a Windows repairCD or install disk to run chkdsk on it if needed.

Your grub legacy says it is trying to boot from sda3 which is your Windows partition, so not configured correctly. You may be able to repair grub legacy if you have the old install CD?

Mahogan
October 15th, 2015, 05:04 AM
@oldfred -- I ran e2fsck and it gives me the same result as I posted above. Then rebooted and same error 17. I have an Ubuntu 8.10 disc. Not sure how to repair it with that.

Mahogan
October 15th, 2015, 07:03 AM
Well, I loaded Ubuntu 8.10 CD and tried this:

sudo mount /dev/sda6 /mnt
sudo grub-install --root-directory=/mnt --recheck /dev/sda
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt
apt-get install grub
update-grub
cat /boot/grub/menu.lst
exit


Now I can get past the error 17 and it will display the menu with Ubuntu 8.10 and Mint etc. No windows. I can get a load screen for Kubuntu and Mint when choosing the options, but they both hang.

Not sure where to go from here.

oldfred
October 15th, 2015, 02:49 PM
While sometimes script misses files, your sda3 NTFS partition shows no boot files like bootmgr & /boot/BCD. So then grub would not have found anything to boot. And sda3 starts at sector 63 meaning it was at one time sda1 and still is first partition on drive.

If you remove the quiet splash on linux line does it show booting and where it hangs?

Mahogan
October 15th, 2015, 08:44 PM
@oldfred -- Not exactly sure how to remove the quiet splash, searched online to no result. So I did boot from the Mint 6 (recovery mode) still everything hangs. I also tried it in the UB 8.10 (recovery mode)

Here are some screen shots as I am loading, some are from UB some are from Mint. Not sure if this helps. I have 5 more, and since this limits me to 5, will write another post.

264962264963264964264965264966

Mahogan
October 15th, 2015, 08:47 PM
Here are the next 5 screenshots.

264967264968264969264970264971

At this point, none of these make any sense to me. So, being frustrated with it, I am ready to call it quits on trying to salvage this. I thought it would be an easy fix. So in order to bring my old laptop back to life, I may just wipe the drive and install UB 14.04 LTS.

oldfred
October 15th, 2015, 09:08 PM
What video card/chip?

How old is hardware? Lubuntu may be better if system is older and has little RAM or older video.

Mahogan
October 15th, 2015, 09:24 PM
@oldfred -- It is an Acer 5050 - with a graphics: ATI Radeon Xpress 1100. I have since upgraded the ram to 3gb and might have the ability to upgrade it to 4gb. I have also upgraded the processor to a Turion Dual Core (don't recall the exact specs)

Here is the default specs.

http://www.cnet.com/products/acer-aspire-5050-4570-turion-64-2-2ghz-1gb-ram-120gb-hdd-vista-home-premium/specs/

I have not tried Lubuntu, will have to do some investigation.

oldfred
October 15th, 2015, 09:51 PM
I do not know ATI other than AMD obsoleted many cards, so current closed source driver cannot be used.
AMD drivers alternatives
http://ubuntuforums.org/showthread.php?t=2256824
https://help.ubuntu.com/community/RadeonDriver

yancek
October 16th, 2015, 12:33 AM
In post 16, the 5th (last) image, what happens if you type startx there?

The method I always use with Grub Legacy should work for you with the Ubuntu 8.10 CD. Boot it then open a terminal to get to the grub prompt.

Type: sudo grub You should then see the grub prompt: grub>
From there type: root (hd0,5) then hit the Enter key,
on the next line type: setup (hd0) hit the Enter key.
I'm not sure if you need sudo before the two lines above as I've never used Grub Legacy on Ubuntu. You should get an error message if you do.
You should see some output after these commands and success if it works. Type quit and hit enter again. If you get error messages, post them.

I'm not sure how this happened but, if you look at the very beginning of the bootinfoscript you will see Grub in the MBR looking at sda3 for boot files. That's a windows partition and definitely won't work. If you look further down, you see the menu.lst file for Ubuntu on sda6 which has correct entries for it and Mint on the first partition.

If you are able to boot, you can enter the menu.lst file as root and add an entry for windows to be chainloaded if you want to try this.


title vista
rootnoverify (hd0,2)
chainloader +1

I doubt it will work, as oldfred indicated there are apparently no boot files on the windows partition.

Mahogan
October 16th, 2015, 04:01 AM
@yancek -- Thanks for the suggestions. I tried getting to the same place as in the photo you mentioned, but cannot, not sure why. Then when running a live CD 8.10, it crashes at the load bar screen where the load bar gets garbled. Next, download a new copy and burned a new CD and it does the same thing. So I put in a different hard drive with an old version of Xubuntu and tried the CD and it does the same thing. Then I tried UB 14.04 from a jump drive and it loads just fine. On this other drive, I installed UB 14.04 and this computer runs just fine. Its not super fast, but definitely works good. Now with all the trouble I have had with the old hard drive, I may just wipe it and be done! Argh! But will probably try Lubuntu as OldFred suggested to compare against the full version of UB 14.04 to see the performance differences. Although I really love UB 14.04!

At any rate, thank you all for your patience with this thread and for all your great help and suggestions!

yancek
October 16th, 2015, 04:47 AM
My suggestions in the last post were only in regard to your old drive on which you had Ubuntu 8.10 and Mint 6, both of which still used Grub Legacy. If you have newer Ubuntu or derivatives, none of the recommendations regarding Grub will apply.