brouhaha / tapeutils

GNU General Public License v2.0
22 stars 4 forks source link

Segmentation fault with tapewrite #20

Open 13spacemen opened 11 months ago

13spacemen commented 11 months ago

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

larsbrinkhoff commented 11 months ago

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.

13spacemen commented 11 months ago

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

larsbrinkhoff commented 11 months ago

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

nigeleke commented 6 months ago

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...

larsbrinkhoff commented 6 months ago

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.