tape-creation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tape-creation [2018/09/02 19:47] – wiki_admin | tape-creation [2022/04/15 13:24] (current) – added missing dtdist.sh script and new tape download link wiki_admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | {{ : | + | |
- | So you want to make an install | + | The " |
- | **Step 1: Verify that you have the proper hardware** | + | See [[https:// |
- | This method has been tested using an existing Amiga UNIX install (maybe installed using the HD hack) and a Commodore A3070 tape drive. It is hoped you have these things. In particular the installation is very sensitive to the tape drive used, so you may be wasting your time without an A3070. If you do not have these things, you can attempt to create the tape using a QIC 150 tape drive of any type using DC6150 tapes. You may find the following information from the Amiga-Hardware page about the A3070 helpful: | + | **Compatible 3rd party SCSI tape drives:** |
+ | * Caliper, Sankyo and Wangtek brands of SCSI QIC-150 tape drives (Wangtek 5150ES and Sankyo CP-150SE verified by users) | ||
+ | * Archive Viper 150 MB (see note below) | ||
- | The A3070 is the same tape drive as the “Caliper CP150 SCSI QIC” and “Archive Viper 150MB Tape Streamer? | + | **Note 1:** The tape drive must always be set to SCSI ID 4 as the installation script is hard-coded for it. |
- | You won't be able to get the drive to work reliably without | + | **Note 2:** //Drivers written by Frank Edwards for the Archive Viper tape unit are now included with Amiga Unix. Type Ctrl-D at the first prompt of the installation procedure. Type " |
- | I'm assuming you have what you need, or have given up with a heavy heart. Either way, let's proceed! | + | __Not compatible__ SCSI drives (verified by user): Tandberg TDC4120 |
+ | |||
+ | You won't be able to get the drive to work reliably without the proper termination, | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Tape commands ====== | ||
+ | |||
+ | * re-tension the tape (by fast forwarding and rewinding it): **mt retension** | ||
+ | * rewind the tape: **mt rewind** | ||
+ | * Zeroing out the tape (" | ||
+ | * Zeroing out the tape (" | ||
+ | |||
+ | “Using Amiga Unix” mentions tape only shortly on “Backing up your files” (p. 232-235), here are the examples: | ||
+ | |||
+ | * Backing up files to tape: **find /home/joe -depth -print | cpio -ocv -O > / | ||
+ | * List the contents of your backup: **cpio -ictv < / | ||
+ | * Restore files: **cpio -imdcuv -B < / | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | ====== AMIX install tape creation ====== | ||
+ | {{ : | ||
+ | |||
+ | So you want to make an install tape. This is a slightly risky proposition, | ||
+ | |||
+ | **Step 1: Verify that you have the proper hardware** | ||
+ | |||
+ | This method has been tested using an existing Amiga UNIX install (maybe installed using the HD hack) and a Commodore A3070 tape drive. It is hoped you have these things. In particular the installation is very sensitive to the tape drive used, so you may be wasting your time without an A3070. If you do not have these things, you can attempt to create the tape using a QIC 150 tape drive of any type using DC6150 tapes. | ||
**Step 2: Prepare the drive and media** | **Step 2: Prepare the drive and media** | ||
Line 20: | Line 51: | ||
Next, unless you are using brand new tape, you should retension and zero out the tape. In AMIX issue the following commands, in some other OS you will possibly specify the device name differently. | Next, unless you are using brand new tape, you should retension and zero out the tape. In AMIX issue the following commands, in some other OS you will possibly specify the device name differently. | ||
- | Retensioning the tape: mt retension | + | Retensioning the tape: **mt retension** |
Retensioning the tape fast-forwards and rewinds the tape in an effort to eliminate slack in the tape. It just takes a few moments. | Retensioning the tape fast-forwards and rewinds the tape in an effort to eliminate slack in the tape. It just takes a few moments. | ||
Line 26: | Line 57: | ||
Zeroing out the tape will depend on what version of AMIX you are installing. For 2.1 (recommended), | Zeroing out the tape will depend on what version of AMIX you are installing. For 2.1 (recommended), | ||
- | Zeroing out the tape for 2.1 installation: | + | Zeroing out the tape for 2.1 installation: |
- | + | Zeroing out the tape for other versions: | |
- | Zeroing out the tape for other versions: dd if=/ | + | |
The reason for doing this step is simply that the tape will be more reliable this way than if it had some data leftover on it. Once the tape is full (dd will report no more space on the device) it should automatically rewind. If it doesn' | The reason for doing this step is simply that the tape will be more reliable this way than if it had some data leftover on it. Once the tape is full (dd will report no more space on the device) it should automatically rewind. If it doesn' | ||
Line 34: | Line 64: | ||
**Step 3: Prepare the files for tape transfer** | **Step 3: Prepare the files for tape transfer** | ||
- | If you haven' | + | If you haven' |
- | You need to make the tape files accessible on the machine you are writing the tape from, assumably an AMIX box. How you do this is up to you, and depends on what resources you have available. I use an NFS mount. If you have no network card, you might consider using kermit and your serial port. I've done it before…maybe I'll document it later, but there' | + | You need to make the tape files accessible on the machine you are writing the tape from, assumably an AMIX box. How you do this is up to you, and depends on what resources you have available. I use an NFS mount. If you have no network card, you might consider using kermit and your serial port. Your box needs to have access to the following: |
- | tape media extracted from the tar.bz2 files tape creation script (dtdist.sh) | + | * tape media extracted from the zip file |
+ | * tape creation script (dtdist.sh) | ||
- | If your tape media does not have a seglist | + | <file bash dtdist.sh> |
+ | #!/bin/sh | ||
- | If and only if you are making a 2.1 tape you need to modify dtdist.sh before continuing. Change this line: | + | for name in `cat seglist` |
+ | do | ||
+ | echo " | ||
- | dd if=$name of=/ | + | |
- | To this: | + | done |
+ | </ | ||
- | dd if=$name of=/ | + | If your tape media does not have a seglist file (the 2.1 image on this site does, so no worries there) you'll have to figure out the order of the files on the tape. If they are numbered sequentially already, just do ls > seglist but make sure that only tape installation files are in there, and not other things like the dtdist.sh script. If seglist is missing and the files aren't numbered, you need to figure out the order…list the cpio files you have until you encounter one with just two files in it: Version and List. cat the List file. The file containing Version and List needs to be the first onto the tape; everything else goes afterward, in the order specified in the List file. How you figure this out is up to you. The seglist just contains filenames in the order to go onto the tape. |
+ | |||
+ | If and only if you are making a 2.1 tape you need to modify dtdist.sh before continuing. Change this line: | ||
+ | |||
+ | **dd if=$name of=/ | ||
+ | to this: \\ | ||
+ | **dd if=$name of=/ | ||
- | If you're making any other version leave it alone. Now put that file where you will remember it (/tmp maybe) and make it executable (chmod a+x dtdist.sh). Now you should have your tape files somewhere you can get to them, whether an NFS mount or local directory, and you have the dtdist.sh ready. | + | If you're making any other version leave it alone. Now put that file where you will remember it (/tmp maybe) and make it executable (**chmod a+x dtdist.sh**). Now you should have your tape files somewhere you can get to them, whether an NFS mount or local directory, and you have the dtdist.sh ready. |
**Step 4: Tape creation** | **Step 4: Tape creation** | ||
- | Enter the directory with your tape files including the seglist, and run the dtdist.sh script. If all is set up properly files will begin copying to the tape drive. This will take several minutes, so relax a while. Issue mt rewind when it's completed. | + | Enter the directory with your tape files including the seglist, and run the **dtdist.sh** script. If all is set up properly files will begin copying to the tape drive. This will take several minutes, so relax a while. Issue **mt rewind** when it's completed. |
**Step 5: Make another one!** | **Step 5: Make another one!** | ||
Line 64: | Line 105: | ||
This step is also optional, but might save you some time in the long run. Take a look at the cpdist.sh script included with the tape creation script. Modify the device name to be 4hn if you have a 2.1 tape and run it in an empty directory, copying the seglist file into it before you run the script. If you get any errors, you can either try that tape again (retension, zero out, write tape) or try a new tape. No errors? You're ready to install, but it's wise to have a backup tape anyway! | This step is also optional, but might save you some time in the long run. Take a look at the cpdist.sh script included with the tape creation script. Modify the device name to be 4hn if you have a 2.1 tape and run it in an empty directory, copying the seglist file into it before you run the script. If you get any errors, you can either try that tape again (retension, zero out, write tape) or try a new tape. No errors? You're ready to install, but it's wise to have a backup tape anyway! | ||
- | ---- | + | **Bonus:** print out a nice label and stick it on the tape to give it a professional look 8-) See [[boxed|Original Box & Manuals / Tape and disk labels]] |
- | + | ||
- | ====== Other tape commands ====== | + | |
- | + | ||
- | “Using Amiga Unix” mentions tape only shortly on “Backing up your files” (p. 232-235), here are the examples: | + | |
- | + | ||
- | Backing up files to tape: **find /home/joe -depth -print | cpio -ocv -O > / | + | |
- | + | ||
- | List the contents of your backup: **cpio -ictv < / | + | |
- | + | ||
- | Restore files: **cpio -imdcuv -B < / | + | |
- | + | ||
- | Other Amix tape commands: **mt retension** (re-tensions | + | |
- | + | ||
- | Zeroing out the tape (for 2.1 installation): | + | |
- | Zeroing out the tape (for other versions): **dd if=/ | + |
tape-creation.txt · Last modified: 2022/04/15 13:24 by wiki_admin