A workable GRUB menu

Using applications, configuring, problems
Message
Author
proebler
Posts: 178
Joined: Tue 24 Jan 2012, 11:15
Location: TAS

#21 Post by proebler »

rmcellig,
so you have reformatted the flash drive?
And Manjaro is no longer on sdb1, only Lupu_528.

You appear to have Manjaro fully installed on your HDD sda4.
Did you install that from CD, is it manjaro-openbox-0.8.5-i686?

What can you run now , when you are presented with options from that menu.lst at boot up and what does not work?
For instance, does your Ubuntu 12.04.2 LTS (sda1) work
and are you back to where you started with Manjaro, i.e. Error 15, not booting?

In my experience, the menu.lst entries need an initrd line.
I don't know if that is actually a must, but it is not there in your entry:

Code: Select all

title Manjaro Linux boot (sda4/boot)
  uuid 3534475a-d82b-4e8e-91c3-e253b619cfbe
  kernel /boot/vmlinuz-38-i686 root=/dev/sda4 ro 
So where is your intrd [.img or.gz?], is it in sda4/boot perhaps?

Note, that my initial post is NOT for a full install.
I only wanted to run Manjaro live from the USB [as from a Live-CD].
I do not have Manjaro fully installed, so I do not know whether there is an initrd and where it is.

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#22 Post by rmcellig »

Thanks proebler

I will post back tommorow with the information you need.

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#23 Post by rmcellig »


rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#24 Post by rmcellig »

I just recieved this from the Manjaro forum:

Just use Grub, not Grub4dos.

Code: [Select]
Sudo update-grub

should find everything needed when Grub is installed. It normally is easier to reinstall than to install Grub.

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#25 Post by rmcellig »

I rebooted from the USB 16GB stick and from the grub menu was able to boot successfully into Xubuntu, Crunchbang and Lubuntu. These distros each have their own partition. on the internal HD in the laptop. Manjaro is the only one that does not boot properly.

proebler
Posts: 178
Joined: Tue 24 Jan 2012, 11:15
Location: TAS

#26 Post by proebler »

rmcellig wrote
I rebooted from the USB 16GB stick and from the grub menu was able to boot successfully into Xubuntu, Crunchbang and Lubuntu. These distros each have their own partition. on the internal HD in the laptop. Manjaro is the only one that does not boot properly.
So Ubuntu 12.04.2 LTS (sda1) boots ok too?
That would then indicate that the initrd line is not a must.
Still, can you find Manjaro's intrd [.img or.gz?] ?
see my previous post
So where is your intrd [.img or.gz?], is it in sda4/boot perhaps?
About the suggestion to use sudo update-grub:

Yes, that could possibly do it.
It assumes, that with your laptop you use Grub as the boot manager.

From your initial post
I installed Manjaro on my PC to try it out. It wiped out the GRUB menu I had created with Grub4DOS. All of my Puppy entries are gone. When I redid the GRUB menu using Grub4Dos, Manjaro would not load. errors were coming up on system start up.

I assume:
- that you initially used Grub4Dos [not Grub] as the laptop's boot manager.
- installing Manjaro then installed Grub by default
- you were then presented with the Grub interface [not the Grub4Dos] at boot. It did not show your Puppy entries.
- you then ran Grub4Dos again, trying to get Manjaro included in the [Grub4Dos] menu.lst
- you are now presented with the Grub4Dos interface at boot. It does now shows Manjaro, but it fails to load.

Now, since Manjaro does not load and since Grub4Dos is the boot manager, what is the point of doing the update-grub?
You cannot do it from Manjaro [it does not load].
You could perhaps try to do it from one of your other installed systems [the menu.lst from the flash drive shows Ubuntu 12.10 (sda6)].
However I think that it may not work. Running Grub4Dos alters the MBR [depends on the chosen option when you do it].

It may be easier to stick with Grub4Dos.
It's menu.lst can easily be edited.
With Grub2 it is more complicated [though update-grub is easy too, when it can be used and when it works as expected]

So, where on your laptop is your Grub4Dos menu.lst?
Can you show that list please.
[you have shown the one from the flash drive in the previous post]

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#27 Post by rmcellig »

Yes Ubuntu 12.04 LTS boots fine from the USB stick. I'm still trying to find the intrd file. Here are the contents of the grub.cfg file for Manjaro. Can't locate the menu.lst file that Manjaro generated.

Code: Select all

#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"

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
}

set menu_color_normal=light-green/black
set menu_color_highlight=yellow/black

insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  3534475a-d82b-4e8e-91c3-e253b619cfbe
else
  search --no-floppy --fs-uuid --set=root 3534475a-d82b-4e8e-91c3-e253b619cfbe
fi
if loadfont /boot/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_CA
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  3534475a-d82b-4e8e-91c3-e253b619cfbe
else
  search --no-floppy --fs-uuid --set=root 3534475a-d82b-4e8e-91c3-e253b619cfbe
fi
insmod png
background_image -m stretch /usr/share/grub/background.png
set timeout=25
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
set color_normal=light-green/black
set color_highlight=yellow/black
### END /etc/grub.d/06_grub-customizer_menu_color_helper ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Manjaro Linux (Kernel: 3.8.6-1-MANJARO x32)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.6-1-MANJARO x32-true-3534475a-d82b-4e8e-91c3-e253b619cfbe' {
	savedefault
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  3534475a-d82b-4e8e-91c3-e253b619cfbe
	else
	  search --no-floppy --fs-uuid --set=root 3534475a-d82b-4e8e-91c3-e253b619cfbe
	fi
	echo	'Loading Linux 3.8.6-1-MANJARO x32 ...'
	linux	/boot/vmlinuz-38-i686 root=UUID=3534475a-d82b-4e8e-91c3-e253b619cfbe ro  resume=UUID=f38c84b6-6c13-47b6-9dca-bd8fcc769e97
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-38-i686.img
}
menuentry 'Manjaro Linux (Kernel: 3.8.6-1-MANJARO x32 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.6-1-MANJARO x32-fallback-3534475a-d82b-4e8e-91c3-e253b619cfbe' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  3534475a-d82b-4e8e-91c3-e253b619cfbe
	else
	  search --no-floppy --fs-uuid --set=root 3534475a-d82b-4e8e-91c3-e253b619cfbe
	fi
	echo	'Loading Linux 3.8.6-1-MANJARO x32 ...'
	linux	/boot/vmlinuz-38-i686 root=UUID=3534475a-d82b-4e8e-91c3-e253b619cfbe ro  resume=UUID=f38c84b6-6c13-47b6-9dca-bd8fcc769e97
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-38-i686-fallback.img
}

### 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+)" --class memtest86 --class gnu --class tool {
  insmod part_msdos
  insmod ext2
  set root='hd0,msdos4'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  3534475a-d82b-4e8e-91c3-e253b619cfbe
  else
    search --no-floppy --fs-uuid --set=root 3534475a-d82b-4e8e-91c3-e253b619cfbe
  fi
  linux16 ($root)/boot/memtest86+/memtest.bin
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober_proxy ###



menuentry "Ubuntu 12.04.2 LTS (12.04)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-9149dc76-8d65-410d-8dea-d0b6cf95683c' {
	savedefault
	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  9149dc76-8d65-410d-8dea-d0b6cf95683c
	else
	  search --no-floppy --fs-uuid --set=root 9149dc76-8d65-410d-8dea-d0b6cf95683c
	fi
	linux /vmlinuz root=/dev/sda1
	initrd /initrd.img
}
menuentry "Forsight Debian GNU/Linux (7.0)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-b2b77a51-02f3-408d-87b4-93ee17b207d0' {
	savedefault
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b2b77a51-02f3-408d-87b4-93ee17b207d0
	else
	  search --no-floppy --fs-uuid --set=root b2b77a51-02f3-408d-87b4-93ee17b207d0
	fi
	linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=b2b77a51-02f3-408d-87b4-93ee17b207d0 ro quiet
	initrd /boot/initrd.img-3.2.0-4-amd64
}
menuentry "Ubuntu 12.10 (12.10)" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-98946d9c-e2d8-4d57-87d4-60ee462fc12a' {
	savedefault
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  98946d9c-e2d8-4d57-87d4-60ee462fc12a
	else
	  search --no-floppy --fs-uuid --set=root 98946d9c-e2d8-4d57-87d4-60ee462fc12a
	fi
	linux /boot/vmlinuz-3.5.0-26-generic root=UUID=98946d9c-e2d8-4d57-87d4-60ee462fc12a ro quiet splash $vt_handoff
	initrd /boot/initrd.img-3.5.0-26-generic
}
### END /etc/grub.d/30_os-prober_proxy ###

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

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#28 Post by rcrsn51 »

Because Manjaro is a GRUB2 distro, you may be able to boot it from Grub4Dos with this

Code: Select all

title Manjaro Linux boot (sda4/boot)
uuid 3534475a-d82b-4e8e-91c3-e253b619cfbe
kernel /boot/grub/core.img

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#29 Post by rmcellig »

Thanks rcrsn51


I replaced the code already in the Grub4dos generated menu.lst with the one you posted. Didn't work. I get this error:

Booting Manjaro Linux boot (sda4/boot)

setting root to (hd1,3)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/grub/core.img

Error 15: File not found

Press any key to continue...

Pressing any key just returns me to the grub menu list.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#30 Post by rcrsn51 »

Error 15 always means the same thing - the file that you requested does not exist in the place that you specified.

Look on sda4 - is Manjaro still there? Is the file /boot/grub/core.img there?

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#31 Post by rmcellig »

I don't see the core.img file in the sda4/boot/grub (All) directory.

circularL7
Posts: 112
Joined: Sat 02 Feb 2013, 07:26

#32 Post by circularL7 »

What does the PBS stand for?

Code: Select all

title Lupu 528 (sdb1:PBS)
  uuid 5170-7889
  chainloader +1 

proebler
Posts: 178
Joined: Tue 24 Jan 2012, 11:15
Location: TAS

#33 Post by proebler »

rmcellig,

what do you see in sda4/boot/ ?
do you have sda4/boot/i686/ ? what is in it?
or
sda4/boot/grub/i386-pc/ ? what is in it?

also
you write
I replaced the code already in the Grub4dos generated menu.lst with the one you posted. Didn't work. I get this error:
Booting Manjaro Linux boot (sda4/boot)
and then
setting root to (hd1,3)
Filesystem type is ext2fs, partition type 0x83
but your GParted picture showed sda4 as ext4
that seems strange

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#34 Post by rmcellig »

This is what I see.
Attachments
boot.png
(150.64 KiB) Downloaded 203 times

proebler
Posts: 178
Joined: Tue 24 Jan 2012, 11:15
Location: TAS

#35 Post by proebler »

rmcellig,

one more picture please, what is in /sda4/boot/grub/i386-pc ?

The picture for /sda4/boot/ shows vmlinuz-38-i686 crossed in red.
Is this a broken link?
Can you check on that? Properties should show you.

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#36 Post by rmcellig »

Here you go.
Attachments
vmlinuz.png
(59.95 KiB) Downloaded 245 times
386_2.png
(66.44 KiB) Downloaded 205 times
386_1.png
(144.87 KiB) Downloaded 206 times

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#37 Post by rcrsn51 »

Do you see any files in /boot/grub/i386-pc that might be useful?

proebler
Posts: 178
Joined: Tue 24 Jan 2012, 11:15
Location: TAS

#38 Post by proebler »

rmcellig,

there is a core.img in /boot/grub/i386-pc
now you can try rcrsn51's suggestion, modified for /boot/grub/i386-pc:

Code: Select all

 title Manjaro Linux boot (sda4/boot)
uuid 3534475a-d82b-4e8e-91c3-e253b619cfbe
kernel /boot/grub/i386-pc/core.img
or perhaps ? [from flash drive]

Code: Select all

 title Manjaro Linux boot (sda4/boot)
root (hd1,3)
kernel /boot/grub/i386-pc/core.img

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#39 Post by rmcellig »

Code:
title Manjaro Linux boot (sda4/boot)
uuid 3534475a-d82b-4e8e-91c3-e253b619cfbe
kernel /boot/grub/I386/core.img


This is what finally worked for me. I learned something else going through this exercise and I thank everyone who helped me in this thread. As usual, I am very grateful!

rmcellig
Posts: 965
Joined: Sat 19 Nov 2011, 15:18
Location: Ottawa Ontario Canada
Contact:

#40 Post by rmcellig »

I'm back after all these months. I just installed the latest manjaro 0.8.8 onto my usb stick using unetbootin.

I want to create a grub menu using grub4dos. So, I booted my slacko CD and opened grub4dos to create the menu.lst file

/dev/sdc2 is where Manjaro installed on my usb stick. These are the files and directories installed in this partition:

file:///media/MANJARO/EFI
file:///media/MANJARO/isolinux
file:///media/MANJARO/loader
file:///media/MANJARO/manjaro
file:///media/MANJARO/ldlinux.sys
file:///media/MANJARO/menu.c32
file:///media/MANJARO/syslinux.cfg
file:///media/MANJARO/ubnfilel.txt
file:///media/MANJARO/ubninit
file:///media/MANJARO/ubnpathl.txt

So how can I configure grub4dos so that it boots properly based on the info I listed above?

Post Reply