Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to install cinnarch. I installed it correctly but I have some troubles with grub.

At the moment I am unable to boot because grub has some errors. I can only access the files via liveCD. I also have no access to pacman via terminal. It tells me that it can not find the db. My hope is that I can just copy some files to get it working.

I have 3 visible partitions. / , /home and /boot. It is strange that the boot partition is empty.

in the root partition is a folder called boot which is empty too. But in the root folder is a folder called /etc/ which contains grub.d

Could you give me some pointers?

share|improve this question
    
If your /boot partition is empty, you did not install correctly, you don't have a kernel image to boot. I recommend you just reinstall, you did something wrongsomewhere along the line. –  terdon Mar 29 '13 at 12:10

1 Answer 1

up vote 2 down vote accepted

I don't see a reason why you should need to start over, but there are two things you definitely need: a kernel to boot from and the grub configuration folder in /boot.

I've not installed Arch for at least 279 days (the current uptime on my home fileserver), and I know things have changed since then so I'm a bit rusty on specifics.... But what you need to do is boot the system from a Live CD/USB and chroot into the Arch system you've built. Not sure if Arch has good documentation on how specifically to chroot into a fresh install... if not check the "chrooting into the system" section of the Gentoo Handbook... should be similar.

Once you've chrooted into the real system, you need to use pacman to install the kernel you'd like to use. This /should/ copy the kernel (and any other needed things such as an initramfs) to /boot. (Or does it?) Make sure you have /boot mounted. If the kernel is not copied over by the pacman install, check for it in /usr/src/linux. (Or check the Arch docs... again it's been a while.)

(Unless of course you're on a EFI system... in which case things could be done much differently, and without grub or any bootloader.)

Once you've got the kernel straightened out, use pacman to reinstall grub. Follow the Arch instructions if you're using Grub2 - I've found them to be very well written. There should be a /boot/grub folder once grub is installed and configured properly. If using Grub2 this will require a grub-mkconfig and possibly some extra steps depending on your hardware. (If using EFI things can be weirder.)

If all that fails, only then should you consider starting over.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.