Tiny Core Base > Corepure64

Trouble installing grub2

(1/3) > >>

Fog:
this is my sequence of steps.
Burn corepure64.iso to a cd, boot it up
go to terminal, type in tce searched for grub2-efi.tcz, installed it.
Followed instructions given by typing in

--- Code: ---sudo x86_64-grub-install --target=x86_64-efi --boot-directory=/mnt/sda5/EFI/BOOT --efi-directory=/mnt/sda5
--- End code ---
Note that sda5 is my tiny core partition (or will be once I get grub working)
I then try to follow the rest of instructions but grub.cfg doesn't exist

--- Code: ---tc@box:~$ cat /mnt/sdb1/EFI/BOOT/grub/grub.cfg
cat: can't open '/mnt/sdb1/EFI/BOOT/grub/grub.cfg': No such file or directory

--- End code ---
I've looked in all sections possible in sda5, and found no grub.cfg, so I made my own in the required directory by putting in the stated menuentry with vi.

--- Code: ---menuentry "core" {
  linux (hd1,gpt2)/boot/vmlinuz64 quiet noswap tce=sdb2 tz=GMT-4 blacklist=bcma
 blacklist=ssb blacklist=b43 text
  initrd (hd1,gpt2)/boot/corepure64.gz
}
--- End code ---
When taking out the cd and booting to hard drive grub boots to rescue mode, and no commands I've found that are supposed to work (such as ls or search) don't, it says command not found.

I've also tried tce-run grub2-efi.tcz in terminal and hitting enter (though I didn't see why), and copying grub2-efi.tcz to /mnt/sda5/tce.
It seems to me chroot should be necessary, so I tried
--- Code: ---tc@box:~$ chroot /mnt/sda5
chroot: can't change root directory to '/mnt/sda5': Operation not permitted
--- End code ---
Other directories I've tried have the same result, I must not be using the command right.

Note that I haven't been able to find a guide online for tiny core grub2 manual install, if there is one available that you know of that might be helpful. Other than that thanks for reading this far, and I'm happy to provide any more info that might be required.

coreplayer2:
I see a few potential problems, but first this is most probably a path issue.

at the grub prompt  (rescue mode might be limited) type " ls " then enter to list drives and partitions visible to grub.


hd1,gpt2 is not likely the correct path for your install


in CLI mode you can use " ls -lh (hd0,5)/ " for example, which will list the contents of hd0,5   if this is where the kernel is located then use that path

In rescue mode you can type the path manually  (like the following assuming your sda5 is visible to grub as hd0,5 and the Linux kernel is installed as per example)

linux (hd0,5)/boot/vmlinuz64
initrd (hd0,5)/boot/corepure64.gz
boot

Fog:
In grub rescue mode ls -l or ls -lh returns error bad filename, but ls without any additional options works. The path to my partition is (hd0,msdos5). I edited grub.cfg (located in /mnt/sda5/EFI/boot/grub/grub.cfg maybe I didn't put it in the right place?) accordingly and grub still boots to recovery mode. The help command returns an error: command not found. Here's my grub.cfg just in case I did something wrong

     menuentry "core" {
        linux (hd0,msdos5)/boot/vmlinuz64 quiet tce=sda5 tz=GMT-4 blacklist bcma
        initrd (hd0,msdos5)/boot/corepure64.gz
        boot
}

Thanks for the quick response, I hadn't expected anything until tomorrow.

coreplayer2:

--- Code: ---linux (hd0,msdos5)/boot/vmlinuz64
initrd (hd0,msdos5)/boot/corepure64.gz
boot
--- End code ---

these are commands to be entered manually, one line at a time at the grub rescue prompt (not used in grub.cfg)

enter
linux (hd0,5)/boot/vmlinuz64

if no error then type the next line etc.  If an error then fix error with correct path and start over

Juanito:
I don't see it mentioned anywhere, but this is for a uefi boot from a gpt partitioned drive, right?

Navigation

[0] Message Index

[#] Next page

Go to full version