Thread View: comp.sys.next.sysadmin
1 messages
1 total messages
Started by Helmut Schoenborn
Thu, 17 Dec 1992 10:45
Dump/restore problem with DAT-drive - solved !!
Author: Helmut Schoenborn
Date: Thu, 17 Dec 1992 10:45
Date: Thu, 17 Dec 1992 10:45
56 lines
1590 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads