You are not logged in.

#1 2011-08-21 20:21:30

Nolhian
Member
Registered: 2011-08-21
Posts: 25

[SOLVED]Grub2 installation fails

Hello everyone !

I just switched from Ubuntu to Arch Linux and I have some trouble.
I can't seem to install grub2, I got a 64GB SSD with GPT and no EFI bios :

sudo pacman -S grub2
resolving dependencies...
looking for inter-conflicts...

Targets (2): grub2-common-1:1.99-4  grub2-bios-1:1.99-4

Total Download Size:    0.00 MB
Total Installed Size:   8.20 MB

Proceed with installation? [Y/n] Y
(2/2) checking package integrity                   [######################] 100%
(2/2) checking for file conflicts                  [######################] 100%
(1/2) installing grub2-common                      [######################] 100%

( The total download size must be 0.00 MB because I tried several times so it was already downloaded )
And then it hangs forever. It does the same thing when I try to install grub2-common alone. What should i do ?

Thanks in advance wink

Last edited by Nolhian (2011-08-23 08:11:00)

Offline

#2 2011-08-21 20:24:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED]Grub2 installation fails

Never seen that one before... try removing the partial if any and reinstalling.  Open another tty ctlr+alt+F2 and run htop or something to see if the CPU is hanging.  Maybe give it a good 5 min before calling it f*cked.

To remove:

# pacman -Rs grub2

Offline

#3 2011-08-21 22:32:24

Nolhian
Member
Registered: 2011-08-21
Posts: 25

Re: [SOLVED]Grub2 installation fails

Hello thanks for your answer !

Unfortunately the cpu is not hanging since I'm running xfce and doing the install in a terminal and I can still do other stuff. I already tried to remove grub2 and separately grub2-bios and grub2-common. Grub is also not installed because when I installed arch linux it failed for unknown reason to install grub on my /dev/sdb, each time i tried, telling me there was some sort of error. And I checked with pacman -Rs grub.

At the moment I'm still forced to put my other hard drive with ubuntu on it in order to have his grub launch arch linux. When I only put the disk with arch linux on it, it hangs at boot, well just after the bios finishes loading it hangs without outputting anything ( because of the failing of grub install while installing arch ? ). Well I'm really lost sad

Offline

#4 2011-08-22 10:33:30

defears
Member
Registered: 2010-07-26
Posts: 218

Re: [SOLVED]Grub2 installation fails

It doesn't look like grub2 is a package or a group. The wiki says to install grub2-bios. Which works fine here.

Offline

#5 2011-08-22 10:40:07

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: [SOLVED]Grub2 installation fails

defears wrote:

It doesn't look like grub2 is a package or a group. The wiki says to install grub2-bios. Which works fine here.

$ p -Si grub2-bios
Repository     : extra
Name           : grub2-bios
[...]
Provides       : grub2

@Nolhian: post the output of pacman -Sy --debug grub2-bios

Last edited by schuay (2011-08-22 10:41:45)

Offline

#6 2011-08-22 11:51:04

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED]Grub2 installation fails

@Nolhian: I think the problem is due to grub-mkconfig being run in grub2-common post_install script. Can you manually untar the grub2-common package and try grub-mkconfig?


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#7 2011-08-23 08:10:25

Nolhian
Member
Registered: 2011-08-21
Posts: 25

Re: [SOLVED]Grub2 installation fails

Thanks for all these answers smile

@schuay : I think grub2-bios was fine, it didn't install because grub2-common was hanging and it was supposed to be installed after

(1/2) installing grub2-common

I guess it would have been the (2/2) here.

@skodabenz : yes that must be it because I stopped the hanging installation of grub2 with a ctrl+c. Then I made a reboot to see what was happening and when I made a

sudo pacman -S grub2

again, it installed only grub-bios2 and I checked grub2-common was already marked as installed.

Well everything is working fine now, thanks to everyone for your help wink

Offline

#8 2011-08-23 08:59:06

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: [SOLVED]Grub2 installation fails

Nolhian wrote:

@schuay : I think grub2-bios was fine [...]

That's what I was pointing out. grub2-bios provides grub2, so in this case pacman -S grub2 and pacman -S grub2 bios are equivalent. Glad it worked out.

Offline

#9 2011-08-23 10:46:03

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED]Grub2 installation fails

@Nolhian: Can you provide the output of

time sudo grub-mkconfig -o /boot/grub/grub.cfg

If the command takes a long time, file a bug report asking for the command to be disabled in the grub2-common post_install script.


My new forum user/nick name is "the.ridikulus.rat" .

Offline

#10 2011-08-26 18:01:20

Nolhian
Member
Registered: 2011-08-21
Posts: 25

Re: [SOLVED]Grub2 installation fails

@skodabenz :

time sudo grub-mkconfig -o /boot/grub/grub.cfg
Password: 
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
done

real	0m7.781s
user	0m2.950s
sys	0m0.140s

@schuay : Yes that's it, sorry I totally misinterpreted your post sad

Edit : In ubuntu update-grub create the grub.cfg and it detects ubuntu but arch linux and my windows partition automatically too and put them in grub.cfg. grub-mkconfig -o /boot/grub/grub.cfg detects only my arch linux, is there any way to automatically add my windows/ubuntu sytems ?

Last edited by Nolhian (2011-08-26 18:04:56)

Offline

#11 2011-08-26 19:19:06

Deemoney14
Member
Registered: 2011-07-27
Posts: 70

Re: [SOLVED]Grub2 installation fails

From the Wiki page on GRUB2, under Dual-booting:

NOTE: If you want GRUB2 to automatically search for other systems, for example as in Ubuntu. Then you may need to download os-prober from the AUR.

That section should tell you all you need to know.


This isn't the signature you're looking for...  Move along...

Offline

#12 2011-08-26 19:19:19

skodabenz
Banned
From: Tamilnadu, India
Registered: 2010-04-11
Posts: 382

Re: [SOLVED]Grub2 installation fails

@Nolhian: Can you remove the grub2-common package and try reinstalling it? If you get the hang again, check which of the grub2 commands are running during the pacman hang.

sudo pacman -Rdd grub2-common
sudo pacman -S --debug grub2-common

Last edited by skodabenz (2011-08-26 19:24:43)


My new forum user/nick name is "the.ridikulus.rat" .

Offline

Board footer

Powered by FluxBB