Bodhi Linux Forums: I want to edit Grub - Bodhi Linux Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

I want to edit Grub Where to edit Grub entries

#1 User is offline   jr223 

  • Member
  • Group: Members
  • Posts: 40
  • Joined: 02-January 12

Posted 13 April 2012 - 08:36 PM

Howdy,

I have my Acer Revo setup to dual boot with Windblowz 7.
When the machine boots and grub comes up I have an entrie I want to change, just the description.
It is for the 1GB recover partition, all I want to do is change it's description and move the entry to the last.

There is 3 entries the 1st being for Bodhi, the 2nd is for the 1GB Revo/windows recovery partion the 3rd is for the Windowz 7 os.
What I want to do is put the 2nd entry at the bottom and make the 3rd the second selection in the list.
I can post my Grub list if I could find it but I can't remember where it is.
Cheers
Jr223
0

#2 User is online   Charles@Bodhi 

  • Old Faithful
  • Group: Moderators
  • Posts: 2661
  • Joined: 23-February 11
  • LocationZeist, The Netherlands

Posted 13 April 2012 - 09:12 PM

You can easily post that file. In terminal:
cat /boot/grub/grub.cfg


Just copy and paste it here and w'll tell you the best options.

Charles.
EEE Box202, 1GB RAM, 80 GB HDD, WIN-XP SP3, Bodhi 2.3.0-32_non-pae
EEE PC 901, 1GB RAM, 12 GB SSD, WIN-XP SP3, Bodhi 1.4.0

How to mark a thread as [SOLVED]
The Bodhi Guide to Enlightenment
0

#3 User is offline   jr223 

  • Member
  • Group: Members
  • Posts: 40
  • Joined: 02-January 12

Posted 16 April 2012 - 12:47 AM

 Charles@Bodhi, on 13 April 2012 - 09:12 PM, said:

You can easily post that file. In terminal:
cat /boot/grub/grub.cfg


Just copy and paste it here and w'll tell you the best options.

Charles.


Please find attached out put of grub.cfg
I just want to change the label for the following to reflect that /dev/sda1 is winblowz restore partion and
/dev/sda2 is the Windows7

========================================================================

menuentry "Windows Vista (loader) (on /dev/sda1)" {
and
menuentry "Windows Vista (loader) (on /dev/sda2)" {

cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set de96d696-d2b2-41cb-b797-eeefdacf83bb
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set de96d696-d2b2-41cb-b797-eeefdacf83bb
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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 ###
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set de96d696-d2b2-41cb-b797-eeefdacf83bb
insmod png
if background_image /usr/share/backgrounds/grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Bodhi Linux, with Linux 3.0.0-12-generic' --class bodhi --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set de96d696-d2b2-41cb-b797-eeefdacf83bb
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=de96d696-d2b2-41cb-b797-eeefdacf83bb ro splash quiet pcie_aspm=force
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Bodhi Linux, with Linux 3.0.0-12-generic (recovery mode)' --class bodhi --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set de96d696-d2b2-41cb-b797-eeefdacf83bb
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=de96d696-d2b2-41cb-b797-eeefdacf83bb ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set de96d696-d2b2-41cb-b797-eeefdacf83bb
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set de96d696-d2b2-41cb-b797-eeefdacf83bb
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 206C20386C200ADC
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 32B42114B420DC5B
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

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

#4 User is offline   Tara 

  • Moderately Bemused
  • Group: Moderators
  • Posts: 874
  • Joined: 02-July 11
  • LocationOttawa, ON

Posted 16 April 2012 - 10:39 AM

This is the section you want to edit. (it's at the end)

 jr223, on 16 April 2012 - 12:47 AM, said:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 206C20386C200ADC
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 32B42114B420DC5B
chainloader +1
}
### END /etc/grub.d/30_os-prober ###


Change it to:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda2)" {
	insmod ntfs
	set root='(hd0,2)'
	search --no-floppy --fs-uuid --set 32B42114B420DC5B
	chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sda1)" {
	insmod ntfs
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 206C20386C200ADC
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###


And it should do what you want it to do.
0

#5 User is offline   STRUPPI 

  • Member
  • Group: Members
  • Posts: 729
  • Joined: 19-July 11

Posted 16 April 2012 - 02:21 PM

This is my:
struppi@PREDATOR-STRUPP:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
  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
}
insmod reiserfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set cac3037e-158e-4e37-8490-a8e84f58969d
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=800x600
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod reiserfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set cac3037e-158e-4e37-8490-a8e84f58969d
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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 ###
insmod reiserfs
set root='(hd0,3)'
search --no-floppy --fs-uuid --set cac3037e-158e-4e37-8490-a8e84f58969d
insmod png
if background_image /usr/share/backgrounds/grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=white/black
  set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Bodhi Linux, with Linux 3.2.0-18-generic' --class bodhi --class gnu-linux --class gnu --class os {
	recordfail
	insmod reiserfs
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set cac3037e-158e-4e37-8490-a8e84f58969d
	linux	/boot/vmlinuz-3.2.0-18-generic root=UUID=cac3037e-158e-4e37-8490-a8e84f58969d ro   splash quiet pcie_aspm=force
	initrd	/boot/initrd.img-3.2.0-18-generic
}
menuentry 'Bodhi Linux, with Linux 3.2.0-18-generic (recovery mode)' --class bodhi --class gnu-linux --class gnu --class os {
	recordfail
	insmod reiserfs
	set root='(hd0,3)'
	search --no-floppy --fs-uuid --set cac3037e-158e-4e37-8490-a8e84f58969d
	echo	'Loading Linux 3.2.0-18-generic ...'
	linux	/boot/vmlinuz-3.2.0-18-generic root=UUID=cac3037e-158e-4e37-8490-a8e84f58969d ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-18-generic
}
### END /etc/grub.d/10_linux ###

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

menuentry "Windows 7 (loader) (on /dev/sda1)" {
	insmod ntfs
	set root='(hd0,1)'
	chainloader +1
boot
}

menuentry "Bodhi_PAE (on /dev/sda3)" {
	configfile (hd0,3)/boot/grub/grub.cfg
}

menuentry "SOS_Bodhi (on /dev/sda5)" {
	configfile (hd0,5)/boot/grub/grub.cfg
}

#menuentry "TEST (on /dev/sda7)" {
#	configfile (hd0,7)/boot/grub/grub.cfg
#}


### END /etc/grub.d/40_custom ###
struppi@PREDATOR-STRUPP:~$ 

0

#6 User is offline   Rohit 

  • Member
  • Group: Members
  • Posts: 559
  • Joined: 26-July 11
  • LocationDelhi, India

Posted 16 April 2012 - 06:05 PM

two queries ..

1) how to fix this error...

rohit@rohit-ATC7401M:~$ sudo update-grub
/etc/default/grub: 28: 3: not found
rohit@rohit-ATC7401M:~$


2) I have bodhi in sda1 & connochaet in sda7. I want to add in connochaet in grub ...


rohit@rohit-ATC7401M:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=3
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
insmod png
if background_image /usr/share/backgrounds/grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 3.2.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
linux /boot/vmlinuz-3.2.0-15-generic root=UUID=096dcdcb-175d-4bb1-ae04-3504112ce076 ro splash quiet pcie_aspm=force
initrd /boot/initrd.img-3.2.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
echo 'Loading Linux 3.2.0-15-generic ...'
linux /boot/vmlinuz-3.2.0-15-generic root=UUID=096dcdcb-175d-4bb1-ae04-3504112ce076 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-15-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}

#--------------
menuentry 'ConnochaetOS' --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
/boot/vmlinuz26-libre-lts root=/dev/disk/by-uuid/f5594706-50c4-4de8-9093-cad03af2c8b1 rootflags= rootfstype=ext4 ro
initrd /boot/kernel26-libre-lts.img
}
menuentry 'ConnochaetOS Fallback' --class gnu-linux --class gnu --class os{
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
/boot/vmlinuz26-libre-lts root=/dev/disk/by-uuid/f5594706-50c4-4de8-9093-cad03af2c8b1 rootflags= rootfstype=ext4 ro
initrd /boot/kernel26-libre-lts-fallback.img

}
#-------------
### END /etc/grub.d/20_memtest86+ ###

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

### 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 ###
rohit@rohit-ATC7401M:~$
0

#7 User is offline   Rohit 

  • Member
  • Group: Members
  • Posts: 559
  • Joined: 26-July 11
  • LocationDelhi, India

Posted 16 April 2012 - 06:32 PM

I had to reinstall bodhi 1 week ago. afer this , there was bodhi linux in grub.
but 1st problem was there.

Today I tried to add connochaet but failed. I had to use live cd & boot-repair-ubuntu.

for grub correction , I used all steps described in earlier thread. but sudo update-grub is failing..
0

#8 User is online   Charles@Bodhi 

  • Old Faithful
  • Group: Moderators
  • Posts: 2661
  • Joined: 23-February 11
  • LocationZeist, The Netherlands

Posted 16 April 2012 - 06:44 PM

@Rohit
To fix your error please replace the file /etc/default/grub with the same file from a live CD, because it seems to be corrupted.
After doing so check it by doing a update-grub.

Your file /etc/grub.d/20_memtest86+ also is corrupted because it has the connochaet entries which should not be there. You better replace that as well with a original one.

The place to create the entries for connochaet is the file /etc/grub.d/40_custom
Open it in leafpad with gksudo and you can edit it to look like this:
#!/bin/sh
exec tail -n +3 $0
# 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.
#
# Entries for ConnochaetOS
menuentry "ConnochaetOS on sda7" --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
/boot/vmlinuz26-libre-lts root=/dev/disk/by-uuid/f5594706-50c4-4de8-9093-cad03af2c8b1 rootflags= rootfstype=ext4 ro
initrd /boot/kernel26-libre-lts.img
}
menuentry "ConnochaetOS Fallback on sda7" --class gnu-linux --class gnu --class os{
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 096dcdcb-175d-4bb1-ae04-3504112ce076
/boot/vmlinuz26-libre-lts root=/dev/disk/by-uuid/f5594706-50c4-4de8-9093-cad03af2c8b1 rootflags= rootfstype=ext4 ro
initrd /boot/kernel26-libre-lts-fallback.img
}

NOTE: There should be an empty line at the end!

The words between " " (which I slightly altered) will be displayed (NOT ' single quote signs ') The boot info I have copied from your post, so they should be fine.
Save the file and do update-grub and see how your /boot/grub/grub.cfg looks.

Tip: If you want the Memtest to be on the bottom of your grub screen then rename the file /etc/grub.d/20_memtest86+ into /etc/grub.d/49_memtest86+

Hope this helps.
Charles.
EEE Box202, 1GB RAM, 80 GB HDD, WIN-XP SP3, Bodhi 2.3.0-32_non-pae
EEE PC 901, 1GB RAM, 12 GB SSD, WIN-XP SP3, Bodhi 1.4.0

How to mark a thread as [SOLVED]
The Bodhi Guide to Enlightenment
0

#9 User is offline   Rohit 

  • Member
  • Group: Members
  • Posts: 559
  • Joined: 26-July 11
  • LocationDelhi, India

Posted 16 April 2012 - 07:30 PM

sudo update-grub & bodhi entry has been solved.

but same output before/after after adding lines to /etc/grub.d/40_custom

rohit@rohit-ATC7401M:~$ sudo update-grub
[sudo] password for rohit:
Generating grub.cfg ...
Found background image: grub.png
Found linux image: /boot/vmlinuz-3.2.0-15-generic
Found initrd image: /boot/initrd.img-3.2.0-15-generic
Found memtest86+ image: /boot/memtest86+.bin
Found ConnochaetOS preview on /dev/sda7
ConnochaetOS preview is not yet supported by grub-mkconfig.
Found 02 on Built^Sa^21.^Aug^01
02 is not yet supported by grub-mkconfig.
done
rohit@rohit-ATC7401M:~$


connochaet
/media/sda7/boot/grub/menu.list
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,1)
# /dev/sda3 (hd0,2)
#

# FRAMEBUFFER RESOLUTION SETTINGS
# +-------------------------------------------------+
# | 640x480 800x600 1024x768 1280x1024
# ----+--------------------------------------------
# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
# +-------------------------------------------------+
# for more details and different resolutions see
# http://wiki.archlinu...ffer_Resolution

# general configuration:
timeout 5
default 0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
# DEVICE DETAILS: /dev/sda7 UUID=f5594706-50c4-4de8-9093-cad03af2c8b1 LABEL=con
# DEVICE DETAILS: /dev/sda8 UUID=dddad4f7-3e1e-4b6e-98eb-e09bb0a7affc LABEL=swap

# (0) ConnochaetOS
title ConnochaetOS
uuid f5594706-50c4-4de8-9093-cad03af2c8b1
kernel /boot/vmlinuz26-libre-lts root=/dev/disk/by-uuid/f5594706-50c4-4de8-9093-cad03af2c8b1 rootflags= rootfstype=ext4 ro
initrd /boot/kernel26-libre-lts.img

# (1) ConnochaetOS
title ConnochaetOS Fallback
uuid f5594706-50c4-4de8-9093-cad03af2c8b1
kernel /boot/vmlinuz26-libre-lts root=/dev/disk/by-uuid/f5594706-50c4-4de8-9093-cad03af2c8b1 rootflags= rootfstype=ext4 ro
initrd /boot/kernel26-libre-lts-fallback.img

# (2) Other OS
#title Other OS
#rootnoverify (hd0,0)
#makeactive
#chainloader +1

Attached File(s)


0

#10 User is online   Charles@Bodhi 

  • Old Faithful
  • Group: Moderators
  • Posts: 2661
  • Joined: 23-February 11
  • LocationZeist, The Netherlands

Posted 16 April 2012 - 08:39 PM

OK, I see what is going on. Grub2 cannot boot Connochaet directly. So we have to chainload it to your older Grub on sda7.
Lets modify your /etc/grub.d/40_custom again to look like this:
#!/bin/sh
exec tail -n +3 $0
# 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.
#
# Entry for another bootloader
#
menuentry "Grub on ConnochaetOS" {
set root=(hd0,7)
chainloader +1
}



Again make sure the file ends with a blank line. You can put what you want between the " " in the custom file.
Now run update-grub and check your /boot/grub/grub.cfg
If that looks OK you can reboot and try if it works to go to ConnochaetOS.
Good luck,
Charles.
EEE Box202, 1GB RAM, 80 GB HDD, WIN-XP SP3, Bodhi 2.3.0-32_non-pae
EEE PC 901, 1GB RAM, 12 GB SSD, WIN-XP SP3, Bodhi 1.4.0

How to mark a thread as [SOLVED]
The Bodhi Guide to Enlightenment
0

#11 User is offline   Rohit 

  • Member
  • Group: Members
  • Posts: 559
  • Joined: 26-July 11
  • LocationDelhi, India

Posted 17 April 2012 - 03:46 AM

did not help..
0

#12 User is offline   gohlip 

  • Member
  • Group: Members
  • Posts: 457
  • Joined: 23-December 10

Posted 17 April 2012 - 04:49 AM

@Rohit
You need to drivemap.....


menuentry "ConnochaetOS" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root f5594706-50c4-4de8-9093-cad03af2c8b1
drivemap -s (hd0) ${root}
chainloader +1
}

ps: you're not the OP. Is OP's problem solved?
Why do we live? To prove not everything in nature has a purpose.
0

#13 User is offline   gohlip 

  • Member
  • Group: Members
  • Posts: 457
  • Joined: 23-December 10

Posted 17 April 2012 - 04:59 AM

Oops. Bodhi uses grub 1.98 not 1.99....
Correct

gohlip said:

search --no-floppy --fs-uuid --set=root f5594706-50c4-4de8-9093-cad03af2c8b1


to
search --no-floppy --fs-uuid --set f5594706-50c4-4de8-9093-cad03af2c8b1
Why do we live? To prove not everything in nature has a purpose.
0

#14 User is offline   Rohit 

  • Member
  • Group: Members
  • Posts: 559
  • Joined: 26-July 11
  • LocationDelhi, India

Posted 17 April 2012 - 05:09 AM

this error comes.. ( with both entries)

error invalid signature

press any key
0

#15 User is offline   Rohit 

  • Member
  • Group: Members
  • Posts: 559
  • Joined: 26-July 11
  • LocationDelhi, India

Posted 17 April 2012 - 05:10 AM

who is OP ?
0

#16 User is offline   Rohit 

  • Member
  • Group: Members
  • Posts: 559
  • Joined: 26-July 11
  • LocationDelhi, India

Posted 17 April 2012 - 06:50 AM

 Charles@Bodhi, on 16 April 2012 - 08:39 PM, said:

OK, I see what is going on. Grub2 cannot boot Connochaet directly. So we have to chainload it to your older Grub on sda7.
Lets modify your /etc/grub.d/40_custom again to look like this:
#!/bin/sh
exec tail -n +3 $0
# 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.
#
# Entry for another bootloader
#
menuentry "Grub on ConnochaetOS" {
set root=(hd0,7)
chainloader +1
}



Again make sure the file ends with a blank line. You can put what you want between the " " in the custom file.
Now run update-grub and check your /boot/grub/grub.cfg
If that looks OK you can reboot and try if it works to go to ConnochaetOS.
Good luck,
Charles.


I changed it to

menuentry "Grub on ConnochaetOS" {
set root=(hd0,7)
linux /boot/vmlinuz26-libre-lts root=/dev/disk/by-uuid/f5594706-50c4-4de8-9093-cad03af2c8b1 rootflags= rootfstype=ext4 ro
initrd /boot/kernel26-libre-lts.img
}



Thanks ! Now it works ..
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users