Tiny Core Base > CorePlus
Chroot not working when installing Grub
t18:
Hello,
I've got CorePlus installed on my hard drive, partition sda3.
I've tried to install Grub but unsuccessfully. According with your instruction:
--- Code: ---$ sudo mount /dev/sdc1
--- End code ---
In my case is sda3 but it's already mounted and it seems I can't umount it (device busy) even from the live CD.
--- Code: ---$ sudo grub-install --boot-directory=/mnt/sdc1/boot /dev/sdc
--- End code ---
So the installation got broken:
--- Code: ---error: failed to get the canonical path of 'rootfs'
--- End code ---
They say it's better to chroot to /mnt before installing Grub. Output:
--- Code: ---chroot: can't execute '/bin/sh': no such file or directory
--- End code ---
Same if I add '/bin/bash' and having the bash shell already installed.
I've been unable to create a working grub.cfg file manually. Adding your:
--- Code: --- insmod ext2
search --no-floppy --fs-uuid --set=root 3916536c-ab5b-45f4-92de-a6b8af8ec630
menuentry "core" {
linux /boot/vmlinuz quiet noswap waitusb=10:UUID="3916536c-ab5b-45f4-92de-a6b8af8ec630" tce=UUID="3916536c-ab5b-45f4-92de-a6b8af8ec630" tz=GMT-4 blacklist=bcma blacklist=ssb blacklist=b43 text
initrd /boot/rootfs.gz /boot/modules.gz
}
--- End code ---
with the correct UUID for the sda3 partition I get the error:
--- Code: ---unknown filesystem
you need to load the kernel first
--- End code ---
What I've mistaken? Many thanks
t18:
I've finally had the necessary time to do some searches but not for chroot, it remains an unresolved mistery to me for now.
I've been able to fix grub to boot after discovering that the vmlinuz and the initrd paths and values have changed.
A couple words on it would have been appreciated.
Thank you for your great OS!
mocore:
fwiw
this guide for "legacy bios/uefi dual boot usb stick with grub2" https://forum.tinycorelinux.net/index.php/topic,19364.0.html
could be a good reference
you didn't mention what grub you are trying to load (legacy-bios/or uefi)?
t18:
I've only found a "grub-multi.tcz" on the App.
Supposedly it's working in Legacy mode since my machine is an old Pentium II.
It seems there is not the update-grub command, do you confirm?
Rich:
Hi t18
Correct , update-grub is not present in grub2-multi (grub2).
These are the files included in the 32 bit version:
http://tinycorelinux.net/15.x/x86/tcz/grub2-multi.tcz.list
These are the files included in the 64 bit version:
http://tinycorelinux.net/15.x/x86_64/tcz/grub2-multi.tcz.list
Navigation
[0] Message Index
[#] Next page
Go to full version