Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[GRUB] upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
opc0de.fr
n00b
n00b


Joined: 20 Apr 2013
Posts: 9

PostPosted: Sat May 18, 2013 1:26 pm    Post subject: [GRUB] upgrade Reply with quote

Hello, I want upgrade my ovh server to Grub 2.

Following is it necessary?

# grub2-mkconfig -o /boot/grub2/grub.cfg

Generating grub.cfg ...
Found linux image: /boot/bzImage-3.8.13-xxxx-grs-ipv6-64
done

And, where to install it?

# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000b8db7

Device Boot Start End Blocks Id System
/dev/sda1 * 4096 40962047 20478976 fd Linux raid autodetect
/dev/sda2 40962048 975718399 467378176 fd Linux raid autodetect
/dev/sda3 975718400 976764927 523264 82 Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00016636

Device Boot Start End Blocks Id System
/dev/sdb1 * 4096 40962047 20478976 fd Linux raid autodetect
/dev/sdb2 40962048 975718399 467378176 fd Linux raid autodetect
/dev/sdb3 975718400 976764927 523264 82 Linux swap / Solaris

Disk /dev/md2: 478.6 GB, 478595186688 bytes, 934756224 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/md1: 21.0 GB, 20970405888 bytes, 40957824 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Thanks
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1235

PostPosted: Sat May 18, 2013 3:08 pm    Post subject: Reply with quote

I think set set root='(md1)' or what ever software raid partition you boot from.
Check /etc/fstab or do a
Code:
cat /proc/mdstat

_________________
Donate to Gentoo
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1241
Location: 42.68n 85.41w

PostPosted: Sat May 18, 2013 4:11 pm    Post subject: Reply with quote

Code:
/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
/usr/sbin/grub2-install /dev/sda


is what i used on my setup though i do not use raid....
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
https://wiki.gentoo.org/index.php?title=Special:Contributions/666threesixes666&offset=&limit=500&target=666threesixes666
Back to top
View user's profile Send private message
opc0de.fr
n00b
n00b


Joined: 20 Apr 2013
Posts: 9

PostPosted: Sun May 19, 2013 11:29 pm    Post subject: Reply with quote

I followed this documentation: http://www.gentoo.org/doc/en/grub2-migration.xml

The result of the command: 'emerge sys-boot/grub:2' is:

Quote:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] dev-scheme/guile-1.8.8-r1:12 USE="deprecated nls regex threads -debug -debug-freelist -debug-malloc -discouraged -emacs -networking" 3,864 kB
[ebuild N ] sys-devel/autogen-5.15 894 kB
[ebuild U ~] sys-boot/grub-2.00-r3:2 [2.00:2] USE="nls -custom-cflags -debug -device-mapper -doc% -efiemu -libzfs -mount -sdl -static -truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -pc -qemu -qemu-mips -yeeloong" 5,017 kB

Total: 3 packages (1 upgrade, 2 new), Size of downloads: 9,774 kB

The following keyword changes are necessary to proceed:
(see "package.accept_keywords" in the portage(5) man page for more details)
# required by sys-boot/grub:2 (argument)
=sys-boot/grub-2.00-r3 ~amd64

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.


displayed by eix:
Quote:

[D] sys-boot/grub
Available versions:
(0) *0.92-r1 0.94-r1 0.96-r1 0.96-r2 ~0.96-r3 ~0.97 0.97-r2 0.97-r3 0.97-r4 0.97-r5 0.97-r6 ~0.97-r8 0.97-r9 0.97-r10 ~0.97-r11 0.97-r12 ~0.97-r13
(2) **1.99-r2 **2.00_beta6 ~2.00-r1 ~2.00-r2 ~2.00-r3 **9999
{{custom-cflags debug device-mapper doc efiemu grub_platforms_coreboot grub_platforms_efi-32 grub_platforms_efi-64 grub_platforms_emu grub_platforms_ieee1275 grub_platforms_multiboot grub_platforms_pc grub_platforms_qemu grub_platforms_qemu-mips grub_platforms_yeeloong libzfs mount +multislot ncurses netboot nls sdl static test truetype}}
Installed versions: 0.97-r12(07:27:59 PM 05/19/2013)(ncurses -custom-cflags -netboot -static) 2.00(2){tbz2}(03:38:55 PM 07/03/2012)(nls -custom-cflags -debug -device-mapper -efiemu -grub_platforms_coreboot -grub_platforms_efi-32 -grub_platforms_efi-64 -grub_platforms_emu -grub_platforms_ieee1275 -grub_platforms_multiboot -grub_platforms_pc -grub_platforms_qemu -grub_platforms_qemu-mips -grub_platforms_yeeloong -libzfs -mount -sdl -static -truetype)
Homepage: http://www.gnu.org/software/grub/
Description: GNU GRUB boot loader


For information: http://bpaste.net/show/100125/

What should I do?
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1241
Location: 42.68n 85.41w

PostPosted: Mon May 20, 2013 12:44 am    Post subject: Reply with quote

read the error and do as it tells you....

Code:

su

enter root password

Code:

echo "sys-boot/grub ~amd64" >> /etc/portage/package.accept_keywords
emerge -av grub


or let portage mangle your config files....

Code:

emerge -av --autounmask-write grub

_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
https://wiki.gentoo.org/index.php?title=Special:Contributions/666threesixes666&offset=&limit=500&target=666threesixes666
Back to top
View user's profile Send private message
opc0de.fr
n00b
n00b


Joined: 20 Apr 2013
Posts: 9

PostPosted: Mon May 20, 2013 4:29 pm    Post subject: Reply with quote

Ho! sorry!

(note: my question was primarily on the output of 'eix', I had two versions of grub version 1 and version 2 whereas version 2 was masked.)

I just read 'package.keywords' for the first time. And there was a line: '=sys-boot/grub-2.00 ~amd64'.
This line was not added by me.

Excuse me again.
Back to top
View user's profile Send private message
opc0de.fr
n00b
n00b


Joined: 20 Apr 2013
Posts: 9

PostPosted: Mon May 20, 2013 4:37 pm    Post subject: Reply with quote

But, what do http://bpaste.net/show/100125/ tell us about ?

Grub-2 is already installed on sda and sdb ? I have just to uninstall Grub-1 ? right ?

Thank you very much.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1235

PostPosted: Tue May 21, 2013 7:56 pm    Post subject: Reply with quote

turtles wrote:
.. set set root='(md1)' or what ever software raid partition you boot from.
Check /etc/fstab or do a
Code:
cat /proc/mdstat

I think you install grub on a "md" drive not a "sd" drive.
The sd drives are used by the software raid I think.
Your md drives have an ext4 filesystem that is layered by the Linux kernel on the 2 sd drives.
My guess is you configured
Code:
/dev/md1         f526eb76-f0f7-4519-9062-3eba8616691a   ext4

As boot.
See
http://wiki.gentoo.org/wiki/GRUB2#Booting_from_RAID_Array
Hope this helps
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32163
Location: 56N 3W

PostPosted: Tue May 21, 2013 8:08 pm    Post subject: Reply with quote

opc0de.fr,

Why do you need to update a bootloader that works, especially on a remote box?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum