WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: With TCL-11.1 (x86) filetool.sh -d gives errors  (Read 1564 times)

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
With TCL-11.1 (x86) filetool.sh -d gives errors
« on: October 03, 2020, 09:46:11 AM »
executing 'filetool.sh -d' (dryrun) gives the following errors:

Code: [Select]
tc@box:~$ filetool.sh -d
Performing dry run backup (backup will not actually take place).   Please wait.

dc: can't open '76': No such file or directory
ash: invalid number 'opt/.filetool.lst'
  0.00 MB  /
dc: can't open '31': No such file or directory
ash: invalid number 'opt/tcemirror'
  0.00 MB  /
dc: can't open '145': No such file or directory
ash: invalid number 'opt/.xfiletool.lst'
  0.00 MB  /
dc: can't open '2571': No such file or directory
ash: invalid number 'opt/bootlocal.sh'
  0.00 MB  /
dc: can't open '272': No such file or directory
ash: invalid number 'opt/bootsync.sh'
  0.00 MB  /
dc: can't open '613': No such file or directory
ash: invalid number 'opt/shutdown.sh'
  0.00 MB  /
dc: can't open '936': No such file or directory
ash: invalid number 'home/tc/.profile'
  0.00 MB  /
dc: can't open '13': No such file or directory
ash: invalid number 'home/tc/.mouse_config'
  0.00 MB  /
dc: can't open '743': No such file or directory
ash: invalid number 'home/tc/.ssh/authorized_keys'
  0.00 MB  /
dc: can't open '2156': No such file or directory
ash: invalid number 'home/tc/.ash_history'
  0.00 MB  /
dc: can't open '424': No such file or directory
ash: invalid number 'home/tc/.ashrc'
  0.00 MB  /
dc: can't open '101': No such file or directory
ash: invalid number 'etc/shadow'
  0.00 MB  /
dc: can't open '161': No such file or directory
ash: invalid number 'etc/passwd'
  0.00 MB  /
dc: can't open '44': No such file or directory
ash: invalid number 'etc/gshadow'
  0.00 MB  /
dc: can't open '49': No such file or directory
ash: invalid number 'etc/group'
  0.00 MB  /
dc: can't open '458': No such file or directory
ash: invalid number 'usr/local/etc/dropbear/dropbear_dss_host_key'
  0.00 MB  /
dc: can't open '805': No such file or directory
ash: invalid number 'usr/local/etc/dropbear/dropbear_rsa_host_key'
  0.00 MB  /
dc: can't open '50': No such file or directory
ash: invalid number 'usr/local/etc/dropbear/banner'
  0.00 MB  /
dc: can't open '9648': No such file or directory
dc: can't open '5399': No such file or directory

Total backup size (uncompressed):  9648.00 MB (ash: invalid number ''
0 bytes)
Total backup size (compressed)  :  5399.00 MB (ash: invalid number ''
0 bytes)

tc@box:~$



Looks 'dc' is executed with the wrong parameter as it returns 'No such file or directory'.

It is only with the dryrun this 'dc' command is used:
Code: [Select]
tc@box:~$ grep -rin dc /usr/bin/filetool.sh
99:      sizemb=`dc $size 1024 / 1024 / p`
104:  totalsizemb=`dc $totalsize 1024 / 1024 / p`
105:  totalcompressedsizemb=`dc $totalcompressedsize 1024 / 1024 / p`
tc@box:~$


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: With TCL-11.1 (x86) filetool.sh -d gives errors
« Reply #1 on: October 03, 2020, 09:52:42 AM »
Hi rhermsen
I think it's related to this issue:
http://forum.tinycorelinux.net/index.php/topic,23521.msg147397.html#msg147397

It affects  tce-size  and  filetool.sh.  A fix was posted.

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Re: With TCL-11.1 (x86) filetool.sh -d gives errors
« Reply #2 on: October 03, 2020, 10:18:21 AM »
Hi Rich,

Thanks for pointing to that thread. I get this 'cosmetic' issue will be fixed with a next update.
(with search it only showed up as item 46 on page 2, didn't look that far ...)