You are not logged in.

#1 2010-03-03 15:20:17

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 174

[solved] reinstall grub

Hello,

I've currently a multi-boot : archlinux, debian, ubuntu
I almost only use archlinux and sometimes ubuntu. My debian is not working anymore (xorg) but the grub is on it

my partition table is :

Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sda1               1       22568   181277428+   5  Etendue
/dev/sda2           22569       25179    20972857+   c  W95 FAT32 (LBA)   # empty partition
/dev/sda3   *       25180       30400    41937682+   7  HPFS/NTFS         # windows
/dev/sda5               1       15150   121692312   83  Linux             # data
/dev/sda6           15164       15294     1052226   82  Linux swap / Solaris
/dev/sda7           15151       15163      104391   83  Linux             # boot (debian)
/dev/sda8           17906       19945    16386268+  83  Linux             # debian
/dev/sda9           15295       17905    20972826   83  Linux             # ubuntu
/dev/sda10          19946       22568    21069216   83  Linux             # archlinux

For every distro the system and the home is on the same partition (but I'm sharing sda5 for my data) except for debian where I put the /boot on a different partition (sda7)
I want now to manage the boot loader from archlinux, so install grub2 on /sda7 but from arch and not debian

Do you know how I can do that ?
(I don't know if I'm clear)

thank you

Last edited by martvefun (2010-03-08 13:16:14)


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Dell Vostro

Offline

#2 2010-03-03 16:53:36

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: [solved] reinstall grub

Let me see if I can help clarify the question.

You currently have a bootloader on /dev/sda7, /dev/sda9, /dev/sda10, and somewhere else.
You want to use 1 bootloader now instead of 4.
Did I get this right?

Or do you just want the arch bootloader to be the primary and the debian one be chainloaded?

Offline

#3 2010-03-03 19:50:34

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 174

Re: [solved] reinstall grub

No it's not exactly that
I've grub2 installed on sda7 (boot partition) from the debian on sda8
I've grub installed on ubuntu (sda9) but not used (was automatically installed but I didn't rewrite the mbr)
I've installed nothing on archlinux (sda10) but as I looked in the /boot folder, it seems that there is grub1 installed

I want to have nothing to do any more with debian on sda8, don't change anything with ubuntu and use only archlinux for the bootloader

I'm not sure on how to do it
1. add a line in /etc/fstab on sda10 to automount sda7 at /boot
2. remove this line on sda8
3. on archlinux, with the /boot mounted, do "pacman -S grub2"
is it right ?


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Dell Vostro

Offline

#4 2010-03-03 20:29:35

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: [solved] reinstall grub

Before you do step one, you should remove the /boot directory on /dev/sda10 so there's no conflict when you mount sda7 as /boot.

Other than that, what you said sounds right.

Offline

#5 2010-03-07 09:47:15

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 174

Re: [solved] reinstall grub

I tried doing that
1. copy the files on each /boot folders (just in case)
2. empty the /boot folders
3. change the fstab on arch and debian
4. mount sda7 on /boot
5. install grub2 (and remove grub1 by the way)
6. cp the files "kernel26", "system.map26", "vmlinuz26" from my old /boot folder to the new (as there wasn't any now)
7. generated a grub.cfg with "grub-mkconfig -o /boot/grub/grub.cfg"

problem : the file grub.cfg is almost empty (here), it doesn't detect any system
what should I do ?

thank you

edit : I added some custom entries (from the previous grub.cfg) but now when I start my computer I've an error "file not found" and grub rescue
Help please (already tired of using a live cd)

Last edited by martvefun (2010-03-07 19:22:59)


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Dell Vostro

Offline

#6 2010-03-07 21:34:55

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: [solved] reinstall grub

Hm, I never did the grub-mkconfig I always used the one the package installed and just added my entries.

Did you follow: http://wiki.archlinux.org/index.php/Grub2

The grub rescue section is at the bottom.

Offline

#7 2010-03-08 08:29:13

martvefun
Member
From: The Internets
Registered: 2009-12-19
Posts: 174

Re: [solved] reinstall grub

the problem was also that my /boot/grub folder was almost empty : a grub.cfg and device.map

I don't have all the modules needed
I'll try reinstall it from a live cd

edit : now I've an error "you need to load the kernel first"

edit2 : ok simple error, as it's on a separate boot partition, I don't need the "/boot" before the kernel
is there another way than manually to set the list of partitions ?

Last edited by martvefun (2010-03-08 13:16:40)


English is not my native language, sorry for the mistakes
Arch amd64, GNOME, Dell Vostro

Offline

Board footer

Powered by FluxBB