Cannot Close Destination File

123 views
Skip to first unread message

Paul Bartlett

unread,
Jul 18, 2026, 1:46:31 PMJul 18
to retro-comp
I have recently built a ZETASBC V2 board complete with Floppy Disk drive and a PPide card with a SD35VCO card attached. All appears to work pretty well, but when trying to copy files to the (SDCard) D: Disk I get the 'Cannot close Destination File' Error Message. I have checked that the SDCard is NOT Write protected. If I do 'STAT' from B: I get:-
A: R/W Space: 184k
B: R/W Space:   22k
D: R/W Space:  8176k 
At boot I get:
Unit        Device      Type              Capacity/Mode
----------  ----------  ----------------  --------------------
Char 0     UART0:       RS-232             38400,8,N,1
Disk 0      MD0:          RAM Disk          256KB,LBA
Disk 1      MD1:          ROM Disk          384KB,LBA
Disk 2      FD0:           Floppy Disk        3.5",DS/HD,CHS
Disk 3      PPIDE0:     CompactFlash   131194MB,LBA
Disk 4      PPIDE1:     Hard Disk         --
If I run FDISK80 for Disk 3:-
B>FDISK80


FDISK80 for RomWBW, UNA, Mini-M68k, KISS-68030, SBC-188  ----
       Version 1.1-23 created 3-June-2023
                 (Running under RomWBW HBIOS)

HBIOS unit number [0..4]: 3
Capacity of disk 3:  (128G)  268685312      Geom 03d01010
Nr  ---Type- A --      Start         End   LBA start  LBA count  Size
 1                   00       *** empty ***
 2     FAT16   06  1023:16:1  1023:31:16   269504512  269225984  128G
 3                   00        *** empty ***
 4                   00        *** empty ***
>>
  Not got much further....any help will be much appreciated. Thank You

Wayne Warthen

unread,
Jul 18, 2026, 2:14:36 PMJul 18
to retro-comp
Hi,

Happy to try and help.  Let me ask for a bit more information to start with.

First, would you mind posting the entire boot log?  This will help me understand the full context of your system including version numbers.

Second, I want to make sure I understand how the SD35VCO board is attached to your system.  The Zeta V2 has a 34 pin parallel port.  Normally, an adapter is used to convert between the 34-pin parallel port and a 40-pin IDE interface.  Is that what you are doing?

Finally, did you copy one of the RomWBW hard disk images to your SD Card?  Typically, you would copy hd1k_combo.img to the SD Card using a raw copy tool such as Win32DiskImager.

Thanks, Wayne

Paul Bartlett

unread,
Jul 18, 2026, 2:52:09 PMJul 18
to retro-comp
Thanks Wayne,
Yes I have an adapter connected to the parallel port via 34 pin ribbon, and the 40 pin connected to the SD card/IDE board.
I also copied hd1k_combo.img to the SD Card using Win32DiskImager.
See the attached interaction:-
B>D:
D>DIR
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D:   :   :   :
D>E:
E>DIR
NO FILE
E>B:PIP E:ASM.COM=B:ASM.COM

CANNOT CLOSE DESTINATION FILE: =B:ASM.COM

E>DIR
E: QS] 0 0  4$4


Boot Log is:-
RomWBW HBIOS v3.7.0-dev.11, 2026-07-17

Zeta 2 [ZETA2_phb] Z80 @ 8.000MHz
0 MEM W/S, 1 I/O W/S, INT MODE 2, Z2 MMU
512KB ROM, 512KB RAM, HEAP=0x40FA
ROM VERIFY: 00 00 00 00 PASS

CTC: IO=0x20 TIMER MODE=CTR
UART0: IO=0x68 16550A MODE=38400,8,N,1 FIFO
DSRTC: MODE=STD IO=0x70 Sat 2026-07-18 19:39:35 CHARGE=OFF
MD: UNITS=2 ROMDISK=384KB RAMDISK=256KB
FD: MODE=ZETA2 IO=0x30 UNITS=1
PPIDE: IO=0x60
PPIDE0: ATA LBA BLOCKS=0x1003D000 SIZE=131194MB
PPIDE1: NO MEDIA
PPP: IO=0x60 NOT PRESENT


Unit        Device      Type              Capacity/Mode
----------  ----------  ----------------  --------------------
Char 0      UART0:      RS-232            38400,8,N,1
Disk 0      MD0:        RAM Disk          256KB,LBA
Disk 1      MD1:        ROM Disk          384KB,LBA
Disk 2      FD0:        Floppy Disk       3.5",DS/HD,CHS
Disk 3      PPIDE0:     CompactFlash      131194MB,LBA
Disk 4      PPIDE1:     Hard Disk         --


Zeta 2 [ZETA2_phb] Boot Loader
NV Switches Found

Boot [H=Help]:

Wayne Warthen

unread,
Jul 18, 2026, 2:54:36 PMJul 18
to retro-comp
OK, thanks.  It looks like the SD Card is not initialized.  Did you copy hd1k_combo.img to it?

Thanks, Wayne

Wayne Warthen

unread,
Jul 18, 2026, 2:55:32 PMJul 18
to retro-comp
Oops, you already answered that.  Sorry.

Wayne Warthen

unread,
Jul 18, 2026, 2:57:16 PMJul 18
to retro-comp
You are using the development snapshot of RomWBW, so I am going to run a few tests here on my Zeta 2 and make sure it is all working for me.

Thanks, Wayne

Wayne Warthen

unread,
Jul 18, 2026, 3:00:05 PMJul 18
to retro-comp
Can you print the disk partition with FDISK80 again?  The one you supplied earlier does not match what I would expect after copying hd1k_combo.img to the SD Card.  I am wondering if there is an issue with how your modern computer is writing the raw disk image to the SD Card.

Paul Bartlett

unread,
Jul 18, 2026, 3:15:03 PMJul 18
to retro-comp
Sure thing Wayne...
B>FDISK80


FDISK80 for RomWBW, UNA, Mini-M68k, KISS-68030, SBC-188  ----
       Version 1.1-23 created 3-June-2023
                 (Running under RomWBW HBIOS)

HBIOS unit number [0..4]: 3
Capacity of disk 3:  (128G)  268685312      Geom 03d01010
Nr  ---Type- A --      Start         End   LBA start  LBA count  Size
 1    RomWBW   2e    24:16:1  1023:31:16   268441600  269488128  129G
 2     FAT16   06  1023:16:1  1023:31:16   269490176  269225984  128G

 3             00       *** empty ***
 4             00       *** empty ***
>>

Wayne Warthen

unread,
Jul 18, 2026, 3:17:58 PMJul 18
to Paul Bartlett, retro-comp
That looks right.  Give me some time to recreate your setup and test.

Thanks, Wayne

--
You received this message because you are subscribed to the Google Groups "retro-comp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to retro-comp+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/retro-comp/1d98f0da-9feb-46ad-86a5-4c23b7dbc2acn%40googlegroups.com.

Wayne Warthen

unread,
Jul 18, 2026, 3:38:06 PMJul 18
to Paul Bartlett, retro-comp
I’m not sure if it is the issue, but I suggest you disable the PPP driver in your case.  It has a Conflicting port address with the PPIDE driver.

Paul Bartlett

unread,
Jul 18, 2026, 4:09:14 PMJul 18
to retro-comp
ok. will do. I take it that it is in the config  and requires a rebuild?

Wayne Warthen

unread,
Jul 18, 2026, 4:15:42 PMJul 18
to retro-comp
Correct.  Update config, rebuild, and update ROM.

I just finished putting together your exact config including the SD35VCO.  I am not seeing any issues even with the conflicting PPP driver enabled.  It doesn't look like there are any obvious software issues.  It is definitely worth disabling the PPP driver and trying again.  I have some other stuff to attend to, but will think about this some more.

Thanks, Wayne

Wayne Warthen

unread,
Jul 18, 2026, 4:17:46 PMJul 18
to retro-comp
I should mention that this seems very odd.  The fact that FDISK80 is working and showing valid sector data means that the interface is basically OK.

Do you have any SD Cards with a smaller capacity.  128GB is very large and maybe there is an overflow somewhere.  I am currently testing a 32GB card with no trouble.

Thanks, Wayne

Paul Bartlett

unread,
Jul 18, 2026, 4:32:26 PMJul 18
to retro-comp
Thanks Wayne. I have now used a SanDisk Ultra 32GB Card and it looks like FDISK80 sees it as 158Gb !!
FDISK80 for RomWBW, UNA, Mini-M68k, KISS-68030, SBC-188  ----
       Version 1.1-23 created 3-June-2023
                 (Running under RomWBW HBIOS)

HBIOS unit number [0..4]: 3
Capacity of disk 3:  (158G)  330773504      Geom b7341010

Nr  ---Type- A --      Start         End   LBA start  LBA count  Size
 1    RomWBW   2e    24:16:1  1023:31:16   268441600  269488128  129G
 2     FAT16   06  1023:16:1  1023:31:16   269490176  269225984  128G
 3             00       *** empty ***
 4             00       *** empty ***
>>

Wayne Warthen

unread,
Jul 18, 2026, 5:35:23 PMJul 18
to retro-comp
Hmmm... this looks like there are bit error(s) somewhere.  I doubt the issue is between the CPU and the 8255 (because the issues would be more severe).  However, you have a connection from the 8255 to the adapter and the adapter to the SD35VCO.  The problem could also be in the adapter itself unless you have verified it independently.

For reference, below is what the FDISK80 output should be (from my system):

FDISK80 for RomWBW, UNA, Mini-M68k, KISS-68030, SBC-188  ----
       Version 1.1-23 created 3-June-2023
                 (Running under RomWBW HBIOS)

HBIOS unit number [0..4]: 3
Capacity of disk 3:  ( 30G)  62333952      Geom b7241010

Nr  ---Type- A --      Start         End   LBA start  LBA count  Size
 1    RomWBW   2e      8:0:1  1023:15:16        2048    1048576  512M
 2     FAT16   06   1023:0:1  1023:15:16     1050624     786432  384M

 3             00       *** empty ***
 4             00       *** empty ***

Paul Bartlett

unread,
Jul 18, 2026, 5:41:15 PMJul 18
to retro-comp
Hi Wayne,
Thank you for testing for me. I'm going to re-visit the adapter schematic to ensure I have built it correctly. I appreciate your time and efforts. KRs Paul

Wayne Warthen

unread,
Jul 18, 2026, 5:45:20 PMJul 18
to retro-comp
Also check your ribbon cables.  😀

Douglas Miller

unread,
Jul 18, 2026, 6:48:20 PMJul 18
to retro-comp
Is it possible that you copied the image as a *file* instead of doing a raw copy into the partition?

Paul Bartlett

unread,
Jul 19, 2026, 8:29:01 AMJul 19
to retro-comp
Thank you to all...I found the problem: A bridged couple of pins on the parallel port underside of the ZetaV2. I now have a D: drive full of files, Note to self: 'pay proper attention to soldering!!'

Thanks again Wayne for not only helping me yesterday, but also for a great piece of software.

KRs
Paul

Wayne Warthen

unread,
Jul 19, 2026, 8:39:46 PMJul 19
to retro-comp
Glad to hear it is working!

-Wayne

Reply all
Reply to author
Forward
0 new messages