Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is the recommended way to upgrade from grub-legacy to grub2

139 views
Skip to first unread message

Hendrik Boom

unread,
Jul 11, 2011, 10:40:01 AM7/11/11
to
When I search for ways to upgrade, all I find it people having trouble
with grub2.

I can't find the recommended upgrade path.

I have a laptop that boots squeeze using grub-legacy. The squeeze
release notes tell me that during upgrade from lenny I had the option to
chain-load grub2 from grub. That seems like a safe way to go.

Now I never actually did this upgrade, just kept updating testing every
few weeks, until testing got to be squeeze. What do I do now to do this
upgrade, and get this safe chain-load option? Just install grub2 using
aptitude? Or does the lenny->squeeze upgrade do something sneakier?

-- hendrik

PS. My laptop now dual-boots Windows XP and Debian squeeze. I plan to
have it triple-boot Windows XP, squeeze, and testing sometime in the
future, but I think I'd better get the bootloading sorted out first.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/ivf1rh$k42$1...@dough.gmane.org

Camaleón

unread,
Jul 11, 2011, 11:10:02 AM7/11/11
to
On Mon, 11 Jul 2011 14:37:37 +0000, Hendrik Boom wrote:

> When I search for ways to upgrade, all I find it people having trouble
> with grub2.
>
> I can't find the recommended upgrade path.

Debian wiki provides brief steps:

http://wiki.debian.org/Grub#Upgrading_from_v1_to_v2

(I hope they're still valid)



> I have a laptop that boots squeeze using grub-legacy. The squeeze
> release notes tell me that during upgrade from lenny I had the option to
> chain-load grub2 from grub. That seems like a safe way to go.
>
> Now I never actually did this upgrade, just kept updating testing every
> few weeks, until testing got to be squeeze. What do I do now to do this
> upgrade, and get this safe chain-load option? Just install grub2 using
> aptitude? Or does the lenny->squeeze upgrade do something sneakier?

(...)

Do you think it's now worth upgrading? Unless you have a special need on
GRUB 2, I would keep the current GRUB until you upgrade or reinstall your
system again.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/pan.2011.07...@gmail.com

Hendrik Boom

unread,
Jul 11, 2011, 11:40:01 AM7/11/11
to
On Mon, 11 Jul 2011 15:06:14 +0000, Camaleón wrote:

> On Mon, 11 Jul 2011 14:37:37 +0000, Hendrik Boom wrote:
>
>> When I search for ways to upgrade, all I find it people having trouble
>> with grub2.
>>
>> I can't find the recommended upgrade path.
>
> Debian wiki provides brief steps:
>
> http://wiki.debian.org/Grub#Upgrading_from_v1_to_v2
>
> (I hope they're still valid)

So it looks as if, now, just

install grub

is what gives me the chainloader from grub1 to grub2, and that's
presumably what the official lenny->squeeze stable upgrade does.


>
> Do you think it's now worth upgrading? Unless you have a special need on
> GRUB 2, I would keep the current GRUB until you upgrade or reinstall
> your system again.

well, the release notes say that it's something to do after upgrading to
squeeze so that I'll be ready for the next major upgrade. I plan soon to
copy my entire system to new partition(s) (isn't LVM wonderful) check
that both copies boot properly (yes, I know to edit my /etc/fstab
accordinglly) and then upgrade one of them to testing again to track
wheezy development. (I have a USB device that I have to compile my own
kernel driver for; keeping one stable system around ensures that I'll be
able to use it until the Debian kernel supports it directly.) I still
have a bit of space outside of LVM for a new /boot, but in the long run,
I may want to go to grub 2 to be able to put /boot into LVM too.

It's all a matter of getting ready for the future, not something urgently
needed for now.

-- hendrik
>
> Greetings,
>
> --
> Camaleón


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ivf5aq$7lk$1...@dough.gmane.org

Brian

unread,
Jul 11, 2011, 12:10:02 PM7/11/11
to
On Mon 11 Jul 2011 at 14:37:37 +0000, Hendrik Boom wrote:

> Now I never actually did this upgrade, just kept updating testing every
> few weeks, until testing got to be squeeze. What do I do now to do this
> upgrade, and get this safe chain-load option? Just install grub2 using
> aptitude? Or does the lenny->squeeze upgrade do something sneakier?

http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.en.html#update-grub


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110711154712.GI15615@desktop

Hendrik Boom

unread,
Jul 11, 2011, 12:50:02 PM7/11/11
to
On Mon, 11 Jul 2011 16:47:12 +0100, Brian wrote:

> On Mon 11 Jul 2011 at 14:37:37 +0000, Hendrik Boom wrote:
>
>> Now I never actually did this upgrade, just kept updating testing every
>> few weeks, until testing got to be squeeze. What do I do now to do
>> this upgrade, and get this safe chain-load option? Just install grub2
>> using aptitude? Or does the lenny->squeeze upgrade do something
>> sneakier?
>
> http://www.debian.org/releases/stable/i386/release-notes/ch-
upgrading.en.html#update-grub

Thanks.

I had found that paragraph, but it didn't say what to do if you were
already running squeeze. Just that you'd be given that option if you
were doing a wholesale upgrade from oldstable lenny to stable squeeze. I
never got that option in the year or two I was doing incremental updates
on testing. I had gotten an option to install grub 2 about a year and a
half ago, but that was before they offered chainloading from grub 1 to
grub 2. Given all the problems with unbootable systems being reported at
that time, I declined. The chainloading that's available now seems to be
the safe one.

-- hendrik


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ivf8vu$mrg$2...@dough.gmane.org

Brian

unread,
Jul 11, 2011, 1:40:02 PM7/11/11
to
On Mon 11 Jul 2011 at 16:39:26 +0000, Hendrik Boom wrote:

> I had found that paragraph, but it didn't say what to do if you were
> already running squeeze.

Sorry, so you had. I didn't quite pickup on your reference to the
Release Notes for Squeeze.

> Just that you'd be given that option if you
> were doing a wholesale upgrade from oldstable lenny to stable squeeze.

I took the option a few days after upgrading. No problems.

> I
> never got that option in the year or two I was doing incremental updates
> on testing. I had gotten an option to install grub 2 about a year and a
> half ago, but that was before they offered chainloading from grub 1 to
> grub 2. Given all the problems with unbootable systems being reported at
> that time, I declined. The chainloading that's available now seems to be
> the safe one.

upgrade-from-grub-legacy is in the grub-pc package and is probably on
your system. You're not obliged to use it. Staying with Legacy GRUB is
ok but sooner or later support for it is likely to disappear.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110711172034.GJ15615@desktop

Tom H

unread,
Jul 11, 2011, 2:10:02 PM7/11/11
to
On Mon, Jul 11, 2011 at 10:37 AM, Hendrik Boom <hen...@topoi.pooq.com> wrote:
>
> When I search for ways to upgrade, all I find it people having trouble
> with grub2.
>
> I can't find the recommended upgrade path.
>
> I have a laptop that boots squeeze using grub-legacy.  The squeeze
> release notes tell me that during upgrade from lenny I had the option to
> chain-load grub2 from grub.  That seems like a safe way to go.
>
> Now I never actually did this upgrade, just kept updating testing every
> few weeks, until testing got to be squeeze.  What do I do now to do this
> upgrade, and get this safe chain-load option?  Just install grub2 using
> aptitude?  Or does the lenny->squeeze upgrade do something sneakier?

/usr/sbin/upgrade-from-grub-legacy

(Any particular reason for upgrading?)


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/CAOdoSzCag9GvNìxg7-b3PSbn2frZ-5...@mail.gmail.com

Hendrik Boom

unread,
Jul 11, 2011, 3:30:01 PM7/11/11
to
On Mon, 11 Jul 2011 14:08:40 -0400, Tom H wrote:

> On Mon, Jul 11, 2011 at 10:37 AM, Hendrik Boom <hen...@topoi.pooq.com>
> wrote:
>>
>> When I search for ways to upgrade, all I find it people having trouble
>> with grub2.
>>
>> I can't find the recommended upgrade path.
>>
>> I have a laptop that boots squeeze using grub-legacy.  The squeeze
>> release notes tell me that during upgrade from lenny I had the option
>> to chain-load grub2 from grub.  That seems like a safe way to go.
>>
>> Now I never actually did this upgrade, just kept updating testing every
>> few weeks, until testing got to be squeeze.  What do I do now to do
>> this upgrade, and get this safe chain-load option?  Just install grub2
>> using aptitude?  Or does the lenny->squeeze upgrade do something
>> sneakier?
>
> /usr/sbin/upgrade-from-grub-legacy

Yes, after

install grub

once I'm sure grub2 is working by chainloading it from existing grub1.

>
> (Any particular reason for upgrading?)

Just to be ready for the future. It does look as if grub will do the job
today. Does wheezy still support grub 1? Will it when it becomes
stable? And will I need to boot from an LVM volume someday? I thought I
might, but I've found a 1G secondary partition lying around that I can
use instead for now.

-- hendrik


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ivfig9$mrg$3...@dough.gmane.org

Joe

unread,
Jul 11, 2011, 4:50:02 PM7/11/11
to
On Mon, 11 Jul 2011 19:21:45 +0000 (UTC)
Hendrik Boom <hen...@topoi.pooq.com> wrote:

> On Mon, 11 Jul 2011 14:08:40 -0400, Tom H wrote:
>
> > On Mon, Jul 11, 2011 at 10:37 AM, Hendrik Boom
> > <hen...@topoi.pooq.com> wrote:
> >>
> >> When I search for ways to upgrade, all I find it people having
> >> trouble with grub2.
> >>
> >

> > /usr/sbin/upgrade-from-grub-legacy
>
> Yes, after
>
> install grub
>
> once I'm sure grub2 is working by chainloading it from existing grub1.
>

I was one of those who had trouble when sid went through this process, a
couple of years ago now. As you say to begin with, there was no shortage
of people asking questions, but nobody giving any answers.

The system had been running fine on the chainloader for a few weeks, so
I tried the upgrade-from-grub-legacy, and the machine never booted
again. If I remember rightly, it would get to the message about
stage 1.5 and then hang. Absolutely nothing I could do would fix it, so
I reinstalled sid with grub2 from scratch. If I was now faced with a
machine running the chainloader, I'd leave it that way, and if it had
to be upgraded I'd go for ripping it all out and installing grub2 with
aptitude, and pray that it initialised the drive properly.

My system is not that exotic, but is 64 bit with LVM, and is kept up
to date. To be honest, I doubt that the upgrade had been tested on a
wide enough range of hardware and filesytems. Possibly it has by now.

--
Joe


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110711214...@jresid.jretrading.com

0 new messages