On Thu, Mar 2, 2023 at 9:28 AM KenUnix <ken.unix.guy@gmail.com> wrote:
> I am trying to use the 'dump' program but it references rmt1.
>
> My system only has rmt0. I have been unable to find how to
> create this device. I have looked over the reference material
> but it only references rmt0.
>
> Is there any way to redirect a dump to use rmt0?
>
> Any help is appreciated.
I'd start with the man page.
Dump(1M) says that argument `f` causes `dump` to, "Place the dump on
the next argument file instead of the tape". Did you try using that
option with `/dev/rmt0`?
Alternatively, I don't see why you couldn't hard-link /dev/rmt1 to /dev/rmt0:
# cd /dev
# ln rmt1 rmt0
Or use `mknod` to create a device file with the same major/minor numbers:
# cd /dev
# /etc/mknod rmt1 c 12 0
Or even, as a very last resort, edit the source and change the default
dump device. It's in /usr/src/cmd/dump.c
Hope that helps!
- Dan C.