Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: kern on July 16, 2019, 10:12:23 PM
-
I use TinyCore 10.0 and install uftp(http://uftp-multicast.sourceforge.net/) to trans big file to other pc in pc classroom.
1.Tinycore start
2. mount ntfs (SSD), use ntfs-3g, #sudo ntfs-3g /dev/sda2 /tmp/d (in /tmp/d has a large file w10x64.vhdx 12GB)
3. when I try to trans file use uftp , I got a error message "value too large for defined data type"
any suggestion
Thanks!
-
From man fstat:
EOVERFLOW
(stat()) path refers to a file whose size cannot be represented in the type
off_t. This can occur when an application compiled on a 32-bit platform
without -D_FILE_OFFSET_BITS=64 calls stat() on a file whose size exceeds
(1<<31)-1 bits.
That means your compilation of uftp cannot handle files over 4gb. Check configure logs for why it didn't detect or try to enable large file support.
edit: As a quick workaround, you can also split it into multiple files "split -b 3900m w10x64.vhdx splitvhd_" and then assemble them client-side with "cat splitvhd_* > w10x64.vhdx".
-
Thanks your apply
But I can't make uftp well (I add BITS=64 when I make file but it still not work)
Another way
I try Tiny Core pure 64bit , and make uftp well and finally it can work now
But I have another question , I need install fireflysung.tcz (font) and firefox ,that can show Traditional Chinese in Firefox at TC 10 32bit.
I can't find fireflysung.tcz at TinyCore 64bit repo.
Is there any substitute ?
Thanks!!
-
Hi kern
It's not BITS=64, it's -D_FILE_OFFSET_BITS=64.
So if you are doing this:
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
make
Try changing it to this:
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe -D_FILE_OFFSET_BITS=64"
make
-
Hi kern
... But I have another question , I need install fireflysung.tcz (font) and firefox ,that can show Traditional Chinese in Firefox at TC 10 32bit.
I can't find fireflysung.tcz at TinyCore 64bit repo.
Is there any substitute ?
Thanks!!
Copy it from the x86 repository.