Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: lawrenced1 on May 03, 2019, 05:53:24 PM
-
Hello all,
I've come back to a project that uses TinyCore. I am in the process of creating an TCL dev box inside a VirtualBox VM. I have created scripts to automate the installation of the core to the VM hard drive (along with other steps). The script follows the instructions posted on installing TCL manually located here on the install_manual.html page
Since my script was failing I'm doing each step one at a time. When I get to the point of setting up GRUB on the drive I type (after I create the /boot/grub/menu.lst):
sudo grub
root (hd0,0)
setup (hd0)
When I hit enter after the setup (hd0) I get:
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found
I only have one drive with one partition.
Outside of the GRUB command line I can see the files I copied under /mnt/sda1/boot/grub and stage1 exists there along with other files.
I spent the day looking for a fix and I haven't found anything worthwhile. I wanted to post here if any has a solution or workaround.
I'm running Oracle VirtualBox 6.0.6 (updated 2019/05/03)
VM is configured for
- Linux 2.6 / 3.x / 4.x (32-bit)
- 1024MB RAM
- IDE Controller for Core-current.iso
- SATA Controller for 512MB VirtualDisk (I've tried the IDE controller and 4GB and 8GB sized disks
- NAT
I'm sure something has changed since I did this project in 2017. I can't find anything that talks about GRUB not able to find it's files once root has been set. I've seen posts about a corrupted GRUB but this is at the point of installation.
Any insight is greatly appreciated.
Thanks.
-
Hi
Not sure if this is your issue, but grub legacy uses stage1. This error is common if you previously used grub legacy then installed grub2, as remnants of grub legacy often interferes with the latest grub2
Grub root refers to the grub installation files
Eg: /boot
Sent from my iPhone using Tapatalk
-
Some of the commands have tab-completion. You could try that to see what files grub sees. Maybe there's another disk, etc.
-
The install is fresh and I'm tce-load[ing] the grub-0.97-splash files so I can type the grub command. I then copy the grub files from the CD image Current-core. Does this mix the two? grub1 and grub2?
The tab auto-complete only shows the one drive (hd0) when filling in the command. I admit it has been rough trying to figure out how grub sees devices.
-
The current Tinycorelinux iso doesn’t use grub at all, it uses isolinux
What you should do is boot the Tinycorelinux current ISO. Download from the repo and run grub legacy (if that’s your preference) to install to your virtual drive, then boot it.
Sent from my iPhone using Tapatalk
-
I mean some of the file commands. Going from memory, maybe it had "cat" or similar, which would tab-complete the files available after running root().
-
Thank you all for your help.
I have finally gotten it to work.
In my steps I replaced the command to format the filesystem with a 4 instead of a 3. So my command was
mkfs.ext4 /dev/sda
and it should have been
mkfs.ext3 /dev/sda
Once I had formatted my drive with ext3 instead of ext4 grub started working. I did something dangerous and assumed ext4 would be the better filesystem since it is the most recent.
I hope others will be able to see the post and check what filesystem they are using and that might be the solution.
Thanks again.
-
Hi lawrenced1
... Once I had formatted my drive with ext3 instead of ext4 grub started working. I did something dangerous and assumed ext4 would be the better filesystem since it is the most recent. ...
I run grub-0.97 and one of my machines uses EXT4. Is it possible VirtualBox is causing the problem?
-
Could also be a recent-ish ext4 new feature. Grub legacy does support ext4, but the patch is a few years old, so if mkfs.ext4 now uses some new ext4 feature, grub may not recognize it.
-
VirtualBox very well could be the problem, but I don't have another VM program to run. Any suggestions other than Oracle's VirtualBox and VMWare (which it requires a license now right?)?
-
qemu?