Tiny Core Base > Corepure64
Frugal install UEFI
Demontager:
I am trying to make frugal persistent install TC on mini-PC which only supports UEFI boot. The iso i have used is TinyCorePure64-13.1.iso, but direct boot not working, so i used Ventoy then i got tc booted. Then followed this guide to install TC to internal storage https://iotbytes.wordpress.com/install-microcore-tiny-linux-on-local-disk/
--- Code: ---tc-load -wi tc-install
--- End code ---
Before making install i did partitioning like that. Chosen ext4 partition for TC (not whole disk)
--- Code: ---/dev/mmcblk0p1 fat32 for EFI
/dev/mmcblk0p2 ext4
--- End code ---
At that point i need to install grub to /dev/mmcblk0p1 Partly I followed that guide http://forum.tinycorelinux.net/index.php/topic,19364.msg119228.html#msg119228
--- Code: ---$ tce-load -i grub2-multi
$ sudo mount /dev/mmcblk0p1
$ sudo mount /dev/mmcblk0p2
$ sudo grub-install --target=x86_64-efi --boot-directory=/mnt/dev/mmcblk0p1/EFI/BOOT --efi-directory=/mnt/dev/mmcblk0p1
Installing for x86_64-efi platform
grub-install: warning: cannot open directory '/usr/local/share/locale': No such file or directory.
grub-install: error: efibootmgr: not found
--- End code ---
Demontager:
Figured out that i missed efibootmgr
--- Code: ---tce-load -wi efibootmgr
--- End code ---
Then again did
--- Code: ---sudo grub-install --target=x86_64-efi --boot-directory=/mnt/dev/mmcblk0p1/EFI/BOOT --efi-directory=/mnt/dev/mmcblk0p1
--- End code ---
Installation reported as successful except warning
--- Code: ---grub-install: warning: cannot open directory '/usr/local/share/locale': No such file or directory.
--- End code ---
Now i got grub directory created
--- Code: ---tc@box:/mnt/mmcblk0p1/EFI/grub$ ls -al
total 138
drwxrwxrwx 2 root root 512 Jul 1 09:55 ./
drwxrwxrwx 4 root root 512 Jul 1 08:18 ../
-rwxrwxrwx 1 root root 139264 Jul 1 09:33 grubx64.efi
--- End code ---
I know that i need to create grub.cfg within this folder. What will be the minimum config ?
Juanito:
If you search the forums on dual boot uefi bios you should find an example grub.conf.
Demontager:
--- Quote from: Juanito on July 01, 2022, 07:39:27 AM ---If you search the forums on dual boot uefi bios you should find an example grub.conf.
--- End quote ---
Yes, i found some and compiled own grub.cfg
And it worked, partly. I got grub menu loaded with my entry, TC booted, but after trying to install some utils found that i can't install any, for example htop
--- Code: ---tc@box:$ tce-load -wi htop
tc@box:$
--- End code ---
means nothing happened. Also tried filetool
--- Code: ---tc@box:$ filetool.sh -bv
Invalid device
--- End code ---
tcedir shows
--- Code: ---readlink /etc/sysconfig/tcedir
/tce
--- End code ---
Juanito:
Can you post your grub.cfg?
Navigation
[0] Message Index
[#] Next page
Go to full version