PDA

View Full Version : UbuStudio 12.04, grub won't load



chkneater
June 16th, 2014, 10:48 PM
I have had 12.04 running for some time alongside an NTFS volume. However, they were both accidentally erased.

Now I have reinstalled 12.04 and added the NTFS partition along with the swap partition. I flagged the OS as the boot flag.

Also, last time I installed 12.04 I had to used 'grub-imageboot' due to Ext HDD. It worked fine once I placed the image-boot file in the correct folder which was in the /boot/grub/ directory I believe.

Now, however it is not booting the OS at all and I can't use 'update-grub' since I'm using the live cd.

Attached is a copy of my 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
set default="0"
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 {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
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/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 'Ubuntu, with Linux 3.2.0-37-lowlatency' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
linux /boot/vmlinuz-3.2.0-37-lowlatency root=UUID=1f59cec4-d7af-496f-a3e2-0c3ea1e706bd ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-37-lowlatency
}
menuentry 'Ubuntu, with Linux 3.2.0-37-lowlatency (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
echo 'Loading Linux 3.2.0-37-lowlatency ...'
linux /boot/vmlinuz-3.2.0-37-lowlatency root=UUID=1f59cec4-d7af-496f-a3e2-0c3ea1e706bd ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-37-lowlatency
}
### 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)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

I have added the grub-imageboot file to boot, grub, and /etc/grub.d/ folders and I just now copied imageboot to the /boot/grub/locale/ directory, but I am not going to reboot until someone else has some other possible fixex.

I should mention that on boot it goes directly to grub rescue mode.

Thanx yall!!

yancek
June 17th, 2014, 03:03 AM
So how many drives do you have and which one is Ubuntu on? You haven't posted enough information to get any serious help. I would suggest you go to the site below and read the instructions in the link in the Description box on that page. Then download and run the bootinfoscript and post the output here, a results.txt file. You can do this from the Live CD.

http://sourceforge.net/projects/bootinfoscript/

chkneater
June 17th, 2014, 03:59 AM
Ok, cool, will do.

I only have one drive which is an Ext HDD, 1TB.

I have it partitioned A) OS: UbuntuStudio 12.04
B) NTFS partition
C) Swap partition

Usually I get prompted to make an Extended FS for the Swap to go onto, but not this time? Not worried bout that tho.

The OS, which I have used in this exact same setup, is flagged as boot. I'm not sure that when I installed the OS this time around (accidental erasure before) whether I installed the MBR to HDD or the OS. I don't know how much a difference that makes.

Onto the grub-imageboot; you can find it in the repositories. It made the grub load. Right now it goes directly to 'grub rescue' mode tho, which I don't any commands for.
Now, the grub-imageboot file is not working for some reason. Here is what I've done:

DL grub-imageboot and save it on the NTFS partition in case I nned it again. From there I use synatpic to install it and see where it installs it on the live system. I 'sudo cp'd the image-boot file to the direcory and still got rescue moce.

So from that point I decided to 'cp' image-boot to the boot directory, the grub directory, the /grub/locales/ directory, and the /etc/grub.d directory. Those are the only dir I know of the handle booting

I noticed in the config file in my OP that there was a line in one of the menu entry the loaded "vmlinuzwhatever 41" with no mention of the 60_grub-imageboot anywhere. Just some things I noticed. I will check out what you sent here in a min., thanx for the help.

Here's the bootinfo script for ya. Hope it helps! BTW, the fstab file was the only boot file I did NOT 'cp' 60_image-boot into.




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
for (,msdos7)/boot/grub on this drive.

sda1: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04.2 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ ________________________

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

sda3: __________________________________________________ ________________________

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

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 1000.2 GB, 1000170586112 bytes
255 heads, 63 sectors/track, 121597 cylinders, total 1953458176 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 * 2,048 911,276,031 911,273,984 83 Linux
/dev/sda2 1,541,212,160 1,573,636,095 32,423,936 82 Linux swap / Solaris
/dev/sda3 911,276,032 1,541,212,159 629,936,128 7 NTFS / exFAT / HPFS


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd ext4
/dev/sda2 78a12334-f2c2-4135-8d08-ff9ea464955f swap
/dev/sda3 409CCDDC6304A495 ntfs
/dev/sr0 iso9660 Ubuntu-Studio 12.04.2 amd64

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda1 /media/1f59cec4-d7af-496f-a3e2-0c3ea1e706bd ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sr0 /cdrom iso9660 (ro,noatime)


=========================== 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
set default="0"
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 {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
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/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 'Ubuntu, with Linux 3.2.0-37-lowlatency' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
linux /boot/vmlinuz-3.2.0-37-lowlatency root=UUID=1f59cec4-d7af-496f-a3e2-0c3ea1e706bd ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-37-lowlatency
}
menuentry 'Ubuntu, with Linux 3.2.0-37-lowlatency (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
echo 'Loading Linux 3.2.0-37-lowlatency ...'
linux /boot/vmlinuz-3.2.0-37-lowlatency root=UUID=1f59cec4-d7af-496f-a3e2-0c3ea1e706bd ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-37-lowlatency
}
### 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)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 $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>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=1f59cec4-d7af-496f-a3e2-0c3ea1e706bd / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=f6bd30f1-1610-4ee4-83f1-831572918572 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

290.249473572 = 311.652999168 boot/grub/core.img 1
168.136260986 = 180.534935552 boot/grub/grub.cfg 1
2.172851562 = 2.333081600 boot/initrd.img-3.2.0-37-lowlatency 2
168.134525299 = 180.533071872 boot/vmlinuz-3.2.0-37-lowlatency 1
2.172851562 = 2.333081600 initrd.img 2
168.134525299 = 180.533071872 vmlinuz 1

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

sdb sdc sdd sde

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

xz: (stdin): Compressed data is corrupt

yancek
June 17th, 2014, 02:57 PM
The bootinfoscript output shows that Grub is installed to the mbr of the drive and looks for (msdos7) for the /boot/grub files. The problem is that you do not have an sda7 partition, only 3 partitions. Your grub.cfg file points to the correct partition, (msdos1) or sda1. It appears from that you did not install Grub to the mbr of that drive and still has the old Grub code in the mbr. Take a look at the link below which gives several options to repair this. The best and most complicated method to do this is via ChRoot, nd start at Section 7 under ChRoot. I would suggest you read through it a few times before beginning:

https://help.ubuntu.com/community/Grub2/Installing#Reinstalling_GRUB_2

chkneater
June 28th, 2014, 04:07 AM
The Chroot method did not work successfully however I used this command I found on the same page a little lower down:

'sudo grub-setup -d /media/1f59cec4-d7af-496f-a3e2-0c3ea1e706bd/boot/grub /dev/sde'

Of course I substituted the parttitions based on the out put of

'sudo fdisk -l'
'sudo blkid'

After I performed this command bootinfoscript had changed, notice where it points to now, I use 60_grub-imageboot and I think that is what it is referring to as the "embedded config file:"


Boot Info Script 0.61 [1 April 2012]


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

=> Grub2 (v1.99) is installed in the MBR of /dev/sde and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and uses an
embedded config file:

---------------------------------------------------------------------------
search.fs_uuid 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd root
set prefix=($root)/boot/grub
---------------------------------------------------------------------------
-----.

sde1: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04.2 LTS
Boot files: /grub/grub.cfg /boot/grub/grub.cfg /etc/fstab
/grub/core.img /boot/grub/core.img

sde2: __________________________________________________ ________________________

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

sde3: __________________________________________________ ________________________

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

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

Drive: sde __________________________________________________ ___________________

Disk /dev/sde: 1000.2 GB, 1000170586112 bytes
255 heads, 63 sectors/track, 121597 cylinders, total 1953458176 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/sde1 * 2,048 911,276,031 911,273,984 83 Linux
/dev/sde2 1,541,212,160 1,573,636,095 32,423,936 82 Linux swap / Solaris
/dev/sde3 911,276,032 1,541,212,159 629,936,128 7 NTFS / exFAT / HPFS


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sde1 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd ext4
/dev/sde2 78a12334-f2c2-4135-8d08-ff9ea464955f swap
/dev/sde3 409CCDDC6304A495 ntfs
/dev/sr0 iso9660 Ubuntu-Studio 12.04.2 amd64

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sde1 /media/1f59cec4-d7af-496f-a3e2-0c3ea1e706bd ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sde3 /media/409CCDDC6304A495 fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
/dev/sr0 /cdrom iso9660 (ro,noatime)


============================= sde1/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
set default="0"
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 {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 1f59cec4-d7af-496f-a3e2-0c3ea1e706bd
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=10
else
set timeout=10
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/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}

I have not rebooted yet, but I'm worried that after: "embedded config file:" it points nowhere?

But lower down it does search the device for boot files so I don't know what to think?

Also the files '/grub/grub.cfg' and '/grub/core.img' have been added to the boot partition, which I think may be a good sign?

Waddya think?

the Chroot method yielded this:

'error: device not found' repeatedly about five times...

After the last attempt with the

'sudo grub-setup -d /media/1f59cec4-d7af-496f-a3e2-0c3ea1e706bd/boot/grub /dev/sde'

I now get the same 'error: device not found' repeatedly, but the last output yields

'error:1f59cec4-d7af-496f-a3e2-0c3ea1e706bd' not found'

Which you can see from bootinfo the second command is to search for that device... It is an ext HDD and as long as I have 60_grub-imageboot' I've never had this much problem booting.

I'm gonna try one more thing and reboot... BRB

oldfred
June 28th, 2014, 04:46 AM
Please use code tags with long text or program output. You can easily add them by highlighting text and click on # in advanced editor.

I think it changed since your reinstall of grub was to /boot/grub so now you have two copies of grub files in /boot with different paths.

Is this an external drive, or why did it change from sda to sde?

chkneater
June 28th, 2014, 04:46 AM
Ok, rebooted and same thing... for some reason it's not recognizing the boot partition now that I got rid of the 'msdos7' issue...

'Is this an external drive, or why did it change from sda to sde? '

I wondered the same thing myself but I was so caught up in trying to figure out grub that I didn't want to bring it up yet lol. I figured as long all the files pointed to sde I would be ok.

and sorry for not highlighting the text, i know what you mean and I somehow always forget to do it, thanks for the reminder

As far as what is in the /boot there are multiple, I thot they were kernels but this is the names of the files:

abi-3.2.0-37-lowlatency; config-3.2.0-37-lowlatency; initrd.img-3.2.0-37-lowlatency; memtest86+.bin; memtest86+_multiboot.bin; System.map-3.2.0-37-lowlatency; vmlinuz-3.2.0-37-lowlatency and also the file 60_grub-imageboot that I added manually.

...

Just noticed that 60_grub-image boot is not in the /etc/grub.d directory with the other headers... I added it manually using 'sudo cp' but in direcectory it's not shown as a txt file?

oldfred
June 28th, 2014, 05:53 AM
I have not used the image-boot.
I do use the loop mount to boot many ISOs.

If you copy another file like 60_ did you also make it executeable? And that should just be the boot stanza for you image boot.

chkneater
June 28th, 2014, 06:18 AM
yeah that was what I was trying to say, it doesn't look executable like the rest of them and also once it is mounted it's usually mounted as /loop0 in Gparted.

check that, now that I open file manager and look, now it is executable? Must be a tiny glitch... gonna try rebooting again...

no good on the reboot, it still looks for the primary partition and doesn't see it... I've checked the syntax and everything... would it be giving up to just re install? I feel I will run into the same problem and I may be close to fixing it...

how do you load ext HDD? It's obviously not finding the device or the partition for some raisn.

What do you mean by "And that should just be the boot stanza for you image boot. "?

yancek
June 28th, 2014, 02:05 PM
What do you mean by "And that should just be the boot stanza for you image boot. "?

I expect what is being referred to here is the entry in grub.cfg beginning with: menuentry . The section immediately after menuentry in quotes is what you see on the grub boot screen and the stanza being referred to is whatever shows after that, between the: { }

I noticed in post 6 above when you ran the bootinfoscript the second time, you had no menuentries in the grub.cfg file on sda1. I've never used image-boot so can't help with that.
You indicated above the 'chroot' method 'did not work' but gave no details?

oldfred
June 28th, 2014, 03:38 PM
If you are just booting a standard Ubuntu install on an external you can just use standard grub2. Not seen much image boot suggested?

As I understand it the image-boot is an alternative to the loop mount that I use to direct boot an ISO image.

Post the link the BootInfo report gives you.
Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
https://help.ubuntu.com/community/Boot-Repair

All grub files with 2 digits and underscore are text based scripts or specific boot entires you add to a file like 40_custom.
It looks like a grub image boot does not need a boot stanza and does it all automatically in the background. So what is your 60_ file? A script?

It looks like most suggestions are for booting ISO in /boot/images folder.
http://michael-prokop.at/blog/2011/01/07/booting-iso-images-from-within-grub2/
http://askubuntu.com/questions/24903/how-to-boot-from-an-iso-file-in-grub2

In 12.04 I see this:
grub-imageboot (0.6) unstable; urgency=low
This package installs a grub hook which integrates iso, harddisk and floppy
images into the grub menu.
memdisk can't boot every image see
http://syslinux.zytor.com/wiki/index.php/MEMDISK for its limitations.

chkneater
June 28th, 2014, 10:37 PM
60_grub-imageboot is a script, I have used it to mount this HDD on this system with this same OS... The only succesful accomplishment so far came when I ran this script : ''sudo grub-setup -d /media/1f59cec4-d7af-496f-a3e2-0c3ea1e706bd/boot/grub /dev/sde'

Now it at least LOOKS for the grub, but it's not seeing the partition... wonder if it''s looking for /dev to mount instead of /media... if so, how to check and fix?

Chroot did not work for the same raisin the others ddi not: 'error: device not found'

oldfred
June 29th, 2014, 04:40 AM
Automounts now use the user name in the /media path. Is that part of the issue?