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 > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-11-2010, 10:52 PM
mess-mate
 
Default lenny boot with grub2

Hi list,

i've installed sqeeze (amd64) and grub2 as the boot loader.

On an 2d hd lenny with* grub (older version with the stage.. files) is
installed.

Since grub2 is installed on the mbr no way to boot my lenny system.

Here is the lenny part on grub.cfg:

menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {

*** insmod ext2

*** set root='(hd2,5)'

*** search --no-floppy --fs-uuid --set
f26b56c1-4550-4815-b7bf-e5f114c6f9e4

*** linux /vmlinuz-2.6.28 root=/dev/sdc6 rootfstype=ext4 ro quiet
vga=788

*** initrd /initrd.img-2.6.28

}



UUID is disabled as default.

any help would be very apprecited.
 
Old 07-12-2010, 02:43 AM
Bob Proulx
 
Default lenny boot with grub2

mess-mate wrote:
> i've installed sqeeze (amd64) and grub2 as the boot loader.
> On an 2d hd lenny with grub (older version with the stage.. files) is
> installed.
> Since grub2 is installed on the mbr no way to boot my lenny system.

Have you tried the chainloader? I haven't so don't know but it seems
like the chainloader should be able to boot your Lenny grub version.

> Here is the lenny part on grub.cfg:
> menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
> insmod ext2
> set root='(hd2,5)'
> search --no-floppy --fs-uuid --set f26b56c1-4550-4815-b7bf-e5f114c6f9e4
> linux /vmlinuz-2.6.28 root=/dev/sdc6 rootfstype=ext4 ro quiet vga=788
> initrd /initrd.img-2.6.28
> }

Unfortunately I don't know grub2 configuration well enough to suggest
with any authority what the chainloader configuration would be. But
looking at the web right now it appears that something like this might
work. Untested.

menuentry "Lenny" {
insmod chain
set root='(hd2,5)'
chainloader +1
}

Bob
 
Old 07-12-2010, 03:41 AM
Greg Madden
 
Default lenny boot with grub2

On Sunday 11 July 2010 14:52:05 mess-mate wrote:
> Hi list,
> i've installed sqeeze (amd64) and grub2 as the boot loader.
> On an 2d hd lenny with grub (older version with the stage.. files) is
> installed.
> Since grub2 is installed on the mbr no way to boot my lenny system.
> Here is the lenny part on grub.cfg:
> menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
> insmod ext2
> set root='(hd2,5)'
> search --no-floppy --fs-uuid --set
> f26b56c1-4550-4815-b7bf-e5f114c6f9e4 linux /vmlinuz-2.6.28 root=/dev/sdc6
> rootfstype=ext4 ro quiet vga=788 initrd /initrd.img-2.6.28
> }
>
> UUID is disabled as default.
> any help would be very apprecited.

1. grub2 depends grub-pc
2. grub-pc 'suggests' os-prober'

Grub2 uses 'os-prober' to find other os's. I have had time when this process
did not work, make sure os-prober is installed, on my Lenny it is 'suggested'
for grub-pc.

Squeeze works here though.

If you use one mbr to boot all you will need to pick which os to configure
grub. If you can't get to the one os you want to manage your disks use an
alternate means to chroot into it, make sure os-prober is installed, then
run 'update-grub'.


--
Peace,

Greg


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201007111941.52594.gomadtroll@gci.net">http://lists.debian.org/201007111941.52594.gomadtroll@gci.net
 
Old 07-12-2010, 07:23 AM
mess-mate
 
Default lenny boot with grub2

On 07/12/2010 04:43 AM, Bob Proulx wrote:

mess-mate wrote:


i've installed sqeeze (amd64) and grub2 as the boot loader.
On an 2d hd lenny with grub (older version with the stage.. files) is
installed.
Since grub2 is installed on the mbr no way to boot my lenny system.



Have you tried the chainloader? I haven't so don't know but it seems
like the chainloader should be able to boot your Lenny grub version.



Here is the lenny part on grub.cfg:
menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
insmod ext2
set root='(hd2,5)'
search --no-floppy --fs-uuid --set f26b56c1-4550-4815-b7bf-e5f114c6f9e4
linux /vmlinuz-2.6.28 root=/dev/sdc6 rootfstype=ext4 ro quiet vga=788
initrd /initrd.img-2.6.28
}



Unfortunately I don't know grub2 configuration well enough to suggest
with any authority what the chainloader configuration would be. But
looking at the web right now it appears that something like this might
work. Untested.

menuentry "Lenny" {
insmod chain
set root='(hd2,5)'
chainloader +1
}

Bob


Thanks for the suggestion, do not work for me
 
Old 07-12-2010, 07:38 AM
mess-mate
 
Default lenny boot with grub2

On 07/12/2010 05:41 AM, Greg Madden wrote:

On Sunday 11 July 2010 14:52:05 mess-mate wrote:


Hi list,
i've installed sqeeze (amd64) and grub2 as the boot loader.
On an 2d hd lenny with grub (older version with the stage.. files) is
installed.
Since grub2 is installed on the mbr no way to boot my lenny system.
Here is the lenny part on grub.cfg:
menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
insmod ext2
set root='(hd2,5)'
search --no-floppy --fs-uuid --set
f26b56c1-4550-4815-b7bf-e5f114c6f9e4 linux /vmlinuz-2.6.28 root=/dev/sdc6
rootfstype=ext4 ro quiet vga=788 initrd /initrd.img-2.6.28
}

UUID is disabled as default.
any help would be very apprecited.



1. grub2 depends grub-pc
2. grub-pc 'suggests' os-prober'

Grub2 uses 'os-prober' to find other os's. I have had time when this process
did not work, make sure os-prober is installed, on my Lenny it is 'suggested'
for grub-pc.

Squeeze works here though.

If you use one mbr to boot all you will need to pick which os to configure
grub. If you can't get to the one os you want to manage your disks use an
alternate means to chroot into it, make sure os-prober is installed, then
run 'update-grub'.




grub-pc and os-prober are installed and created
grub.cfg after a probe of all my hd's.

So the lenny part was created as you can see above.

I've checked a possible install of grub-legacy but it seems completely
different from the one installed on lenny. ( no more stage files and so
on)

As you say, chrooting with a rescue-cd in lenny and setup a floppy grub
loader would be a possibility.

Had never a problem like this after a version change.
 
Old 07-12-2010, 07:48 AM
Tom H
 
Default lenny boot with grub2

On Sun, Jul 11, 2010 at 6:52 PM, mess-mate <messmate@free.fr> wrote:
>
> i've installed sqeeze (amd64) and grub2 as the boot loader.
> On an 2d hd lenny with* grub (older version with the stage.. files) is
> installed.
> Since grub2 is installed on the mbr no way to boot my lenny system.
> Here is the lenny part on grub.cfg:
> menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
> *** insmod ext2
> *** set root='(hd2,5)'
> *** search --no-floppy --fs-uuid --set f26b56c1-4550-4815-b7bf-e5f114c6f9e4
> *** linux /vmlinuz-2.6.28 root=/dev/sdc6 rootfstype=ext4 ro quiet vga=788
> *** initrd /initrd.img-2.6.28
> }
>
> UUID is disabled as default.

What does "no way to boot" mean?

Is Lenny's /boot on sdc5 or sdc6?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTim0v4CPS3fWSeTPEbXeTAZvjOzqxiJZdQQ9Jwef@mail .gmail.com">http://lists.debian.org/AANLkTim0v4CPS3fWSeTPEbXeTAZvjOzqxiJZdQQ9Jwef@mail .gmail.com
 
Old 07-12-2010, 08:15 AM
mess-mate
 
Default lenny boot with grub2

On 07/12/2010 09:48 AM, Tom H wrote:

On Sun, Jul 11, 2010 at 6:52 PM, mess-mate <messmate@free.fr> wrote:



i've installed sqeeze (amd64) and grub2 as the boot loader.
On an 2d hd lenny with* grub (older version with the stage.. files) is
installed.
Since grub2 is installed on the mbr no way to boot my lenny system.
Here is the lenny part on grub.cfg:
menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
*** insmod ext2
*** set root='(hd2,5)'
*** search --no-floppy --fs-uuid --set f26b56c1-4550-4815-b7bf-e5f114c6f9e4
*** linux /vmlinuz-2.6.28 root=/dev/sdc6 rootfstype=ext4 ro quiet vga=788
*** initrd /initrd.img-2.6.28
}

UUID is disabled as default.



What does "no way to boot" mean?

Is Lenny's /boot on sdc5 or sdc6?




It mean's i can't boot lenny. /dev, /proc, etc..
couldn't be mounted ( a common error message encountered , now and in
the past, when a root dir isn't found)

The Lenny-root is on sdc6 ext4. The /boot partition is on sdc5 ext3.
 
Old 07-12-2010, 09:51 AM
Tom H
 
Default lenny boot with grub2

On Mon, Jul 12, 2010 at 4:15 AM, mess-mate <messmate@free.fr> wrote:
> On 07/12/2010 09:48 AM, Tom H wrote:
>
> On Sun, Jul 11, 2010 at 6:52 PM, mess-mate <messmate@free.fr> wrote:
>
>
> i've installed sqeeze (amd64) and grub2 as the boot loader.
> On an 2d hd lenny with* grub (older version with the stage.. files) is
> installed.
> Since grub2 is installed on the mbr no way to boot my lenny system.
> Here is the lenny part on grub.cfg:
> menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
> *** insmod ext2
> *** set root='(hd2,5)'
> *** search --no-floppy --fs-uuid --set f26b56c1-4550-4815-b7bf-e5f114c6f9e4
> *** linux /vmlinuz-2.6.28 root=/dev/sdc6 ro quiet vga=788
> *** initrd /initrd.img-2.6.28
> }
>
> UUID is disabled as default.
>
> What does "no way to boot" mean?
>
> Is Lenny's /boot on sdc5 or sdc6?
>
> It mean's i can't boot lenny. /dev, /proc, etc.. couldn't be mounted ( a
> common error message encountered , now and in the past, when a root dir
> isn't found)
> The Lenny-root is on sdc6 ext4. The /boot partition is on sdc5 ext3.

So grub is loading your initrd and the latter cannot mount your
partitions, probably because you are using sdc6 instead of hdc6 or
because Lenny is recognizing sdc/hdc as sda/hda or sdb/hdb.

Run
blkid /dev/sdc6
Change your linux line to
linux /vmlinuz-2.6.28 root=/dev/disk/by-uuid/<output_of_blkid_above>
ro rootfstype=ext4 vga=788
or
linux /vmlinuz-2.6.28 root=/dev/hdc6 ro rootfstype=ext4 vga=788


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTilQryTTkUABdq45HwgMNVH0mR8sSM9FUKMDtjrU@mail .gmail.com">http://lists.debian.org/AANLkTilQryTTkUABdq45HwgMNVH0mR8sSM9FUKMDtjrU@mail .gmail.com
 
Old 07-12-2010, 01:05 PM
mess-mate
 
Default lenny boot with grub2

On 07/12/2010 11:51 AM, Tom H wrote:

On Mon, Jul 12, 2010 at 4:15 AM, mess-mate <messmate@free.fr> wrote:


On 07/12/2010 09:48 AM, Tom H wrote:

On Sun, Jul 11, 2010 at 6:52 PM, mess-mate <messmate@free.fr> wrote:


i've installed sqeeze (amd64) and grub2 as the boot loader.
On an 2d hd lenny with* grub (older version with the stage.. files) is
installed.
Since grub2 is installed on the mbr no way to boot my lenny system.
Here is the lenny part on grub.cfg:
menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
*** insmod ext2
*** set root='(hd2,5)'
*** search --no-floppy --fs-uuid --set f26b56c1-4550-4815-b7bf-e5f114c6f9e4
*** linux /vmlinuz-2.6.28 root=/dev/sdc6 ro quiet vga=788
*** initrd /initrd.img-2.6.28
}

UUID is disabled as default.

What does "no way to boot" mean?

Is Lenny's /boot on sdc5 or sdc6?

It mean's i can't boot lenny. /dev, /proc, etc.. couldn't be mounted ( a
common error message encountered , now and in the past, when a root dir
isn't found)
The Lenny-root is on sdc6 ext4. The /boot partition is on sdc5 ext3.



So grub is loading your initrd and the latter cannot mount your
partitions, probably because you are using sdc6 instead of hdc6 or
because Lenny is recognizing sdc/hdc as sda/hda or sdb/hdb.

Run
blkid /dev/sdc6
Change your linux line to
linux /vmlinuz-2.6.28 root=/dev/disk/by-uuid/<output_of_blkid_above>
ro rootfstype=ext4 vga=788
or
linux /vmlinuz-2.6.28 root=/dev/hdc6 ro rootfstype=ext4 vga=788




Ok, i don't know what happen exactly but the UUID is
completely defferent between grub.cfg and the

'blkid /dev/sdc6' results: UUID="7057a48b-9ed1-4c6d-bb02-5822dddd8b06" TYPE="ext4"

So i changed the uuid but still the same error and a busybox and initramfs.
No boot.
Can it be a bios problem or a GRUB bug ?
 
Old 07-12-2010, 01:19 PM
Tom H
 
Default lenny boot with grub2

On Mon, Jul 12, 2010 at 9:05 AM, mess-mate <messmate@free.fr> wrote:
> On 07/12/2010 11:51 AM, Tom H wrote:
> On Mon, Jul 12, 2010 at 4:15 AM, mess-mate <messmate@free.fr> wrote:
> On 07/12/2010 09:48 AM, Tom H wrote:
> On Sun, Jul 11, 2010 at 6:52 PM, mess-mate <messmate@free.fr> wrote:
>
> i've installed sqeeze (amd64) and grub2 as the boot loader.
> On an 2d hd lenny with* grub (older version with the stage.. files) is
> installed.
> Since grub2 is installed on the mbr no way to boot my lenny system.
> Here is the lenny part on grub.cfg:
> menuentry "Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)" {
> *** insmod ext2
> *** set root='(hd2,5)'
> *** search --no-floppy --fs-uuid --set f26b56c1-4550-4815-b7bf-e5f114c6f9e4
> *** linux /vmlinuz-2.6.28 root=/dev/sdc6 ro quiet vga=788
> *** initrd /initrd.img-2.6.28
> }
>
> UUID is disabled as default.
>
> What does "no way to boot" mean?
>
> Is Lenny's /boot on sdc5 or sdc6?
>
> It mean's i can't boot lenny. /dev, /proc, etc.. couldn't be mounted ( a
> common error message encountered , now and in the past, when a root dir
> isn't found)
> The Lenny-root is on sdc6 ext4. The /boot partition is on sdc5 ext3.
>
>
> So grub is loading your initrd and the latter cannot mount your
> partitions, probably because you are using sdc6 instead of hdc6 or
> because Lenny is recognizing sdc/hdc as sda/hda or sdb/hdb.
>
> Run
> blkid /dev/sdc6
> Change your linux line to
> linux /vmlinuz-2.6.28 root=/dev/disk/by-uuid/<output_of_blkid_above>
> ro rootfstype=ext4 vga=788
> or
> linux /vmlinuz-2.6.28 root=/dev/hdc6 ro rootfstype=ext4 vga=788
>
>
> Ok, i don't know what happen exactly but the UUID is completely defferent
> between grub.cfg and the
>
> 'blkid /dev/sdc6' results: UUID="7057a48b-9ed1-4c6d-bb02-5822dddd8b06"
> TYPE="ext4"
>
> So i changed the uuid but still the same error and a busybox and initramfs.
> No boot.
> Can it be a bios problem or a GRUB bug ?

careful, the uuid of the search line should be that of /boot not of /
so it should be the uuid of sdc6/hdc6.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTinnT2CqKkdab759sm8TAMhSYWSyfhrV6RDBU5ig@mail .gmail.com">http://lists.debian.org/AANLkTinnT2CqKkdab759sm8TAMhSYWSyfhrV6RDBU5ig@mail .gmail.com
 

Thread Tools




All times are GMT. The time now is 07:33 PM.

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