You are not logged in.
Pages: 1
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 ![]()
Last edited by Nolhian (2011-08-23 08:11:00)
Offline
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 grub2Offline
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 ![]()
Offline
It doesn't look like grub2 is a package or a group. The wiki says to install grub2-bios. Which works fine here.
Offline
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
@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
Thanks for all these answers ![]()
@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-commonI 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 grub2again, 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 ![]()
Offline
@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
@Nolhian: Can you provide the output of
time sudo grub-mkconfig -o /boot/grub/grub.cfgIf 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
@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 ![]()
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
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
@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-commonLast edited by skodabenz (2011-08-26 19:24:43)
My new forum user/nick name is "the.ridikulus.rat" .
Offline
Pages: 1