[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dual-boot with kFreeBSD and Linux cannot find Linux kernel



Hi Martin,

On 29/03/12 12:57, Martin Steigerwald wrote:
>> However, when I boot this I get this error three times:
>>
>>   error: file not found.
> 
> What is before the file not found? Does it give a hint as to which file it 
> did not found? Or what it was trying to do before printing the error 
> message? I suggest you to lookup whether GRUB 2 can run with more 
> verbosity if not.

Nothing -- 'error: file not found' is the first message.

My Grub does not know about 'find', so I'll assume that 'search --file'
works the same for the following commands.

> In GRUB console what does
> 
> find /boot

grub> search --file /boot
error: no such device: /boot.

> find /boot/vmlinuz-2.6.32-5-amd64

grub> search --file /boot/vmlinuz-2.6.32-5-amd64
 hd1,msdos1

> find /boot/initrd.img-2.6.32-5-amd64

grub> search --file /boot/initrd.img-2.6.32-5-amd64
 hd1,msdos1

> find /etc/debian_version

grub> search --file /etc/debian_version
 hd0,msdos1 hd1,msdos1

> find /boot/grub/core.img

grub> search --file /boot/grub/core.img
 hd1,msdos1

> find /boot/grub/ext2.mod

grub> search --file /boot/grub/ext2.mod
 hd1,msdos1

These last two are very confusing because the output should include
hd0,msdos1 -- the kFreeBSD partition -- I presume.  No difference if I
run 'insmod ufs2' beforehand.

> On GRUB console does
> 
> insmod ext2.mod
> 
> work?

This command gives an error, but "insmod ext2" is working.

I was confused by the output above so I tried to boot kFreeBSD from the
GRUB console in the same way.  It appears that GRUB cannot see any of
the files in the kFreeBSD partition when testing from the console.  But
when I use the menuentry, KFreeBSD boots fine.  I typed in the exact
commands from the kFreeBSD menuentry into the console:

grub> insmod part_msdos
grub> insmod ufs2
grub> set root='(hd0,msdos1)'
grub> search --no-floppy --fs-uuid --set=root 4f71fd5b806762cc
error: file not found.  (repeat ~25 times)
error: no such device: 4f71fd5b806762cc.
grub> kfreebsd /boot/kfreebsd-8.2-1-amd64.gz
error: file not found.

Cheers,
David


Reply to: