Ask Your Question
0

RE:How do I migrate from grub to grub2?

asked 2011-12-31 09:43:38 -0500

MikeParker gravatar image

Hello! I'm seeing the same problem as Steve whilst upgrading my Fedora/WinXP dual-boot machine from x86_64 F14 to F16. Anaconda produced the following errors before hanging:

/lib64/libc.so.6 version GLIBC2.14 not found (required by /lib64/libgccs.so.1)

/lib64/libc.so.6 version GLIBC_2.14 not found (required by /usr/sbin/build-locale-archive)

When I manually restarted the machine, I get the same grub menu (with "Upgrade to Fedora 16.." and "Windows XP" as the only options). Like Steve, grub2 appears to be ready to use, kernel files present etc.

The output of fdisk -l /dev/sdb on my machine is:

Device Boot Start End Blocks Id System

/dev/sdb1 * 63 157286399 78643168+ 7 HPFS/NTFS

/dev/sdb2 157286400 158310399 512000 83 Linux

/dev/sdb3 158310400 312580095 77134848 8e Linux LVM

As a relative nube to playing around with MBRs and the like, and not wishing to screw my WinXP installation, I'm a little concerned about Steve's "the ntfs partition was too close to the MBR, so there was not enough room. Moved the partition a little".

Is this a problem I'm likely to have? If so, what do I do to resolve?

I'm assuming that partition sizing issues (if any) aside, I need to run:

grub2-install /dev/sdb

whilst logged in as root on a F16 x86_64 LiveCD. Can anyone confirm?

Also, should I be concerned about the GLIB_2.14 Anaconda error? Is this likely to have further consequences once I've successfully switched over to grub2?

Any help is greatly appreciated.

Cheers, Mike

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-01-01 03:56:51 -0500

MikeParker gravatar image

Update:

After much reading of forum posts, I booted up a Live F16 CD and had a look in the /var/log/anaconda/anaconda-program.log (IIRC) logfile which informed me that my embedding area was unusually small and that embedding the grub2 core image had failed, hence the failure of preupgrade to successfully complete. From what I understand, this is usually only resolvable by manually shrinking the NTFS partition with GParted (or similar) to free up the first 128 or so blocks. The Fedora "Known Problems" Wiki suggested that this issue should normally only affect those with a complex boot configuration (s/w or h/w RAID, for example). This shouldn't be my case as I've only got a couple of disks (albeit on two different controllers) with Linux/WinXP dual boot. Nothing too exotic!

Since my NTFS partition begins at block 63, I should have had the usual 32KB embedding area available (unlike several others in the same situation where Windows had started the NTFS partition at block 19 (or similar)). Before trying to move the NTFS partition, I thought I'd try running grub2-install from the LiveCD a go.

As root on the LiveCD and after mounting the boot partition at /media/f0ac648g..., I ran:

grub2-install --boot-directory=/media/[boot partition eg. f0ac648g.....] /dev/sdb

which completed without error! I rebooted, the grub2 boot menu appeared and the system booted cleanly into F16. FYI, no negative consequences of the GLIBC_2.14 error reported by anaconda have yet been seen.

I didn't shrink the NTFS partition to free up more blocks at the start of the disk and don't believe that by running grub2-install I regenerated the grub2 core.img file (although I guess it's possible that I regenerated a smaller core.img than the preupgrade run had generated). Consequently, assuming that core.img wasn't regenerated, I'm left thinking that the version of grub2-install on the LiveCD had a different interpretation of the size of the available embedding area. One version/invocation of grub2-install thought the embedding area was too small, another thought it wasn't so installed the image and completed successfully.

Thoughts welcome.

Mike

edit flag offensive delete link more
0

answered 2011-12-31 14:02:50 -0500

joe74 gravatar image

Why don't you try installing Fedora 16 from the DVD? Try to do a new clean installation.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-12-31 09:43:38 -0500

Seen: 812 times

Last updated: Jan 01 '12