LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-21-2016, 09:44 AM   #1
martinak3
LQ Newbie
 
Registered: Aug 2016
Posts: 6

Rep: Reputation: Disabled
grub rescue> question


I would appreciate any suggestion as to how to proceed here. I have gone as far as I know how without screwing up. Thanks in advance!


My linux Mint 17 Cinnamon has run into a grub rescue> situation after trying to play a video online.

The ls command produces the following:

(hd0), (hd0,msdos3), (hd0,msdos2), (hd0,msdos1), (hd1), (hd1,msdos2) and (hd1,msdos1)

I tested all 7 possibilities with the commands recommended online
set boot= (hdX,Y)/boot/grub
set prefix= (hdX,Y)/boot/grub
insmod normal
normal

6 of them resulted in "error: unknown filesystem" BUT the (hd0,msdos3) showed "error: file boot/grub/i386-pc/normal.mod not found".

After booting with the original Linux Mint 17 "Qiana" - Cinnamon (64-bit)
installation CD, Gparted shows this:

/dev/sda1 - unknown - boot (about 28Gb)
/dev/sda2 - linux-swap (about 9.5 Gb)
/dev/sda3 - ext4 (about 112 Gb)
and a message 'unable to detect file system" and listing possible reasons.
Personal data is all there.


Looking at this drive with Gparted on my other Mint 17 system, I get similar result,
only the the partitions are called /dev/sdb1 through 3.

QUESTION:
Which of the drive/partition names do I need to use in the commands
set boot= (hdX,Y)/boot/grub and
set prefix= (hdX,Y)/boot/grub
etc....?

What else should I do?


Bootinfoscript Results.txt is included in my next post "grub rescue> question part 2"


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

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
13507584 of the same hard drive for core.img, but core.img can not be
found at this location.
=> 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 112 for .

sda1: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 17 Qiana
Boot files: /boot/grub/grub.cfg /etc/fstab

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sda4 starts
at sector 0. But according to the info from fdisk,
sda4 starts at sector 46716928.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi /efi/ubuntu/MokManager.efi
/efi/ubuntu/shimx64.efi

sdb1: __________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sdb2: __________________________________________________________________________

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

sdb3: __________________________________________________________________________

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

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 234,441,647 234,441,647 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 46,701,266 46,699,219 Data partition (Linux)
/dev/sda2 46,815,232 234,440,703 187,625,472 Data partition (Linux)
/dev/sda3 46,702,592 46,716,927 14,336 Swap partition (Linux)
/dev/sda4 46,716,928 46,815,231 98,304 EFI System partition

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 2,048 60,000,255 59,998,208 83 Linux
/dev/sdb2 60,000,256 80,001,023 20,000,768 82 Linux swap / Solaris
/dev/sdb3 80,001,024 312,580,095 232,579,072 83 Linux


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 63a6db40-aabd-456d-a595-e8ef75e68565 ext4
/dev/sda2 7e4a63b3-b698-489f-9ee2-9c7a859be888 ext4
/dev/sda3 2b9c8fff-9500-4c75-be8f-305b96bb4321 swap
/dev/sda4 384E-FB82 vfat
/dev/sdb2 a34ef38f-846f-43a5-9ccf-d1f24c314c9a swap
/dev/sdb3 84ea9d51-ceb2-4cc0-9749-4662ea764fac ext4

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro)
/dev/sda2 /media/georgina/7e4a63b3-b698-489f-9ee2-9c7a859be888 ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sda4 /boot/efi vfat (rw)
/dev/sdb3 /media/georgina/84ea9d51-ceb2-4cc0-9749-4662ea764fac ext4 (rw,nosuid,nodev,uhelper=udisks2)


=========================== sda1/boot/grub/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 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,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 63a6db40-aabd-456d-a595-e8ef75e68565
else
search --no-floppy --fs-uuid --set=root 63a6db40-aabd-456d-a595-e8ef75e68565
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=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###

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

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

### BEGIN /etc/grub.d/10_linux ###
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
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 17 Cinnamon 64-bit, 3.13.0-24-generic (/dev/sda1)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 63a6db40-aabd-456d-a595-e8ef75e68565
else
search --no-floppy --fs-uuid --set=root 63a6db40-aabd-456d-a595-e8ef75e68565
fi
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=63a6db40-aabd-456d-a595-e8ef75e68565 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-24-generic
}
menuentry 'Linux Mint 17 Cinnamon 64-bit, 3.13.0-24-generic (/dev/sda1) -- recovery mode' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
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 63a6db40-aabd-456d-a595-e8ef75e68565
else
search --no-floppy --fs-uuid --set=root 63a6db40-aabd-456d-a595-e8ef75e68565
fi
echo 'Loading Linux 3.13.0-24-generic ...'
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=63a6db40-aabd-456d-a595-e8ef75e68565 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-generic
}
### END /etc/grub.d/10_linux ###

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

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

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

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

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

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

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sde1 during installation
UUID=63a6db40-aabd-456d-a595-e8ef75e68565 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sde4 during installation
UUID=384E-FB82 /boot/efi vfat defaults 0 1
# swap was on /dev/sde3 during installation
UUID=2b9c8fff-9500-4c75-be8f-305b96bb4321 none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda1: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)


========= Devices which don't seem to have a corresponding hard drive: =========

sdc sdd sde sdf

=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-wzcyeacp/Tmp_Log: No such file or directory
No volume groups found











I would appreciate any suggestion as to how to proceed here. I have gone as far as I know how without screwing up. Thanks in advance!


My linux Mint 17 Cinnamon has run into a grub rescue> situation after trying to play a video online.

The ls command produces the following:

(hd0), (hd0,msdos3), (hd0,msdos2), (hd0,msdos1), (hd1), (hd1,msdos2) and (hd1,msdos1)

I tested all 7 possibilities with the commands recommended online
set boot= (hdX,Y)/boot/grub
set prefix= (hdX,Y)/boot/grub
insmod normal
normal

6 of them resulted in "error: unknown filesystem" BUT the (hd0,msdos3) showed "error: file boot/grub/i386-pc/normal.mod not found".

After booting with the original Linux Mint 17 "Qiana" - Cinnamon (64-bit)
installation CD, Gparted shows this:

/dev/sda1 - unknown - boot (about 28Gb)
/dev/sda2 - linux-swap (about 9.5 Gb)
/dev/sda3 - ext4 (about 112 Gb)
and a message 'unable to detect file system" and listing possible reasons.
Personal data is all there.


Looking at this drive with Gparted on my other Mint 17 system, I get similar result,
only the the partitions are called /dev/sdb1 through 3.

QUESTION:
Which of the drive/partition names do I need to use in the commands
set boot= (hdX,Y)/boot/grub and
set prefix= (hdX,Y)/boot/grub
etc....?

What else should I do?


Bootinfoscript Results.txt:

Boot Info Script 0.61


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

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
13507584 of the same hard drive for core.img, but core.img can not be
found at this location.
=> 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 112 for .

sda1: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 17 Qiana
Boot files: /boot/grub/grub.cfg /etc/fstab

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sda4 starts
at sector 0. But according to the info from fdisk,
sda4 starts at sector 46716928.
Operating System:
Boot files: /efi/ubuntu/grubx64.efi /efi/ubuntu/MokManager.efi
/efi/ubuntu/shimx64.efi

sdb1: __________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sdb2: __________________________________________________________________________

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

sdb3: __________________________________________________________________________

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

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 234,441,647 234,441,647 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 46,701,266 46,699,219 Data partition (Linux)
/dev/sda2 46,815,232 234,440,703 187,625,472 Data partition (Linux)
/dev/sda3 46,702,592 46,716,927 14,336 Swap partition (Linux)
/dev/sda4 46,716,928 46,815,231 98,304 EFI System partition

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 2,048 60,000,255 59,998,208 83 Linux
/dev/sdb2 60,000,256 80,001,023 20,000,768 82 Linux swap / Solaris
/dev/sdb3 80,001,024 312,580,095 232,579,072 83 Linux


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 63a6db40-aabd-456d-a595-e8ef75e68565 ext4
/dev/sda2 7e4a63b3-b698-489f-9ee2-9c7a859be888 ext4
/dev/sda3 2b9c8fff-9500-4c75-be8f-305b96bb4321 swap
/dev/sda4 384E-FB82 vfat
/dev/sdb2 a34ef38f-846f-43a5-9ccf-d1f24c314c9a swap
/dev/sdb3 84ea9d51-ceb2-4cc0-9749-4662ea764fac ext4

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro)
/dev/sda2 /media/georgina/7e4a63b3-b698-489f-9ee2-9c7a859be888 ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sda4 /boot/efi vfat (rw)
/dev/sdb3 /media/georgina/84ea9d51-ceb2-4cc0-9749-4662ea764fac ext4 (rw,nosuid,nodev,uhelper=udisks2)


=========================== sda1/boot/grub/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 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,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 63a6db40-aabd-456d-a595-e8ef75e68565
else
search --no-floppy --fs-uuid --set=root 63a6db40-aabd-456d-a595-e8ef75e68565
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=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###

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

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

### BEGIN /etc/grub.d/10_linux ###
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
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 17 Cinnamon 64-bit, 3.13.0-24-generic (/dev/sda1)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
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 63a6db40-aabd-456d-a595-e8ef75e68565
else
search --no-floppy --fs-uuid --set=root 63a6db40-aabd-456d-a595-e8ef75e68565
fi
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=63a6db40-aabd-456d-a595-e8ef75e68565 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-24-generic
}
menuentry 'Linux Mint 17 Cinnamon 64-bit, 3.13.0-24-generic (/dev/sda1) -- recovery mode' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
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 63a6db40-aabd-456d-a595-e8ef75e68565
else
search --no-floppy --fs-uuid --set=root 63a6db40-aabd-456d-a595-e8ef75e68565
fi
echo 'Loading Linux 3.13.0-24-generic ...'
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=63a6db40-aabd-456d-a595-e8ef75e68565 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-24-generic
}
### END /etc/grub.d/10_linux ###

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

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

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

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

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

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

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sde1 during installation
UUID=63a6db40-aabd-456d-a595-e8ef75e68565 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sde4 during installation
UUID=384E-FB82 /boot/efi vfat defaults 0 1
# swap was on /dev/sde3 during installation
UUID=2b9c8fff-9500-4c75-be8f-305b96bb4321 none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda1: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)


========= Devices which don't seem to have a corresponding hard drive: =========

sdc sdd sde sdf

=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-wzcyeacp/Tmp_Log: No such file or directory
No volume groups found











I would appreciate any suggestion as to how to proceed here. I have gone as far as I know how without screwing up. Thanks in advance!


My linux Mint 17 Cinnamon has run into a grub rescue> situation after trying to play a video online.

The ls command produces the following:

(hd0), (hd0,msdos3), (hd0,msdos2), (hd0,msdos1), (hd1), (hd1,msdos2) and (hd1,msdos1)

I tested all 7 possibilities with the commands recommended online
set boot= (hdX,Y)/boot/grub
set prefix= (hdX,Y)/boot/grub
insmod normal
normal

6 of them resulted in "error: unknown filesystem" BUT the (hd0,msdos3) showed "error: file boot/grub/i386-pc/normal.mod not found".

After booting with the original Linux Mint 17 "Qiana" - Cinnamon (64-bit)
installation CD, Gparted shows this:

/dev/sda1 - unknown - boot (about 28Gb)
/dev/sda2 - linux-swap (about 9.5 Gb)
/dev/sda3 - ext4 (about 112 Gb)
and a message 'unable to detect file system" and listing possible reasons.
Personal data is all there.


Looking at this drive with Gparted on my other Mint 17 system, I get similar result,
only the the partitions are called /dev/sdb1 through 3.

QUESTION:
Which of the drive/partition names do I need to use in the commands
set boot= (hdX,Y)/boot/grub and
set prefix= (hdX,Y)/boot/grub
etc....?

What else should I do?


Bootinfoscript Results.txt: is included in my second post "grub rescue> question part 2"
 
Old 08-22-2016, 04:06 PM   #2
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.1 MATE
Posts: 3,092

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Hi there.

Have you tried booting off a boot-repair-disk CD/DVD/USB (https://sourceforge.net/projects/boot-repair-cd/)? That successfully repairs the mbr/gpt/grub setup in many cases.
 
1 members found this post helpful.
Old 08-22-2016, 04:24 PM   #3
martinak3
LQ Newbie
 
Registered: Aug 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Hi there.

Have you tried booting off a boot-repair-disk CD/DVD/USB (https://sourceforge.net/projects/boot-repair-cd/)? That successfully repairs the mbr/gpt/grub setup in many cases.
No hydrurga, I have not tried that, and now I will. Thank you.
 
Old 08-23-2016, 12:29 PM   #4
martinak3
LQ Newbie
 
Registered: Aug 2016
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hydrurga -
Even before trying the boot-repair-disk, I checked the filesystem of my /dev/sda1 (boot partition) with fsck. It offered to do some changes there and I allowed it to do so. It is fixed and bootin - back to normal
Thank you for your trouble, I do appreciate the kind help.
Take care.
 
Old 08-23-2016, 01:42 PM   #5
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.1 MATE
Posts: 3,092

Rep: Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066Reputation: 1066
Quote:
Originally Posted by martinak3 View Post
Hydrurga -
Even before trying the boot-repair-disk, I checked the filesystem of my /dev/sda1 (boot partition) with fsck. It offered to do some changes there and I allowed it to do so. It is fixed and bootin - back to normal
Thank you for your trouble, I do appreciate the kind help.
Take care.
No problem. Glad you got it sorted!

It would be a good idea for you to consider making yourself a boot-repair-disk CD/DVD/USB anyway and keeping it around in case you need it some day. It has certainly proved very useful for me (I keep it along with all my other tools on a YUMI multi-boot USB stick).
 
1 members found this post helpful.
  


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




All times are GMT -5. The time now is 12:37 AM.

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