Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Quema on March 25, 2018, 03:57:02 AM

Title: I have issue with grub
Post by: Quema on March 25, 2018, 03:57:02 AM
I try install TC 9.0 manualy.
I copied /mnt/sr0/boot/vmlinuz to /mnt/sda1/boot/ and
/mnt/sr0/boot/core.gz to /mnt/sda1/boot/, else install grub and copy data
/usr/lib/grub/i386-pc/* to /mnt/sda1/boot/grub/ and create /mnt/sd1/boot/menu.lst.
After I run grub and try install as in wiki:
grub> root (hd0,0)
  Filesystem type is ext2fs, partition type 0x83

grub> setup(hd0)
  Checking if "/boot/grub/stage1" exists... no
  Checking if "/grub/stage1" exists... no

Error 15: File not found

And I don't understand why, because stage1 store right in /mnt/sda1/boot/grub/stage1 I checked it. I have only one partition.
In a lot guide people do the same thing and it's work.
Thanks in advance.
(sorry for English if something wrong)
Title: Re: I have issue with grub
Post by: curaga on March 25, 2018, 04:49:11 AM
Check what disk grub thinks hd0 is. After the root command, try to tab-complete some of the file using commands, they will list files there.
Title: Re: I have issue with grub
Post by: Quema on March 25, 2018, 05:10:28 AM
Write:
root
and tab-complete write:
root (hd0,0)
Title: Re: I have issue with grub
Post by: Quema on March 25, 2018, 06:10:25 AM
Now I done one experimet, I install on VirtualBox
If the disk size is 1Gb(and partition on whole disk): OK
If the disk size is 8Gb(the same partion on whole disk): I see that error
Why? And what's wrong?
Title: Re: I have issue with grub
Post by: icnocop on April 18, 2018, 12:14:54 AM
Hi @Quema,

Did you ever solve the problem?

Thank you.
Title: I have issue with grub
Post by: coreplayer2 on April 18, 2018, 03:52:46 AM
Which grub version are you using?
Show the grub install commands used

 If using the latest grub2 from TC9 repo, I suggest booting to the tinycore corepure64 cd then download and install grub2-multi extension and run the grub install commands from the terminal
See grub2-multi info file for install commands

Make a grub.conf file and you should be good..


As a test I installed to a 64GB ext2 USB thumb drive without issue using corepure64 iso

Sent from my iPhone using Tapatalk
Title: Re: I have issue with grub
Post by: icnocop on April 18, 2018, 03:30:38 PM
Hi.

I'm using the install script here: https://github.com/upperstream/packer-templates/blob/master/tinycorelinux/http/install_x86.sh

It uses grub-0.97-splash.

I've reported the issue here:
https://github.com/upperstream/packer-templates/issues/122

I also tried the install script here: https://github.com/upperstream/packer-templates/blob/master/tinycorelinux/http/install_x86_64.sh

It uses grub2-multi, but gets a different error.

I've reported the issue here:
https://github.com/upperstream/packer-templates/issues/123

Thank you.
Title: Re: I have issue with grub
Post by: icnocop on April 18, 2018, 06:47:43 PM
Sorry, I'm a newbie and so my links don't get displayed until I've posted 5 times.

Until then, you can find the scripts and issues in the upperstream/packer-templates project on github.

The scripts are ./tinycorelinux/http/install_x86.sh and ./tinycorelinux/http/install_x86_64.sh respectively

The issues are #122 and #123 respectively.

Thank you.
Title: I have issue with grub
Post by: coreplayer2 on April 18, 2018, 08:41:40 PM
I know of one file not found issue maybe is the same[emoji47]  Anyhow “file not found” is because when the script runs from an x86  system and then the path to the files is incorrect.  The path needs changing to accommodate i386  instead of x86_64 as it is at the moment.

Better and easier to boot corepure64.iso
Load grub2 multi and run the commands as shown in the grub2 info file

Also I have no idea who is running the site from the links provided