🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #2162

Dump/restore problem with DAT-drive - solved !!

#2162
From: Helmut Schoenborn
Date: Thu, 17 Dec 1992 10:45
56 lines
1590 bytes
I recently posted an article because when I tried to restore from tape by 

	restore if /dev/rst0

I received

	Tape/disk read error: I/O error

Via email (special thanks to Max Hailperin and Lewis Van Winkle !) the
solution arrived. The block size has to be specified to restore by

	restore ibf 10 /dev/rst0

and everything works fine. An other possibility is to inhibit illegal
length errors. Max Hailperin sent the following code, which he runs in
his /etc/rc.local :

/* mtinill.c */
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <nextdev/scsireg.h>
#include <sys/file.h>

main(int argc, char *argv[]){
  int fd;

  if(argc != 2){
    fprintf(stderr, "Usage: %s device\n", argv[0]);
    exit(1);
    }

  if((fd = open(argv[1], O_RDONLY, 0)) < 0){
    perror(argv[1]);
    exit(1);
  }

  if(ioctl(fd, MTIOCINILL, NULL) < 0){
    perror("doing MTIOCINILL ioctl");
    exit(1);
  }

  if(close(fd) < 0){
    perror("closing");
    exit(1);
  }

  exit(0);
}
 
Again, many thanks
-- 

                     __   __
Helmut Schoenborn   /\_\_/\_\       email: helmut@nexcom.hanse.de
Rheingoldweg 13     \/_/ \/_/       voice (040) 810 816
Technical Details
Message-ID: <1992Dec17.104536.273@nexcom.hanse.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.Hamburg.Germany.EU.net!malihh!nexcom.hanse.de!helmut

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.Hamburg.Germany.EU.net!malihh!nexcom.hanse.de!helmut
From: helmut@nexcom.hanse.de (Helmut Schoenborn)
Subject: Dump/restore problem with DAT-drive - solved !!
Message-ID: <1992Dec17.104536.273@nexcom.hanse.de>
Organization: Nexcom
Date: Thu, 17 Dec 1992 10:45:36 GMT
Lines: 56