View previous topic :: View next topic |
Author |
Message |
opc0de.fr n00b
Joined: 20 Apr 2013 Posts: 9
|
Posted: Sat May 18, 2013 1:26 pm Post subject: [GRUB] upgrade |
|
|
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 |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1656
|
Posted: Sat May 18, 2013 3:08 pm Post subject: |
|
|
I think set set root='(md1)' or what ever software raid partition you boot from.
Check /etc/fstab or do a _________________ Donate to Gentoo |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Sat May 18, 2013 4:11 pm Post subject: |
|
|
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.... |
|
Back to top |
|
|
opc0de.fr n00b
Joined: 20 Apr 2013 Posts: 9
|
Posted: Sun May 19, 2013 11:29 pm Post subject: |
|
|
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 |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Mon May 20, 2013 12:44 am Post subject: |
|
|
read the error and do as it tells you....
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
|
|
|
Back to top |
|
|
opc0de.fr n00b
Joined: 20 Apr 2013 Posts: 9
|
Posted: Mon May 20, 2013 4:29 pm Post subject: |
|
|
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 |
|
|
opc0de.fr n00b
Joined: 20 Apr 2013 Posts: 9
|
Posted: Mon May 20, 2013 4:37 pm Post subject: |
|
|
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 |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1656
|
Posted: Tue May 21, 2013 7:56 pm Post subject: |
|
|
turtles wrote: | .. set set root='(md1)' or what ever software raid partition you boot from.
Check /etc/fstab or do a |
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue May 21, 2013 8:08 pm Post subject: |
|
|
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 |
|
|
|