tapeutils icon indicating copy to clipboard operation
tapeutils copied to clipboard

Segmentation fault with tapewrite

Open 13spacemen opened this issue 1 year ago • 5 comments

Trying to put some files on TOPS-10

git cloned repo sudo make no errors just warnings

sudo ./tapewrite Segmentation fault

OS is x64 Ubuntu on WSL2

the other programs work fine just not tapewrite which is the one i need to transfer files to .tap

later i tried compiling with clang instead of gcc, still get this error on tapewrite

13spacemen avatar Sep 13 '23 15:09 13spacemen

This is a legitimate bug, but you should pass it some command line arguments.

tapewrite [-v] [-s] [-n blocksize] outfile.tap infile1 [infile2 ...]

However, this is not the right program to make a .tap with files for TOPS-10. You should use t10backup for that.

larsbrinkhoff avatar Sep 13 '23 15:09 larsbrinkhoff

What is the syntax for t10backup? I'm not quite sure how to use it

I have a folder /empire10/ which I would like to turn into a .tap to load into TOPS-10

13spacemen avatar Sep 13 '23 15:09 13spacemen

It's described here: https://github.com/brouhaha/tapeutils/blob/master/t10backup.c#L102-L119

larsbrinkhoff avatar Sep 13 '23 16:09 larsbrinkhoff

I'm puzzled on how to use t10backup too. The issue is regarding creating a tap file, but t10backup appears to expect an existing tap file to exist - https://github.com/brouhaha/tapeutils/blob/6bcd82d3508c00918a66de61798b85c044b33c6d/t10backup.c#L751 - unless I've not understood something. I, too, used tapewrite...

nigeleke avatar Feb 02 '24 00:02 nigeleke

I was wrong about t10backup creating .tap files. It will only list or extract files from an existing tape.

I think you can use backwr to create TOPS-10 backup tapes: https://github.com/PDP-10/klh10/tree/master/contrib/backwr
I know I have done it somehow, but it's so infrequent I keep forgetting what I did.

larsbrinkhoff avatar Feb 02 '24 10:02 larsbrinkhoff