You are not logged in.

#1 2008-03-25 11:54:54

Navelpluis
Member
From: The Netherlands
Registered: 2008-03-25
Posts: 8

[SOLVED] GRUB error with dual boot

Hi, I'm new here big_smile So I decided to install Arch Linux, while keeping Windows XP. If everything works out fine, maybe I'll install it on my older comp too, but without a desktop environment.

After a lot of hassle I finally installed Arch Linx, but now I can't boot it. After selecting Arch Linux in GRUB, these are the last two lines:

initrd /boot/kernel26.img
Error 15: File not found

This is my harddisk setup:

sda1: Windows XP (NTFS)
sda2: data (NTFS)
sdb1: data (NTFS)
sdb2: / (ext3)
sdb3: /home (ext3)
sdb4: swap

I installed GRUB on sda. While I can't boot Linux, I can boot to Windows. This is my GRUB setup:

Arch Linux:

root (hd1,1)
kernel /boot/vmlinuz26 root=/dev/sdb2 ro vga=773
initrd /boot/kernel26.img

Windows:

rootnoverify (hd0,0)
makeactive
chainloader +1

It seems that /boot/kernel26.img is missing. When I look it up in Windows using Ext2 IFS, these are the contents of /boot:

/grub
kconfig26
vmlinuz26
diag1.img
System.map26

Does anyone know a solution to this? Btw, the version of Arch Linux is 2007.08-2.

Last edited by Navelpluis (2008-03-27 17:22:06)

Offline

#2 2008-03-25 12:20:41

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: [SOLVED] GRUB error with dual boot

Try appending this line to your grub entry:

root   (hd1,1)
kernel /vmlinuz26 root=/dev/sdb2 ro
initrd /kernel26.img

flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#3 2008-03-25 13:01:49

Navelpluis
Member
From: The Netherlands
Registered: 2008-03-25
Posts: 8

Re: [SOLVED] GRUB error with dual boot

I get the same error message. I forgot to type the last line of the GRUB entry for Arch Linux. It goes like this:

root (hd1,1)
kernel /boot/vmlinuz26 root=/dev/sdb2 ro vga=773
initrd /boot/kernel26.img

(corrected in the original post)

It seems GRUB is looking in the right place because vmlinuz26 is located in the /boot directory, but kernel26.img isn't.

Offline

#4 2008-03-25 14:37:59

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: [SOLVED] GRUB error with dual boot

Boot your system from the install cd with this option to the boot line(on the cd):
arch root=/dev/sdb2

Then reinstall the kernel with:
% pacman -Sy kernel26
(this asumes that you got a working network set up)

Last edited by Mr.Elendig (2008-03-25 14:38:30)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2008-03-25 15:21:52

Navelpluis
Member
From: The Netherlands
Registered: 2008-03-25
Posts: 8

Re: [SOLVED] GRUB error with dual boot

I'm not sure how to do that. Since I don't have a CD burner, I installed Arch Linux using a workaround:

* I used unetbootin to get into the setup program.
* I made the partitions using the setup program.
* I installed the Ext2 IFS.
* I downloaded the iso file and put it on / (sdb2), in Windows.
* Using unetbootin I got into bash. Then, I mounted the iso like this:

mkdir /temphdd
mount /dev/sdb2 /temphdd
mount -o loop /temphdd/archlinux.iso /src

(I renamed the iso)

* I installed Arch Linux from the iso (at the mounting point section, I didn't reformat sbd2, since that would erase the iso).

I did it this way because I couldn't mount the iso from an NTFS partition (ntfs-3g is not installed yet).
So, how do I handle this?

Last edited by Navelpluis (2008-03-25 17:57:16)

Offline

#6 2008-03-25 22:00:20

Navelpluis
Member
From: The Netherlands
Registered: 2008-03-25
Posts: 8

Re: [SOLVED] GRUB error with dual boot

I tried reinstalling Arch Linux using the latest iso, 2008.03-0.2. This time, I couldn't install the packages (something with the filelists?). I got the same error when I tried to do a FTP install using the 2007.08-2 iso. I also tried to do a FTP install using the new iso, but then it says something like 'one or more packages could not be downloaded'. I tried multiple servers, to no avail.

edit: the version of unetbootin I use, is meant for Arch Linux 2007.08-2, so probably that's why the install didn't work. I reinstalled that version, but I'm still missing kernel26.img sad

edit: I think I accidentally downloaded the x86_64 iso (instead of the i686 >_>) so I'm gonna try that one.

Last edited by Navelpluis (2008-03-26 14:16:14)

Offline

#7 2008-03-27 17:21:48

Navelpluis
Member
From: The Netherlands
Registered: 2008-03-25
Posts: 8

Re: [SOLVED] GRUB error with dual boot

Ok, all problems were caused because I used the wrong iso file. But I couldn't install GRUB. It said "error installing grub. (see /dev/tty5 for output)". Entering this in bash gave me a "permission denied" message. I managed to solve it: there was already a (non-working) install of grub in /boot, so after I reformatted the partition everything worked fine. I think the problem with grub should be added to the grub section in the wiki. Thanks for the replies!

Last edited by Navelpluis (2008-03-27 17:23:38)

Offline

Board footer

Powered by FluxBB