WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Grub2 and microcore-4.0 problem?  (Read 3498 times)

Offline ost

  • Newbie
  • *
  • Posts: 41
Grub2 and microcore-4.0 problem?
« 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?

Offline ost

  • Newbie
  • *
  • Posts: 41
Re: Grub2 and microcore-4.0 problem?
« Reply #1 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..

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Grub2 and microcore-4.0 problem?
« Reply #2 on: September 30, 2011, 06:01:58 AM »
Hi: I thougt GRUB2 needs ext4 and does not work on ext3 and ext2
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline ost

  • Newbie
  • *
  • Posts: 41
Re: Grub2 and microcore-4.0 problem?
« Reply #3 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..

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Grub2 and microcore-4.0 problem?
« Reply #4 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).
The only barriers that can stop you are the ones you create yourself.

Offline ost

  • Newbie
  • *
  • Posts: 41
SOLVED:Re: Grub2 and microcore-4.0 problem?
« Reply #5 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

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Grub2 and microcore-4.0 problem?
« Reply #6 on: October 01, 2011, 06:09:35 AM »
Grub4Dos works like a charm..   which I believe is an option

just saying is all...  :)