Discussion:
When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy
bqz69
2009-10-21 13:39:13 UTC
Permalink
I have 4 different ubuntu versions on my laptop.

I am using grub legacy, and I can install new versions, using super grub disk
SGD to set grub up after each new installation, and all works perfect.

Then I tried a month ago to use grub 2 and I lost my installation because I
could not fix it using SGD, I also did a lot of reading to fix the problem.

I now see, to my horror, that grub 2 is default in 9.10 which is being
released end of this month.

As I see it, I cannot even think of installing with grub 2.

Is there a choice, when installing 9.10 stable, so you can choose grub legacy
during installation.
Amedee Van Gasse (ub)
2009-10-21 13:52:23 UTC
Permalink
Post by bqz69
I have 4 different ubuntu versions on my laptop.
I am using grub legacy, and I can install new versions, using super grub disk
SGD to set grub up after each new installation, and all works perfect.
Then I tried a month ago to use grub 2 and I lost my installation because I
could not fix it using SGD, I also did a lot of reading to fix the problem.
I now see, to my horror, that grub 2 is default in 9.10 which is being
released end of this month.
As I see it, I cannot even think of installing with grub 2.
Is there a choice, when installing 9.10 stable, so you can choose grub legacy
during installation.
If you upgrade an existing 9.01 to 9.10 (no new installation), it will
keep grub-legacy. Grub2 is only for new installations.
And if you install grub2 when grub-legacy already exists, then it will
chainload so you can always fall back to grub-legacy.
bqz69
2009-10-21 16:01:51 UTC
Permalink
Post by Amedee Van Gasse (ub)
Post by bqz69
I have 4 different ubuntu versions on my laptop.
I am using grub legacy, and I can install new versions, using super grub disk
SGD to set grub up after each new installation, and all works perfect.
Then I tried a month ago to use grub 2 and I lost my installation because I
could not fix it using SGD, I also did a lot of reading to fix the problem.
I now see, to my horror, that grub 2 is default in 9.10 which is being
released end of this month.
As I see it, I cannot even think of installing with grub 2.
Is there a choice, when installing 9.10 stable, so you can choose grub legacy
during installation.
If you upgrade an existing 9.01 to 9.10 (no new installation), it will
keep grub-legacy. Grub2 is only for new installations.
I have tried to upgrade a couple of ubuntus, but it has never worked out well
for me, s? I intend to doing newinstalls, until further.
Post by Amedee Van Gasse (ub)
And if you install grub2 when grub-legacy already exists, then it will
chainload so you can always fall back to grub-legacy.
I have never really been able to find good documentation for grub/grub2, too
techincal for me, and I do not really understand this chainload thing, even as
I have got windows to double boot with linux (a long time ago).

I am working on a newbie level, even as I have quite some experience with
ubuntu - I try to make simple supplementary documentation for newbies.

So, what if I intermix with grub legacy, and get problems, how do I fix it -
still because grub is complicated to work with for newbies.

That's why I am using SGD, because it fix problems fairly easy.

SGD does not work together with grub2?

I never found out how to edit menu.lst when trying grub 2 out

To me grub must work automatic during newinstallation, and one must be able to
fix problems, using some kind of GUI.

I am follow up on this, because the bootloader is a VERY important part.
bqz69
2009-10-22 15:27:07 UTC
Permalink
Post by Amedee Van Gasse (ub)
Post by bqz69
I have 4 different ubuntu versions on my laptop.
I am using grub legacy, and I can install new versions, using super grub disk
SGD to set grub up after each new installation, and all works perfect.
Then I tried a month ago to use grub 2 and I lost my installation because I
could not fix it using SGD, I also did a lot of reading to fix the problem.
I now see, to my horror, that grub 2 is default in 9.10 which is being
released end of this month.
As I see it, I cannot even think of installing with grub 2.
Is there a choice, when installing 9.10 stable, so you can choose grub legacy
during installation.
If you upgrade an existing 9.01 to 9.10 (no new installation), it will
keep grub-legacy. Grub2 is only for new installations.
And if you install grub2 when grub-legacy already exists, then it will
chainload so you can always fall back to grub-legacy.
So, we suggest I have installed ubuntu 9.10 karmic koala stable using grub 2,
and now I can boot into this (and only this according to my experience).

Then I want to update my system, so my 4 OS, all using grub legacy, and this
new OS using grub 2 will come up with a combined grub boot loader menu (5
choices of OS), so I can choose whatever OS I want to use.

This is a imagined situation I will meet, when I have new installed 9.10.

Later I want to install 8.04 from the live cd with grub legacy.

What will I have to do in this situation, as I only can log into 8.04 just
after new installation.

I would use SGD according to my former experience, but it works not on grub 2.

Hope you understand my questions :-)

Thanks
Goh Lip
2009-10-22 17:27:06 UTC
Permalink
Post by bqz69
This is a imagined situation I will meet, when I have new installed 9.10.
Later I want to install 8.04 from the live cd with grub legacy.
What will I have to do in this situation, as I only can log into 8.04 just
after new installation.
I would use SGD according to my former experience, but it works not on grub 2.
You can boot into 9.10 using 8.04 grub-legacy by chainloading (manually)
Then at 9.10, update grub2 to set to sda and include newer 8.04 (if you
want to use 9.10 grub at sda).

Regards,
Goh Lip
bqz69
2009-10-22 18:15:42 UTC
Permalink
Post by Goh Lip
Post by bqz69
This is a imagined situation I will meet, when I have new installed 9.10.
Later I want to install 8.04 from the live cd with grub legacy.
What will I have to do in this situation, as I only can log into 8.04
just after new installation.
I would use SGD according to my former experience, but it works not on grub 2.
You can boot into 9.10 using 8.04 grub-legacy by chainloading (manually)
Then at 9.10, update grub2 to set to sda and include newer 8.04 (if you
want to use 9.10 grub at sda).
Thanks

Sorry, that is too technical for me to do, if I have 4 different OS to get
working, right after installation of 9.10.

I am speaking on behalf of other ubuntu people on my knowledge level which
might install 9.10 also, end of this month.

The bootloader is a very important part of linux, and quite complicated to
understand.

If you have a problem with a program when working inside ubuntu, you are
inside, but if you cannot get into an OS, you are sort of standing outside,
and cannot even google for help.

I predict a kind of storm from people asking for help, when they have
installed 9.10 - sort of when kde 4.2 suddenly was introduced to people used
to kde 3.5, and they could not even install 3.5 instead - hopefully I am
wrong.

I have read, that you can edit grub.cfg, and that it can work side by side
with menu.lst, but grub.cfg is too complicated to edit for me - it needs some
sort of a programmer, I find.
Goh Lip
2009-10-23 00:48:24 UTC
Permalink
Post by bqz69
Post by Goh Lip
Post by bqz69
This is a imagined situation I will meet, when I have new installed 9.10.
Later I want to install 8.04 from the live cd with grub legacy.
What will I have to do in this situation, as I only can log into 8.04
just after new installation.
I would use SGD according to my former experience, but it works not on grub 2.
You can boot into 9.10 using 8.04 grub-legacy by chainloading (manually)
Then at 9.10, update grub2 to set to sda and include newer 8.04 (if you
want to use 9.10 grub at sda).
Thanks
Sorry, that is too technical for me to do, if I have 4 different OS to get
working, right after installation of 9.10.
I am speaking on behalf of other ubuntu people on my knowledge level which
might install 9.10 also, end of this month.
The bootloader is a very important part of linux, and quite complicated to
understand.
If you have a problem with a program when working inside ubuntu, you are
inside, but if you cannot get into an OS, you are sort of standing outside,
and cannot even google for help.
I predict a kind of storm from people asking for help, when they have
installed 9.10 - sort of when kde 4.2 suddenly was introduced to people used
to kde 3.5, and they could not even install 3.5 instead - hopefully I am
wrong.
I have read, that you can edit grub.cfg, and that it can work side by side
with menu.lst, but grub.cfg is too complicated to edit for me - it needs some
sort of a programmer, I find.
Yes, I see your point. But then, 'most' people who thinks their
knowledge level is not 'there' would probably not install 4 OS on their
computers and they won't have any problem installing a single 9.10
system either if they can install a single windows OS.

If you need further clarifications, please get back to us.

Take care.

Regards,
Goh Lip
bqz69
2009-10-30 16:22:20 UTC
Permalink
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
Goh Lip
2009-10-30 17:08:58 UTC
Permalink
Post by bqz69
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
Mark C. Miller
2009-10-30 18:20:18 UTC
Permalink
Post by Goh Lip
Post by bqz69
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
Goh Lip
2009-10-30 18:34:14 UTC
Permalink
Post by Mark C. Miller
Post by Goh Lip
Post by bqz69
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
grub -mkrescue abc.iso
grub: invalid option -- 'm'
mcm
Try again with
grub-mkrescue abc.iso

not
grub -mkrescue abc.iso


Regards,
Goh Lip
Leonard Chatagnier
2009-10-22 17:12:13 UTC
Permalink
From: bqz69 <bqz69 at telia.com>
Subject: Re: When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy
To: "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com>
Date: Thursday, October 22, 2009, 10:27 AM
On Wednesday 21 October 2009 03:52:23
Post by Amedee Van Gasse (ub)
Post by bqz69
I have 4 different ubuntu versions on my laptop.
I am using grub legacy, and I can install new
versions, using super grub
Post by Amedee Van Gasse (ub)
Post by bqz69
disk
SGD to set grub up after each new installation,
and all works perfect.
Post by Amedee Van Gasse (ub)
Post by bqz69
Then I tried a month ago to use grub 2 and I lost
my installation because
Post by Amedee Van Gasse (ub)
Post by bqz69
I
could not fix it using SGD, I also did a lot of
reading to fix the
Post by Amedee Van Gasse (ub)
Post by bqz69
problem.
I now see, to my horror, that grub 2 is default
in 9.10 which is being
Post by Amedee Van Gasse (ub)
Post by bqz69
released end of this month.
As I see it, I cannot even think of installing
with grub 2.
Post by Amedee Van Gasse (ub)
Post by bqz69
Is there a choice, when installing 9.10 stable,
so you can choose grub
Post by Amedee Van Gasse (ub)
Post by bqz69
legacy
during installation.
If you upgrade an existing 9.01 to 9.10 (no new
installation), it will
Post by Amedee Van Gasse (ub)
keep grub-legacy. Grub2 is only for new
installations.
Post by Amedee Van Gasse (ub)
And if you install grub2 when grub-legacy already
exists, then it will
Post by Amedee Van Gasse (ub)
chainload so you can always fall back to grub-legacy.
So, we suggest I have installed ubuntu 9.10 karmic koala
stable using grub 2,
and now I can boot into this (and only this according to my
experience).
Then I want to update my? system, so my 4 OS, all
using grub legacy, and this
new OS using grub 2 will come up with a combined grub boot
loader menu (5
choices of OS), so I can choose whatever OS I want to use.
This is a imagined situation I will meet, when I have new
installed 9.10.
Later I want to install 8.04 from the live cd with grub
legacy.
What will I have to do in this situation, as I only can log
into 8.04 just
after new installation.
I would use SGD according to my former experience, but it
works not on grub 2.
sudo update-grub usually works even on mixed grub systems.

Leonard Chatagnier
lenc5570 at sbcglobal.net
Hope you understand my questions :-)
Thanks
bqz69
2009-10-26 15:30:12 UTC
Permalink
https://help.ubuntu.com/community/Grub2

I found this howto, and it is the best I have seen so far.

It is hard to understand, but I am still reading on it, and slowly learning,
lots of new file names to to pick up.
user1
2009-11-01 22:49:21 UTC
Permalink
Post by bqz69
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??
Goh Lip
2009-11-02 03:00:59 UTC
Permalink
Post by user1
Post by bqz69
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
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
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.
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
#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
bqz69
2009-11-02 03:42:35 UTC
Permalink
Post by Goh Lip
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 at 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 at 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.
Goh Lip
2009-11-02 04:13:54 UTC
Permalink
Post by bqz69
Post by Goh Lip
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 at 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 at sda7-enc:~$
Yes, confirm that set root ought to be to /boot partition and that's
why you've got it working.
Post by bqz69
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
bqz69
2009-11-03 23:45:15 UTC
Permalink
Post by Goh Lip
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.
I have:
windows on sda1
and
8.04 on sda2

Then I installed 9.10 on sda5 /boot, and sda6 / encrypted partition (sda5/6)
and grub2 could see all 3.

Then I installed debian on sda7
It could now see sda1, sda2, and sda7, but still not see sda5/6

I tried my grub2 rescue cd, hoping to see also sda5/6, but it could not.

Then I installed another 9.10 on sda8, hoping grub2 could see sda5/6, but it
could not, but it could see all the others.

I put grub/grub2 on MBR in all cases.

Any suggestions?
bqz69
2009-11-06 23:01:13 UTC
Permalink
I have kmail in desktop 1 and firefox in desktop 2

When I click on a link in kmail to open the link in firefox, firefox opens the
link all right, but always moves firefox to desktop 1, sitting on top of kmail.

Any suggestions, thanks :-)
user1
2009-11-02 06:04:39 UTC
Permalink
Post by Goh Lip
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?
Goh Lip
2009-11-02 07:47:53 UTC
Permalink
Post by user1
Post by Goh Lip
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
Goh Lip
2009-11-02 07:57:24 UTC
Permalink
Post by Goh Lip
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
Post by Goh Lip
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
bqz69
2009-11-03 23:57:19 UTC
Permalink
Post by Goh Lip
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.
I have:
windows on sda1
and
8.04 on sda2

Then I installed 9.10 on sda5 /boot, and sda6 / encrypted partition (sda5/6)
and grub2 could see all 3.

Then I installed debian on sda7
It could now see sda1, sda2, and sda7, but not see sda5/6
CORRECTION: I have removed the word "still" in above line - sorry

I tried my grub2 rescue cd, hoping to see also sda5/6, but it could not.

Then I installed another 9.10 on sda8, hoping grub2 could see sda5/6, but it
could not, but it could see all the others.

I put grub/grub2 on MBR in all cases.

Any suggestions?
--
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Goh Lip
2009-11-04 00:19:00 UTC
Permalink
Post by bqz69
Post by Goh Lip
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.
windows on sda1
and
8.04 on sda2
Then I installed 9.10 on sda5 /boot, and sda6 / encrypted partition (sda5/6)
and grub2 could see all 3.
Then I installed debian on sda7
It could now see sda1, sda2, and sda7, but not see sda5/6
CORRECTION: I have removed the word "still" in above line - sorry
I tried my grub2 rescue cd, hoping to see also sda5/6, but it could not.
Then I installed another 9.10 on sda8, hoping grub2 could see sda5/6, but it
could not, but it could see all the others.
I put grub/grub2 on MBR in all cases.
Any suggestions?
I take it your last install is 9.10 on sda8 and its grub2 cfg is set to
mbr and you can boot to it.

Do this then when booted to 9.10-sda8. At terminal

sudo grub-mkconfig

Can you see all of your OS including the 9.10 on sda5?

If yes, then do
sudo grub-mkconfig -o /boot/grub/grub.cfg

then
sudo grub-install /dev/sda



This will set your sda8 grub to mbr.

If, as I suspect you may want to do, use the sda5 grub, then boot to
sda5/6 9.10 and repeat above.


Note: you've mention you've got the rescue cd, if this is from my
earlier message on making iso from grub-mkrescue, yes? then you can
easily do the following..

at sh:grub> prompt, type "ls" (without quote marks)
this will show all partitions
type "search -f /boot/grub/grub.cfg" and it will show partitions with
grub.cfg.
type " search -f /boot/grub/menu.lst" and it will show partitions with
menu.lst


to boot to grub.cfg partitions, type
configfile (hd0,x)/boot/grub/grub.cfg

to boot to menu.lst and windows, type
set root=(hd0,x)
chainloader +1
boot

regards,
goh lip

ps: I like your tenacity
bqz69
2009-11-04 02:24:26 UTC
Permalink
Post by Goh Lip
Post by bqz69
windows on sda1
and
8.04 on sda2
Then I installed 9.10 on sda5 /boot, and sda6 / encrypted partition
(sda5/6) and grub2 could see all 3.
Then I installed debian on sda7
It could now see sda1, sda2, and sda7, but not see sda5/6
CORRECTION: I have removed the word "still" in above line - sorry
I tried my grub2 rescue cd, hoping to see also sda5/6, but it could not.
Then I installed another 9.10 on sda8, hoping grub2 could see sda5/6, but
it could not, but it could see all the others.
I put grub/grub2 on MBR in all cases.
Any suggestions?
I take it your last install is 9.10 on sda8 and its grub2 cfg is set to
mbr and you can boot to it.
Do this then when booted to 9.10-sda8. At terminal
sudo grub-mkconfig
Can you see all of your OS including the 9.10 on sda5?
I tried that, and I can see all except sda5
bqz69
2009-11-04 19:35:28 UTC
Permalink
Now my other pc also works.

I copied the menuentry from grub.cfg for sda5 into /etc/grub.d/40_custom and
ran "sudo update-grub" - it never showed sda5 in the output from the command,
but showed the other OS

The setup is:

sda1 windows xp
sda2 ubuntu 8.04 (grub legacy)
sda5/6 ubuntu 9.10 encrypted (grub2)
sda7 debian 5.03 lenny (grub legacy)
sda8 ubuntu 9.10 encrypted (grub2 - active grub.cfg

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

Here is the output of /boot/grub/grub.cfg on sda8:

#
# 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="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,8)
search --no-floppy --fs-uuid --set 6e57c9a2-6d40-4c16-a15f-3972c66ed134
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
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/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,8)
search --no-floppy --fs-uuid --set 6e57c9a2-6d40-4c16-a15f-3972c66ed134
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6e57c9a2-6d40-4c16-
a15f-3972c66ed134 ro quiet splash
initrd /boot/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,8)
search --no-floppy --fs-uuid --set 6e57c9a2-6d40-4c16-a15f-3972c66ed134
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6e57c9a2-6d40-4c16-
a15f-3972c66ed134 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 78c85867c8582622
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (on /dev/sda2)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set eac0242a-1d96-4ba9-899a-bd0300014147
linux /boot/vmlinuz-2.6.24-24-generic root=UUID=eac0242a-1d96-4ba9-899a-
bd0300014147 ro quiet splash
initrd /boot/initrd.img-2.6.24-24-generic
}
menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (recovery mode) (on
/dev/sda2)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set eac0242a-1d96-4ba9-899a-bd0300014147
linux /boot/vmlinuz-2.6.24-24-generic root=UUID=eac0242a-1d96-4ba9-899a-
bd0300014147 ro single
initrd /boot/initrd.img-2.6.24-24-generic
}
menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-16-generic (on /dev/sda2)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set eac0242a-1d96-4ba9-899a-bd0300014147
linux /boot/vmlinuz-2.6.24-16-generic root=UUID=eac0242a-1d96-4ba9-899a-
bd0300014147 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
}
menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-16-generic (recovery mode) (on
/dev/sda2)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set eac0242a-1d96-4ba9-899a-bd0300014147
linux /boot/vmlinuz-2.6.24-16-generic root=UUID=eac0242a-1d96-4ba9-899a-
bd0300014147 ro single
initrd /boot/initrd.img-2.6.24-16-generic
}
menuentry "Ubuntu 8.04.3 LTS, memtest86+ (on /dev/sda2)" {
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set eac0242a-1d96-4ba9-899a-bd0300014147
linux /boot/memtest86+.bin
}
menuentry "Debian GNU/Linux, kernel 2.6.26-2-686 (on /dev/sda7)" {
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set 92bdbd2a-3047-4be7-ad9a-cdc10ce32e47
linux /boot/vmlinuz-2.6.26-2-686 root=/dev/hda7 ro quiet
initrd /boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode) (on
/dev/sda7)" {
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set 92bdbd2a-3047-4be7-ad9a-cdc10ce32e47
linux /boot/vmlinuz-2.6.26-2-686 root=/dev/hda7 ro single
initrd /boot/initrd.img-2.6.26-2-686
}
### 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, Linux 2.6.31-14-generic sda5" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 88174262-51de-4e3b-9be5-ea2827afd2da
linux /vmlinuz-2.6.31-14-generic root=/dev/mapper/sda6_crypt ro quiet
splash
initrd /initrd.img-2.6.31-14-generic
}


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

Please note, that I only inserted the menuentry once into 40_custom
bqz69
2009-11-07 03:40:02 UTC
Permalink
Post by bqz69
Now my other pc also works.
I copied the menuentry from grub.cfg for sda5 into /etc/grub.d/40_custom
and ran "sudo update-grub" - it never showed sda5 in the output from the
command, but showed the other OS
I just found another minor problem with grub2

I updated 8.04 with software update, and the kernel was upgraded.

When I then booted, grub2 did not find the kernel upgraded version, so I had to
run "sudo update-grub", in onder to fix it, and then both versions showed up on
the boot menu, so this fixed the problem.

This I find should be done automatic by grub2.
bqz69
2009-11-05 22:39:40 UTC
Permalink
Then I tried to reinstall 9.10 on my laptop with following setup:

sda1 and sda2 9.10 encrypted

sda5 and sda6 8.10 encrypted

sda7 and sda8 9.10 encrypted

sdb1 and sdb2 8.04 encrypted

I reinstalled 9.10 encrypted on sda1 and sda2

It ended up with grub2 seing sda1 only

Then I edited from all the menu.lst and put those into 40_custom and ran "sudo
update-grub"

I managed grub2 to see sda1, sda7 and sdb1 (I could not get it to show sda5,
which I managed it to do during my first installation)

I also have to press shift button to get the grub2 bootloader showing, so I
need to edit /etc/default/grub to fix that, but newbies will have problems with
doing that, I predict.

So my overall impression, after twice having new installed 9.10 (which has
grub2 as default bootloader) on two different computers, is that the grub2 OS-
prober system does not work properly during all circumstances.

I also tried the grub-mkrescue command to create a rescue disk, but when I
boot the rescue cd, it only gives a "sh:grub>" prompt, i had expected it to
give the whole boot loader menu, in the same way that SGD (Super Grub Disk)
with grub legacy does.

When i boot with SGD I get sda5, sda7 and sdb1.
Goh Lip
2009-11-06 05:13:46 UTC
Permalink
Niels, I do not use encryption on partitions, but after googling, I am
under the impression that we may have problems accessing these
partitions from other OS. To access, this website shows how..

http://www.ubuntugeek.com/rescue-an-encrypted-luks-lvm-volume.html
Post by bqz69
sda1 and sda2 9.10 encrypted
sda5 and sda6 8.10 encrypted
sda7 and sda8 9.10 encrypted
sdb1 and sdb2 8.04 encrypted
I reinstalled 9.10 encrypted on sda1 and sda2
It ended up with grub2 seing sda1 only
See my note above, you are on sda1/2, so your grub2 can see only sda1
(/boot).
Post by bqz69
Then I edited from all the menu.lst and put those into 40_custom and ran "sudo
update-grub"
I managed grub2 to see sda1, sda7 and sdb1 (I could not get it to show sda5,
which I managed it to do during my first installation)
40_custom will show whatever you put there, (booting up is another
matter). Maybe you should recheck your entry for sda5.
Post by bqz69
I also have to press shift button to get the grub2 bootloader showing, so I
need to edit /etc/default/grub to fix that, but newbies will have problems with
doing that, I predict.
Should that be in /etc/grub.d instead of /etc/default/grub? What
modifications did you put in /etc/default/grub?
Post by bqz69
So my overall impression, after twice having new installed 9.10 (which has
grub2 as default bootloader) on two different computers, is that the grub2 OS-
prober system does not work properly during all circumstances.
Again, see first note.
Post by bqz69
I also tried the grub-mkrescue command to create a rescue disk, but when I
boot the rescue cd, it only gives a "sh:grub>" prompt, i had expected it to
give the whole boot loader menu, in the same way that SGD (Super Grub Disk)
with grub legacy does.
Yes, grub-mkrescue comes with empty grub.cfg. You get to only "sh:grub>"
prompt. There is supposed to have a command with "-o" (overlay) that
makes iso with your grub.cfg. I failed doing this. But ubuntu sometimes
doesn't get all grub2 revisions to its grub2. Ubuntu's grub is now
beta4. (other grub2 complex commands in earlier beta's failed too, but I
am not sure if this "-o" will work in beta4). But as long as you can
type in some simple commands at grub prompt, I don't think it's much of
a problem booting up any OS. It also doesn't make it computer-specific
as well. You can also make one on usb. There I've put in my grub.cfg
with lots of other customized entries.
Post by bqz69
When i boot with SGD I get sda5, sda7 and sdb1.
That is interesting for 2 reasons.
One, SGD is based on grub-legacy (they say that future SGD will be based
on grub2). To be able to read your sda5, sda7 and sdb1 means that these
partitions have menu.lst on them.
Two, that means SGD can access your encrypted partitions. I thought
grub-legacy can never access encrypted partitions.


Niels, I have a partition, distinct and separate from my OS /boots, to
do my booting to all my OS in any partition, so I don't really modify
any OS grub.cfg or menu.lst at all, even with kernel updates. This
partition was set using grub-legacy and I had it converted to grub2. I
also converted my 8.04-hardy (kde 3.5.10) to grub2 as well.

Regards,
Goh Lip
bqz69
2009-11-06 17:43:00 UTC
Permalink
Post by Goh Lip
Niels, I do not use encryption on partitions, but after googling, I am
under the impression that we may have problems accessing these
partitions from other OS. To access, this website shows how..
Yes, I cannot access other encrypted OS
Post by Goh Lip
What
modifications did you put in /etc/default/grub?
I changed "GRUB_HIDDEN_TIMEOUT=0" to "#GRUB_HIDDEN_TIMEOUT=0"
Post by Goh Lip
But as long as you can
type in some simple commands at grub prompt, I don't think it's much of
a problem booting up any OS.
Ok, I agree on that, but even that might be a problem for most newbies *laugh*
Post by Goh Lip
I thought
grub-legacy can never access encrypted partitions.
Yes, that's the reason I have /boot sda1 (unencrypted) one its own partition,
and then / sda2 (encrypted) on another partition.

I am installing all my encrypted ubuntu OS with ubuntu alternate cd.

I have made a minihowto about how to do that (a bit old):

http://www.minihowto.org/encrypted_ubuntu_804_install_howto/Encrypted ubuntu
8.04 install a small minihowto.html
Post by Goh Lip
Niels, I have a partition, distinct and separate from my OS /boots, to
do my booting to all my OS in any partition, so I don't really modify
any OS grub.cfg or menu.lst at all, even with kernel updates. This
partition was set using grub-legacy and I had it converted to grub2. I
also converted my 8.04-hardy (kde 3.5.10) to grub2 as well.
Ok, that's too complicated for me, but probably a possibility. :-)
Goh Lip
2009-11-06 17:56:10 UTC
Permalink
Post by bqz69
http://www.minihowto.org/encrypted_ubuntu_804_install_howto/Encrypted ubuntu
8.04 install a small minihowto.html
Nice, a bit long though, I've bookmarked it to read more at leisure.

Well, take care.

Regards,
Goh Lip
bqz69
2009-11-06 23:14:58 UTC
Permalink
Post by Goh Lip
Nice, a bit long though, I've bookmarked it to read more at leisure.
Here is a shorter one:

http://www.minihowto.org/easy_install_of_encrypted_ubuntu_804_minihowto/easy
install of encrypted ubuntu 8.04 minihowto.html
bqz69
2009-11-13 02:10:43 UTC
Permalink
I have tried to use gtk-recordmydesktop and xvidcap to capture a screenshot of
drag and drop, but none can do that.

Then I found, that wink can do that, but it gives out a swf file without audio.

I can record ogg audio with audacity, and my intention was to merge the swf
video with the ogg audio.

I can merge ogv video with ogg audio to an ogv video with sound.

I tried using winff to convert swf to avi, and it works, but the avi video
plays way too fast, and I have also tried a lot of ffmpeg and mencoder and
edit.py suggestions without any luck.

I have found out, how to drag and drop images and links from firefox into
kompozer version 0.8b1

I have a plan about making a tutorial video about kompozer

Any suggestions?
NoOp
2009-11-13 04:51:31 UTC
Permalink
Post by bqz69
Any suggestions?
Yes. Start a new thread.

bqz69
2009-11-04 02:56:03 UTC
Permalink
Post by Goh Lip
I take it your last install is 9.10 on sda8 and its grub2 cfg is set to
mbr and you can boot to it.
Do this then when booted to 9.10-sda8. At terminal
sudo grub-mkconfig
Can you see all of your OS including the 9.10 on sda5?
Strange, that on my laptop grub2 cannot see another grub legacy dist (8.04),
and on my other pc grub2 cannot see another grub2 dist (9.10)
NoOp
2009-11-04 03:43:15 UTC
Permalink
Post by bqz69
Post by Goh Lip
I take it your last install is 9.10 on sda8 and its grub2 cfg is set to
mbr and you can boot to it.
Do this then when booted to 9.10-sda8. At terminal
sudo grub-mkconfig
Can you see all of your OS including the 9.10 on sda5?
Strange, that on my laptop grub2 cannot see another grub legacy dist (8.04),
and on my other pc grub2 cannot see another grub2 dist (9.10)
$ sudo grub-install
$ sudo update-grub

Will usually fix the problem. See:
http://www.ubuntu.com/getubuntu/releasenotes/910
<http://www.ubuntu.com/getubuntu/releasenotes/910#Switching to ext4
requires manually updating grub>
bqz69
2009-11-04 04:31:11 UTC
Permalink
Post by NoOp
Post by bqz69
Strange, that on my laptop grub2 cannot see another grub legacy dist
(8.04), and on my other pc grub2 cannot see another grub2 dist (9.10)
$ sudo grub-install
$ sudo update-grub
I tried that, and it did not help.

I am using ext3
Goh Lip
2009-11-04 05:42:08 UTC
Permalink
Post by bqz69
Post by NoOp
Post by bqz69
Strange, that on my laptop grub2 cannot see another grub legacy dist
(8.04), and on my other pc grub2 cannot see another grub2 dist (9.10)
$ sudo grub-install
$ sudo update-grub
I tried that, and it did not help.
I am using ext3
Have you tried using the 'rescue' cd ?

I wrote...
Post by bqz69
Note: you've mention you've got the rescue cd, if this is from my
earlier message on making iso from grub-mkrescue, yes? then you can
easily do the following..
at sh:grub> prompt, type "ls" (without quote marks)
this will show all partitions
type "search -f /boot/grub/grub.cfg" and it will show partitions with
grub.cfg.
type " search -f /boot/grub/menu.lst" and it will show partitions with
menu.lst
to boot to grub.cfg partitions, type
configfile (hd0,x)/boot/grub/grub.cfg
to boot to menu.lst and windows, type
set root=(hd0,x)
chainloader +1
boot
Does "search -f /boot/grub/grub.cfg" give you (hd0,5)? Pls get back with
the output. It should have this and boot using

configfile (hd0,5)/boot/grub/grub.cfg

If booted to sda5/6, then do the grub-mkconfig and the grub-install.


Regards,
Goh Lip

Following your own threads is confusing enough. Please reply using the
correct threads. And get back on our suggestions or queries so we can
follow your progressions.
Goh Lip
2009-11-04 06:28:45 UTC
Permalink
Post by Goh Lip
Post by bqz69
Post by NoOp
Post by bqz69
Strange, that on my laptop grub2 cannot see another grub legacy dist
(8.04), and on my other pc grub2 cannot see another grub2 dist (9.10)
$ sudo grub-install
$ sudo update-grub
I tried that, and it did not help.
I am using ext3
Have you tried using the 'rescue' cd ?
I wrote...
Post by bqz69
Note: you've mention you've got the rescue cd, if this is from my
earlier message on making iso from grub-mkrescue, yes? then you can
easily do the following..
at sh:grub> prompt, type "ls" (without quote marks)
this will show all partitions
type "search -f /boot/grub/grub.cfg" and it will show partitions with
grub.cfg.
type " search -f /boot/grub/menu.lst" and it will show partitions with
menu.lst
to boot to grub.cfg partitions, type
configfile (hd0,x)/boot/grub/grub.cfg
to boot to menu.lst and windows, type
set root=(hd0,x)
chainloader +1
boot
Does "search -f /boot/grub/grub.cfg" give you (hd0,5)? Pls get back with
the output. It should have this and boot using
configfile (hd0,5)/boot/grub/grub.cfg
If booted to sda5/6, then do the grub-mkconfig and the grub-install.
I add, if above fail, then at any grub2 prompt, either at sda9 or
mkrescue cd......

set root=(hd0,5)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic


If this cannot boot, then boot to sda8, 9.10 and at terminal,
sudo grub-install --root-directory=/dev/sda5 /dev/sda

check from sda8 if grub.cfg at sda5 has entries, if not copy entries
from grub.cfg of sda8 to grub.cfg of sda5. and add the following as
first entry

set root=(hd0,5)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic

Then reboot.

If this again fails, I am sorry I cannot go further, maybe it has to do
with your encrypted sda6.

But, let us know, okay?

Good luck,
Regards,
Goh Lip
Goh Lip
2009-11-04 06:46:57 UTC
Permalink
Goh Lip wrote:

Corrections appended...
Post by Goh Lip
I add, if above fail, then at any grub2 prompt, either at sda9 or
mkrescue cd......
I mean sda8 instead of sda9 above
Post by Goh Lip
set root=(hd0,5)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
set root=(hd0,5)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
boot

('boot' was missing)
bqz69
2009-11-04 14:42:47 UTC
Permalink
I did following from sda8 910
Post by Goh Lip
Post by Goh Lip
at sh:grub> prompt, type "ls" (without quote marks)
This gave (hd0), (hd0,1) (hd0,2) (hd0,3) (hd0,5) (hd0,6) (hd0,7) (hd0,8)
Post by Goh Lip
Post by Goh Lip
type "search -f /boot/grub/grub.cfg" and it will show partitions with
grub.cfg.
This gave hd0,8 (and not hd0,5/6)
Post by Goh Lip
Post by Goh Lip
type " search -f /boot/grub/menu.lst" and it will show partitions with
menu.lst
This gave both hd0,7 and hd0.2 (which are debian and 8.04)
Post by Goh Lip
set root=(hd0,5)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
I tried this, and it did not work.
Post by Goh Lip
If this cannot boot, then boot to sda8, 9.10 and at terminal,
sudo grub-install --root-directory=/dev/sda5 /dev/sda
I did this in sda8 in a terminal, and here is the output:

user1 at fs-910-sda8:~$ sudo grub-install --root-directory=/dev/sda5 /dev/sda
[sudo] password for user1:
mkdir: cannot create directory `/dev/sda5/boot': Not a directory
user1 at fs-910-sda8:~$
Post by Goh Lip
check from sda8 if grub.cfg at sda5 has entries, if not copy entries
from grub.cfg of sda8 to grub.cfg of sda5. and add the following as
first entry
I can see sda5 and mount it from sda8
Goh Lip
2009-11-04 15:54:56 UTC
Permalink
Post by bqz69
I did following from sda8 910
Post by Goh Lip
Post by Goh Lip
at sh:grub> prompt, type "ls" (without quote marks)
This gave (hd0), (hd0,1) (hd0,2) (hd0,3) (hd0,5) (hd0,6) (hd0,7) (hd0,8)
Post by Goh Lip
Post by Goh Lip
type "search -f /boot/grub/grub.cfg" and it will show partitions with
grub.cfg.
This gave hd0,8 (and not hd0,5/6)
This is not good. It means there is no grub.cfg. for your sda5 (boot)
Post by bqz69
Post by Goh Lip
Post by Goh Lip
type " search -f /boot/grub/menu.lst" and it will show partitions with
menu.lst
This gave both hd0,7 and hd0.2 (which are debian and 8.04)
Post by Goh Lip
set root=(hd0,5)
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
I tried this, and it did not work.
Worse, your boot files vmlinuz and initrd are not there either.
Post by bqz69
Post by Goh Lip
If this cannot boot, then boot to sda8, 9.10 and at terminal,
sudo grub-install --root-directory=/dev/sda5 /dev/sda
user1 at fs-910-sda8:~$ sudo grub-install --root-directory=/dev/sda5 /dev/sda
mkdir: cannot create directory `/dev/sda5/boot': Not a directory
user1 at fs-910-sda8:~$
Here, I was hoping we can force to make boot files from your sda8 to
sda5,(and set sda5 boot to sda) but apparently it failed.
Post by bqz69
Post by Goh Lip
check from sda8 if grub.cfg at sda5 has entries, if not copy entries
from grub.cfg of sda8 to grub.cfg of sda5. and add the following as
first entry
I can see sda5 and mount it from sda8
This is if we succeed, we ensure grub.cfg is there, especially for the
sda5 entry.


Okay, Niels, maybe ... it's the encrypted partitions that you set up
preventing access to sda5. I don't know. But ...we can still try to copy
the boot files from sda8 to sda5 the old fashioned way, taking care to
set the correct UUID number of sda5 or just /dev/sda5 or
root=LABEL=xxxxx, I wonder though if you can do this when the partition
is encrypted causing the same failure as before. Do you want to try this
out? Let us know how it turns out.


Perhaps my buddy, Tom H, can put in some input? He had given me some
pointers lately, he may throw some light on this.

Take care, good luck.

Regards,
Goh Lip
bqz69
2009-11-04 18:27:01 UTC
Permalink
Post by Goh Lip
Okay, Niels, maybe ... it's the encrypted partitions that you set up
It seems as if grub2 does not see the last of the inserted setup groups in
40_custom filen.

I inserted the last group twice, and now grub2 sees it.

This is for my laptop, where alle my OS are encrypted, and all are grub legacy
except for my 9.10

My OS setup is:

9.10 on sda1
8.10 on sda5
9.04 on sda7
8.04 on sdb1

Here is the last part of grub.cfg:

### 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)
search --no-floppy --fs-uuid --set 5bbc996b-765f-44bd-b72d-3b29dddc4e1c
linux /vmlinuz-2.6.24-19-generic root=/dev/mapper/sdb2_crypt ro quiet splash
initrd /initrd.img-2.6.24-19-generic
}

menuentry "Ubuntu 8.10, kernel 2.6.27-7-generic (sda5/6)" {
set root=(hd0,5)
search --no-floppy --fs-uuid --set 06bddef9-9637-4f12-abe6-b6bc11928f33
linux /vmlinuz-2.6.27-7-generic root=/dev/mapper/sda6_crypt ro quiet splash
initrd /initrd.img-2.6.27-7-generic
}

menuentry "Ubuntu 8.10, kernel 2.6.27-7-generic (sda5/6)" {
set root=(hd0,5)
search --no-floppy --fs-uuid --set 06bddef9-9637-4f12-abe6-b6bc11928f33
linux /vmlinuz-2.6.27-7-generic root=/dev/mapper/sda6_crypt ro quiet splash
initrd /initrd.img-2.6.27-7-generic
}### END /etc/grub.d/40_custom ###

I however only see the 8.10 entry once on the grub2 boot loader menu!
Goh Lip
2009-11-05 01:39:54 UTC
Permalink
Post by bqz69
It seems as if grub2 does not see the last of the inserted setup groups in
40_custom filen.
I inserted the last group twice, and now grub2 sees it.
<snip>
Post by bqz69
I however only see the 8.10 entry once on the grub2 boot loader menu!
That's interesting and unusual, try to duplicate another OS to 40_custom
and see if that is also the case and then you can write a bug report to
alert and help the developers. I had also entries in my 40_custom but my
grub.cfg contains all of them.

One more thing that you can help me understand encrypted partitions. In
this case of your labtop and all your partitions are encrpted, does the
30_prober detect and create entries in the grub.cfg? Apparently, it did
not for your desktop where the partitions are also encrypted as well.


Regards,
Goh Lip
bqz69
2009-11-05 15:16:16 UTC
Permalink
grub2 seems to work ok, but it needs some editing, to show all partitions in
the bootloader menu.

I just tried to reinstall 9.10 on sda8 to test once more how grub2 worked.

I have the following partition setup:
sda1 windows xp

sda2 8.04 with grub legacy

sda5 9.10 /boot
sda6 9.10 / encrypted
(9.10 are using grub2 as per default)

sda7 debian 5.03 grub legacy

sda8 Here I installed 9.10 (with grub2)

After installation on sda8, grub2 Found: sda1, sda2 and sda7 - it did not find
sda5.

Then I logged into sda8, and copied the menuentry group FROM
/boot/grub/grub.cfg on sda5 TO /etc/grub.d/40_custom on sda8 and then I ran
"sudo update-grub"

When I did this, all partitions was shown to be found except sda5

Then I booted again, and now the grub2 bootloader menu showed all partitions
as expected.

I am using ext3 on all my ubuntu OS.

I find it a bit strange, that grub2 find the 2 OS with grub legacy but not the
one with grub2

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

Here is shown the menuentry group i copied from sda5 to sda8 (it is just an
example):

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,5)
search --no-floppy --fs-uuid --set 6e57c9a2-6d40-4c16-a15f-3972c66ed134
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=6e57c9a2-6d40-4c16-
a15f-3972c66ed134 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
Niels Larsen
2009-11-02 11:41:52 UTC
Permalink
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 ###

####################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20091102/815c0552/attachment.html>
Goh Lip
2009-11-04 13:33:28 UTC
Permalink
Post by Niels Larsen
Setup of 8.04 encrypted on sdb1 with /boot of 100 mb and sdb2 with / of
<snip>
Sorry, Niels, your question is?
And is this a part of the thread topic at hand?
I really do not understand your message.

Regards,
Goh Lip
bqz69
2009-11-04 13:55:48 UTC
Permalink
This is some kind og mistake
Post by Goh Lip
Sorry, Niels, your question is?
And is this a part of the thread topic at hand?
I really do not understand your message.
Regards,
Goh Lip
bqz69
2009-11-04 13:59:15 UTC
Permalink
Post by Niels Larsen
Setup of 8.04 encrypted on sdb1 with /boot of 100 mb and sdb2 with / of 30
##########
This is from my laptop, which has same kind of problem as my other pc, so
maybe we should leave this laptop out for the time being :-)
Loading...