Operating System - Tru64 Unix
1754292 Members
3578 Online
108813 Solutions
New Discussion юеВ

Recreate device files due to tar error

 
SOLVED
Go to solution
LucianoCarvalho
Respected Contributor

Recreate device files due to tar error

Hi Guys!
Does anyone know how to recreate device files on Tru64 5.1? It's because I'm trying to restore a backup through tar with device file /dev/tape/tape1_D0, but I'm receiving the following error:
can not open /dev/tape/tape0_D0: No shuch device or address
The tape drive was changed and swaped to another address some time ago.
The command used on restore:

tar cvf /dev/tape/tape1_D0
Thanks
3 REPLIES 3
Ralf Puchner
Honored Contributor
Solution

Re: Recreate device files due to tar error

first, restoring a device from tape etc. is not a supported way.

use the commands

# hwmgr -scan scsi
to automatically detect new scsi devices.

# hwmgr -show scsi
to check if a new device was created

# dsfmgr -m tape5 tape0
to move the name of the tape device

have a closer look to the administration guide dealing with all kind of issues on devices.

Help() { FirstReadManual(urgently); Go_to_it;; }
rachel_11
Advisor

Re: Recreate device files due to tar error

The device name is the one that
hwmgr -show scsi
will display a valid path for it.

You can also see it by:
file /dev/tape/*

You can then change the name (by dsfmgr as mentioned before) or use the command with this device name
Paul Sperry
Honored Contributor

Re: Recreate device files due to tar error

delete them and re-boot the os will detect and re-create the device files.