WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: value too large for defined data type (ntfs-3g)  (Read 2788 times)

Offline kern

  • Newbie
  • *
  • Posts: 4
value too large for defined data type (ntfs-3g)
« on: July 16, 2019, 07: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!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: value too large for defined data type (ntfs-3g)
« Reply #1 on: July 17, 2019, 12:38:19 AM »
From man fstat:
Quote
       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".
« Last Edit: July 17, 2019, 12:41:18 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline kern

  • Newbie
  • *
  • Posts: 4
Re: value too large for defined data type (ntfs-3g)
« Reply #2 on: August 06, 2019, 07:48:30 AM »
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!!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: value too large for defined data type (ntfs-3g)
« Reply #3 on: August 06, 2019, 08:58:21 AM »
Hi kern
It's not  BITS=64,  it's  -D_FILE_OFFSET_BITS=64.

So if you are doing this:
Code: [Select]
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
make

Try changing it to this:
Code: [Select]
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe -D_FILE_OFFSET_BITS=64"
make

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: value too large for defined data type (ntfs-3g)
« Reply #4 on: August 06, 2019, 09:05:56 AM »
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.