WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tinycore 14.0 64bit: grub-mkrescue error  (Read 2758 times)

Offline pek

  • Full Member
  • ***
  • Posts: 111
Tinycore 14.0 64bit: grub-mkrescue error
« on: April 23, 2023, 09:39:02 AM »
I'm using Tinycore 14.0 64bit
I download and loaded grub2-multi.tcz

Then i ran grub-mkrescue -o test.iso testfolder
but it gives errors as follows

Code: [Select]
grub-mkrescue: warning: cannot open directory `/usr/local/share/locale': No such file or directory
grub-mkrescue: warning: cannot open directory `/usr/local/share/locale': No such file or directory
Error converting to codepage 850 invalid argument
grub-mkrescue: error: `mformat` invocation failed

Can someone please tell me how to fix this?
Thanks

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #1 on: April 23, 2023, 09:45:41 AM »
What happens if you symlink it to /usr/share/locale?

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #2 on: April 23, 2023, 09:55:24 AM »
I got these then
Code: [Select]
Error converting to codepage 850 invalid argument
grub-mkrescue: error: `mformat` invocation failed

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #3 on: April 23, 2023, 10:06:56 AM »
Is the mtools extension loaded?

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #4 on: April 23, 2023, 10:25:34 AM »
I reloaded mtools and get the same error.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #5 on: April 23, 2023, 10:33:16 AM »
You could try loading glibc_gconv

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #6 on: April 23, 2023, 10:35:13 AM »
I reloaded glibc_gconv. Still same error.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #7 on: April 23, 2023, 10:39:14 AM »
Have you tried using getlocale to create a mylocale extension and rebooting?

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #8 on: April 23, 2023, 10:49:31 AM »
Have you tried using getlocale to create a mylocale extension and rebooting?
No I haven't. But I tried grub-mkrescue using
Tinycore 13.1 64bit resulting the same error
Tinycore 12.0 64bit also prompts locale warnings but it continues and successfully created the iso.
So, I'm guessing it's not the locale issues.

Btw, It's very late at night now, I will probably try getlocale tomorrow.
Thanks for helping  :)

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 283
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #9 on: May 01, 2023, 09:16:20 AM »
I ran into a similar error while trying to run "syslinux -i" in TC 14.0 Pure64:
Code: [Select]
$ sudo syslinux -i /dev/sdb1
Error converting to codepage 850 Invalid argument
Cannot initialize 'S:'
Bad target s:/ldlinux.sys
syslinux: failed to create ldlinux.sys

The short story is that this fixes the problem (run as root, after installing glibc_gconv.tcz):
Code: [Select]
cd /usr/lib/gconv
mv gconv-modules gconv-modules.orig
cat gconv-modules.orig gconv-modules.d/gconv-modules-extra.conf > gconv-modules

Then "syslinux -i /dev/sdb1" runs without errors.

So /usr/lib/gconv/gconv-modules.d/gconv-modules-extra.conf, which is added by glibc_gconv.tcz, doesn't seem to be read by glibc in TC 14.

Extra info:
The error seems to come from the glibc iconv_open function, via mtools, and this page says: "If the iconv_open returns an error and sets errno to EINVAL, there is no known way, directly or indirectly, to perform the wanted conversion."

Offline pek

  • Full Member
  • ***
  • Posts: 111
Re: Tinycore 14.0 64bit: grub-mkrescue error
« Reply #10 on: May 10, 2023, 07:28:48 AM »
Hi CNK,
Thank you very much for pointing it out.
It works very well  :)
Thank you.