Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: ost on September 30, 2011, 05:47:48 AM

Title: Grub2 and microcore-4.0 problem?
Post by: ost on September 30, 2011, 05:47:48 AM
I do the following:

fdisk /dev/sda
o (clear partition table)
n (new partition)
p (primary)
1 (partition number)
[enter] (default start)
[enter] (default end)
w (save and quit)
sudo poweroff
(wait for system to come up again)
mkfs.ext4 /dev/sda1
grub-install /dev/sda1
(long break observed)

Now, I get the following error:
/usr/local/sbin/grub-probe: error: cannot stat 'rootfs'

I've scratched my head a few times on this, and google doesnt seem to help.
Any thoughts? I guess I dont have to install a OS on it before grub installs?

Is this a grub2 vs microcore-4.0 issue, or just specific to my system?
Title: Re: Grub2 and microcore-4.0 problem?
Post by: ost on September 30, 2011, 05:59:53 AM
Out of curiosity, I tried grub-install on tinycore-3.8.4 too with the same result..
Also using ext2..
Title: Re: Grub2 and microcore-4.0 problem?
Post by: beerstein on September 30, 2011, 06:01:58 AM
Hi: I thougt GRUB2 needs ext4 and does not work on ext3 and ext2
Title: Re: Grub2 and microcore-4.0 problem?
Post by: ost on September 30, 2011, 06:25:44 AM
Hi: I thougt GRUB2 needs ext4 and does not work on ext3 and ext2

Your're right it doesnt seem to support ext2.. But ext3 or ext4..
I find the documentation a bit weak..
Title: Re: Grub2 and microcore-4.0 problem?
Post by: curaga on September 30, 2011, 06:39:45 AM
Looks like grub2 doesn't support the scenario of initramfs properly. Please report the bug upstream.

Perhaps you can work around it with a manual device map. Other boot loaders seem to work too (syslinux family, grub1).
Title: SOLVED:Re: Grub2 and microcore-4.0 problem?
Post by: ost on September 30, 2011, 06:48:16 AM
Looks like grub2 doesn't support the scenario of initramfs properly. Please report the bug upstream.

Perhaps you can work around it with a manual device map. Other boot loaders seem to work too (syslinux family, grub1).

In fact I got it to pass now.. Its just the error messages that are not giving good information. This works:
Code: [Select]
mount /dev/sda1
grub-install --no-floppy --root-directory=/mnt/sda1 /dev/sda
Title: Re: Grub2 and microcore-4.0 problem?
Post by: coreplayer2 on October 01, 2011, 06:09:35 AM
Grub4Dos works like a charm..   which I believe is an option

just saying is all...  :)