FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 10-30-2009, 05:20 PM
"Mark C. Miller"
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

On Sat, 31 Oct 2009 01:08:58 +0800, Goh Lip wrote:

> bqz69 wrote:
>> I have just installed ubuntu 9.10 on a pc, and grub2 worked perfect,
>> and made a grub2 login menu with my two other OS (wxp and 8.04), so I
>> can choose which of the three OS to login to at boot time
>>
>>
> Great. A good tool to have is an (empty grub.cfg) grub2 cdrom so that
> you can use this to boot to any OS if you have any problem. To get it,
> type at terminal
>
> grub-mkrescue abc.iso
>
> where abc.iso is name of iso (can be any name you choose) which will be
> created at ~/ if your command is at home. Burn that iso and you will
> have a bootable grub2 cdrom for you to boot up.
>
> Take care.
> Regards,
> Goh Lip

doesn't work for me. Here's what I get:

grub -mkrescue abc.iso
grub: invalid option -- 'm'


mcm



--
Mark C. Miller, Indianapolis Indiana USA


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 10-30-2009, 05:34 PM
Goh Lip
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

Mark C. Miller wrote:
> On Sat, 31 Oct 2009 01:08:58 +0800, Goh Lip wrote:
>
>> bqz69 wrote:
>>> I have just installed ubuntu 9.10 on a pc, and grub2 worked perfect,
>>> and made a grub2 login menu with my two other OS (wxp and 8.04), so I
>>> can choose which of the three OS to login to at boot time
>>>
>>>
>> Great. A good tool to have is an (empty grub.cfg) grub2 cdrom so that
>> you can use this to boot to any OS if you have any problem. To get it,
>> type at terminal
>>
>> grub-mkrescue abc.iso
>>
>> where abc.iso is name of iso (can be any name you choose) which will be
>> created at ~/ if your command is at home. Burn that iso and you will
>> have a bootable grub2 cdrom for you to boot up.
>>
>> Take care.
>> Regards,
>> Goh Lip
>
> doesn't work for me. Here's what I get:
>
> grub -mkrescue abc.iso
> grub: invalid option -- 'm'
>
>
> mcm
>
>
>
Try again with
grub-mkrescue abc.iso

not
grub -mkrescue abc.iso


Regards,
Goh Lip


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-01-2009, 09:49 PM
user1
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

On Friday 30 October 2009 06:08:58 pm Goh Lip wrote:
> bqz69 wrote:
> > I have just installed ubuntu 9.10 on a pc, and grub2 worked perfect, and
> > made a grub2 login menu with my two other OS (wxp and 8.04), so I can
> > choose which of the three OS to login to at boot time

It did not work when I installed 9.10 on my other pc, a laptop. grub2 did not
find any other OS, probably because they are all on encrypted partitions except
the /boot partitions which are all on their own unencrypted partitions of 100
mb

I fixed it, and here is an example for ubuntu 9.04 with /boot on sda7 and / on
sda8:

I took the menu content lines from the /boot/grub/menu.lst of the 9.04:

title Ubuntu 9.04, kernel 2.6.28-11-generic sda7 enc 959
uuid da9ce616-b91d-4428-8987-28eac900f328
kernel /vmlinuz-2.6.28-11-generic root=/dev/mapper/sda8_crypt ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

and changd them into:

menuentry "ubuntu 9.04 sda7/8" {
set root=(hd0,7)
search --no-floppy --fs-uuid --set da9ce616-b91d-4428-8987-28eac900f328
linux /vmlinuz-2.6.28-11-generic root=/dev/mapper/sda8_crypt ro quiet splash
initrd /initrd.img-2.6.28-11-generic
}

and then copied it into /etc/grub.d/40_custom and then ran "sudo update-grub"
(which transfers it into /boot/grub/grub.cfg) this file must not be edited by
hand.

Then I went to the /etc/default/grub file, and changed 2 lines:

from:
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true

to:
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false

Then I ran "sudo update-grub" again, and then ubuntu 9.04 appeared in the
grub2 bootloader menu, and could be started as normal.

I am not sure if the second line above "set root=(hd0,7)" is necessary,
because I first inserted it as "set root=(hd0,1)" and it still worked??

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-02-2009, 02:00 AM
Goh Lip
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

user1 wrote:
> On Friday 30 October 2009 06:08:58 pm Goh Lip wrote:
>> bqz69 wrote:
>>> I have just installed ubuntu 9.10 on a pc, and grub2 worked perfect, and
>>> made a grub2 login menu with my two other OS (wxp and 8.04), so I can
>>> choose which of the three OS to login to at boot time
>
> It did not work when I installed 9.10 on my other pc, a laptop. grub2 did not
> find any other OS, probably because they are all on encrypted partitions except
> the /boot partitions which are all on their own unencrypted partitions of 100
> mb
>
> I fixed it, and here is an example for ubuntu 9.04 with /boot on sda7 and / on
> sda8:
>
> I took the menu content lines from the /boot/grub/menu.lst of the 9.04:
>
> title Ubuntu 9.04, kernel 2.6.28-11-generic sda7 enc 959
> uuid da9ce616-b91d-4428-8987-28eac900f328
> kernel /vmlinuz-2.6.28-11-generic root=/dev/mapper/sda8_crypt ro quiet splash
> initrd /initrd.img-2.6.28-11-generic
> quiet
>
> and changd them into:
>
> menuentry "ubuntu 9.04 sda7/8" {
> set root=(hd0,7)
> search --no-floppy --fs-uuid --set da9ce616-b91d-4428-8987-28eac900f328
> linux /vmlinuz-2.6.28-11-generic root=/dev/mapper/sda8_crypt ro quiet splash
> initrd /initrd.img-2.6.28-11-generic
> }
>
> and then copied it into /etc/grub.d/40_custom and then ran "sudo update-grub"
> (which transfers it into /boot/grub/grub.cfg) this file must not be edited by
> hand.
>
> Then I went to the /etc/default/grub file, and changed 2 lines:
>
> from:
> GRUB_HIDDEN_TIMEOUT=0
> GRUB_HIDDEN_TIMEOUT_QUIET=true
>
> to:
> #GRUB_HIDDEN_TIMEOUT=0
> GRUB_HIDDEN_TIMEOUT_QUIET=false
>
> Then I ran "sudo update-grub" again, and then ubuntu 9.04 appeared in the
> grub2 bootloader menu, and could be started as normal.
>
> I am not sure if the second line above "set root=(hd0,7)" is necessary,
> because I first inserted it as "set root=(hd0,1)" and it still worked??
>
See
http://bbs.archlinux.org/viewtopic.php?id=64545

but I think it should be okay to set root to /boot partition.
I don't have separate /boot partition so I am not 100% sure.
Obviously works in your case.

UUID no "da9ce616-b91d-4428-8987-28eac900f328", please get back if this
is for sda7 (/boot) or sda8 (/) ? (check with sudo blkid) This may
overide your set root (hd0,1).

Please get back to me. I like to know if this is the case.

Regards,
Goh Lip


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-02-2009, 02:42 AM
bqz69
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

> Obviously works in your case.
>
> UUID no "da9ce616-b91d-4428-8987-28eac900f328", please get back if this
> is for sda7 (/boot) or sda8 (/) ? (check with sudo blkid) This may
> overide your set root (hd0,1).
>
> Please get back to me. I like to know if this is the case.
>
> Regards,
> Goh Lip
user1@sda7-enc:~$ blkid
/dev/sda1: UUID="99116a6b-d7ac-44aa-9cfd-d1515a00237f" SEC_TYPE="ext2"
TYPE="ext3"
/dev/sda2: UUID="6b37c158-f783-4c5d-89c1-c29c194b0ee3" TYPE="crypt_LUKS"
/dev/sda5: UUID="06bddef9-9637-4f12-abe6-b6bc11928f33" SEC_TYPE="ext2"
TYPE="ext3"
/dev/sda6: UUID="767c8bf9-e8c0-42d7-a6b3-a9d1022274e5" SEC_TYPE="ext2"
TYPE="ext3"
/dev/sda7: UUID="da9ce616-b91d-4428-8987-28eac900f328" TYPE="ext3"
/dev/sda8: UUID="926c6519-7c40-48be-8472-ac0f6f228019" SEC_TYPE="ext2"
TYPE="ext3"
/dev/sda9: UUID="5034ae5b-8f88-46d3-96b8-1733f16a1836" SEC_TYPE="ext2"
TYPE="ext3"
/dev/sdb1: UUID="5bbc996b-765f-44bd-b72d-3b29dddc4e1c" SEC_TYPE="ext2"
TYPE="ext3"
/dev/sdb2: UUID="4f7cf52d-2013-4966-97b2-4df516de3281" TYPE="crypt_LUKS"
/dev/sdb3: UUID="1ad73220-67d4-4a6e-b6f2-355336d490c8" SEC_TYPE="ext2"
TYPE="ext3"
/dev/sdb5: UUID="06d967e5-3e75-4056-a1d5-e42fc0f4e84e" SEC_TYPE="ext2"
TYPE="ext3"
/dev/sdb6: UUID="35e33e1b-e506-4be4-96d8-65e4f5f7beae" SEC_TYPE="ext2"
TYPE="ext3"
/dev/mapper/sda8_crypt: UUID="344439b0-8f73-4fd1-8281-a02ae4c72d7c"
TYPE="ext3"
user1@sda7-enc:~$

I have problems with 8.04, /boot on sdb1 and / (the encrypted partition) on
sdb2

It will not show up on grub2's boot loader menu?

I can however boot sdb1/2 using super grub disk (SGD), so one should never
delete the grub legacy files, I think.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-02-2009, 03:13 AM
Goh Lip
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

bqz69 wrote:
>> Obviously works in your case.
>>
>> UUID no "da9ce616-b91d-4428-8987-28eac900f328", please get back if this
>> is for sda7 (/boot) or sda8 (/) ? (check with sudo blkid) This may
>> overide your set root (hd0,1).
>>
>> Please get back to me. I like to know if this is the case.
>>
>> Regards,
>> Goh Lip
> user1@sda7-enc:~$ blkid
> /dev/sda1: UUID="99116a6b-d7ac-44aa-9cfd-d1515a00237f" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/sda2: UUID="6b37c158-f783-4c5d-89c1-c29c194b0ee3" TYPE="crypt_LUKS"
> /dev/sda5: UUID="06bddef9-9637-4f12-abe6-b6bc11928f33" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/sda6: UUID="767c8bf9-e8c0-42d7-a6b3-a9d1022274e5" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/sda7: UUID="da9ce616-b91d-4428-8987-28eac900f328" TYPE="ext3"
> /dev/sda8: UUID="926c6519-7c40-48be-8472-ac0f6f228019" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/sda9: UUID="5034ae5b-8f88-46d3-96b8-1733f16a1836" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/sdb1: UUID="5bbc996b-765f-44bd-b72d-3b29dddc4e1c" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/sdb2: UUID="4f7cf52d-2013-4966-97b2-4df516de3281" TYPE="crypt_LUKS"
> /dev/sdb3: UUID="1ad73220-67d4-4a6e-b6f2-355336d490c8" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/sdb5: UUID="06d967e5-3e75-4056-a1d5-e42fc0f4e84e" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/sdb6: UUID="35e33e1b-e506-4be4-96d8-65e4f5f7beae" SEC_TYPE="ext2"
> TYPE="ext3"
> /dev/mapper/sda8_crypt: UUID="344439b0-8f73-4fd1-8281-a02ae4c72d7c"
> TYPE="ext3"
> user1@sda7-enc:~$
>

Yes, confirm that set root ought to be to /boot partition and that's
why you've got it working.

> I have problems with 8.04, /boot on sdb1 and / (the encrypted partition) on
> sdb2
>
> It will not show up on grub2's boot loader menu?
>
> I can however boot sdb1/2 using super grub disk (SGD), so one should never
> delete the grub legacy files, I think.
>
>

You can do this at terminal

sudo grub-mkconfig

Check the output carefully, you need to check at least 2 things..
o your modifications on 9.04 is correct as your previous post
o your 8.04 on sdb2 is showing up as well as other OS you may have
(still talking about the labtop?... I am slightly confused.. but
really.. never mind)


If all is okay... take your time checking this out...then...

sudo grub-mkconfig -o /boot/grub/grub.cfg

to set to your grub.cfg.

Regards,
Goh Lip


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-02-2009, 05:04 AM
user1
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

>Check the output carefully, you need to check at least 2 things..
>o your modifications on 9.04 is correct as your previous post
>o your 8.04 on sdb2 is showing up as well as other OS you may have
> (still talking about the labtop?... I am slightly confused.. but
>really.. never mind)
>
>If all is okay... take your time checking this out...then...
>
>sudo grub-mkconfig -o /boot/grub/grub.cfg

>to set to your grub.cfg.


The contents of 40_customs (setups for sda7 and sdb1) is copied into
grub.cfg without change

I noted, that sda8 from the blkid is on 2 different lines with
different contents?


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-02-2009, 06:47 AM
Goh Lip
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

user1 wrote:
> >Check the output carefully, you need to check at least 2 things..
> >o your modifications on 9.04 is correct as your previous post
> >o your 8.04 on sdb2 is showing up as well as other OS you may have
> > (still talking about the labtop?... I am slightly confused.. but
> >really.. never mind)
> >
> >If all is okay... take your time checking this out...then...
> >
> >sudo grub-mkconfig -o /boot/grub/grub.cfg
>
> >to set to your grub.cfg.
>
>
> The contents of 40_customs (setups for sda7 and sdb1) is copied into
> grub.cfg without change
>
> I noted, that sda8 from the blkid is on 2 different lines with
> different contents?
>
>

It is difficult for me without looking at your print out of "sudo
grub-mkconfig" to make inference, (I'll would think it'll work) but
since you've got it working from your modifications, to ensure it'll
really work, go to /etc/grub.d/40_custom add your modifications there.
(kdesudo kate /etc/grub.d/40_custom) Your entries will be there when you
do "sudo grub-mkconfig -o /boot/grub/grub.cfg"

Try out the machine generated and if all works, you can delete your
entries in 40_custom later. If not, you still have your modifications to
boot from.

Good luck.

Regards,
Goh Lip


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-02-2009, 06:57 AM
Goh Lip
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

Goh Lip wrote:

> really work, go to /etc/grub.d/40_custom add your modifications there.
> (kdesudo kate /etc/grub.d/40_custom)

Sorry, "sudo gedit /etc/grub.d/40_custom"
(i'm on kubuntu)

Your entries will be there when you
> do "sudo grub-mkconfig -o /boot/grub/grub.cfg"
>
> Try out the machine generated and if all works, you can delete your
> entries in 40_custom later. If not, you still have your modifications to
> boot from.
>

Yes, entries in 40_customs are not machine changed, so you'll have 2
entries. One from the machine generated 10_linux and the other from your
own 40_custom. You should try the first one first to check if this
works. Have you got the other OS too from 30_os-prober?

Regards,
Goh Lip


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-02-2009, 10:41 AM
Niels Larsen
 
Default When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy

Setup of 8.04 encrypted on sdb1 with /boot of 100 mb and sdb2 with / of 30 gb:

##########

The part from menu.lst of sdb1:
title*** *** Ubuntu 8.04, kernel 2.6.24-19-generic (sdb1 - boot) 32 bit encrypted

root*** *** (hd1,0)
kernel*** *** /vmlinuz-2.6.24-19-generic root=/dev/mapper/sdb2_crypt ro quiet splash
initrd*** *** /initrd.img-2.6.24-19-generic
quiet

##########

40_customs with content:
#!/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.


menuentry "ubuntu 9.04 sda7/8" {
set root=(hd0,7)
search --no-floppy --fs-uuid --set da9ce616-b91d-4428-8987-28eac900f328
linux /vmlinuz-2.6.28-11-generic root=/dev/mapper/sda8_crypt ro quiet splash

initrd*** *** /initrd.img-2.6.28-11-generic
}

menuentry "ubuntu 8.04 sdb1/2" {
set root=(hd1,1)
linux /vmlinuz-2.6.24-19-generic root=/dev/mapper/sdb2_crypt ro quiet splash
initrd*** *** /initrd.img-2.6.24-19-generic

}

##############

And here is the output of "sudo grub-mkconfig":

#
# 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 /boot/grub/grubenv ]; then
* have_grubenv=true
* load_env
fi
set default="ubuntu 9.04 sda7/8"
if [ ${prev_saved_entry} ]; then
* saved_entry=${prev_saved_entry}

* save_env saved_entry
* prev_saved_entry=
* save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
* set timeout=-1
else
* set timeout=20
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {

******* recordfail=1
******* if [ -n ${have_grubenv} ]; then save_env recordfail; fi
*** set quiet=1
*** insmod ext2
*** set root=(hd0,1)
*** search --no-floppy --fs-uuid --set c70e2db3-827b-45c8-9015-432c69e5a501

*** linux*** /vmlinuz-2.6.31-14-generic root=/dev/mapper/sda2_crypt ro** quiet splash
*** initrd*** /initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
******* recordfail=1

******* if [ -n ${have_grubenv} ]; then save_env recordfail; fi
*** insmod ext2
*** set root=(hd0,1)
*** search --no-floppy --fs-uuid --set c70e2db3-827b-45c8-9015-432c69e5a501
*** linux*** /vmlinuz-2.6.31-14-generic root=/dev/mapper/sda2_crypt ro single

*** initrd*** /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
*** linux16*** /memtest86+.bin

}
menuentry "Memory test (memtest86+, serial console 115200)" {
*** linux16*** /memtest86+.bin console=ttyS0,115200n8
}
### 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.

menuentry "ubuntu 9.04 sda7/8" {
set root=(hd0,7)
search --no-floppy --fs-uuid --set da9ce616-b91d-4428-8987-28eac900f328
linux /vmlinuz-2.6.28-11-generic root=/dev/mapper/sda8_crypt ro quiet splash

initrd*** *** /initrd.img-2.6.28-11-generic
}

menuentry "ubuntu 8.04 sdb1/2" {
set root=(hd1,1)
linux /vmlinuz-2.6.24-19-generic root=/dev/mapper/sdb2_crypt ro quiet splash
initrd*** *** /initrd.img-2.6.24-19-generic

}### END /etc/grub.d/40_custom ###

####################

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 01:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org