Search Text         
Search Tips?
Search By   And   Or   Boolean   Exact Match   TA #
Search In   Whole Doc   Keywords Sort By  
Product   Sub Product  

View Technical Articles (sorted by Product) New/Updated in the last:    7 days      14 days      30 days             
TA # Date Created Date Updated Resolved Issue?   Printer Friendly Version of This TA   Print Article
  E-mail This TA   E-mail Article
125361 10/02/2003 03:44 AM 05/15/2006 03:34 PM
Yes No
UnixWare 7.1.x: I have destroyed my /dev devices. Is there any way that I can recover them using the install media?
Keywords
unixware 7.1.3 713 /dev devices device nodes restore destroyed remove system boot vxxm_sysboot null swap vxvm_reconfig 714 7.1.4
Release
          UnixWare Release 7.1.3, 7.1.4 
Problem
          I have somehow managed to delete my /dev directory. Now when 
I reboot my UnixWare 7.1.x system I get the errors:

UX:sh (vxxm_sysboot):ERROR: /dev/null: Cannot create /dev/swap: No such file or 
directory
UX:sh (/sbin/ckroot): ERROR: /dev/null: Cannot create
UX:sh (vxvm_reconfig): ERROR: /dev/console: Cannot open
UX:init: ERROR: Cannot create /var/adm/utmp or /var/adm/utmpx
UX:init: ERROR: Failed write of utmpx entry: " "
UX:init: ERROR: Failed write of utmpx entry: " "
UX:init: INFO: SINGLE USER MODE

and I cannot access the system? If I do not have emergency recovery media
and a backup of my system. Is there any way that I can recreate some
or all of the device nodes to allow me to access the system?


Solution
          

The following recovery steps will allow you to boot your system 
from hard disk but may not provide support for some devices on your system 
like your network card and your mouse.

1. Boot the machine with the UnixWare Release 7.1.3 CD1

2. Proceed through the installation choosing a locale and a
keyboard language.

3. Press <F8> to defer licensing and choose to use an evaluation license.

4. If necessary, load an additional HBA driver for your system, or proceed
with the installation using a standard HBA.

5. Enter the DCU, if necessary, on your system. Otherwise, press <F10> to
continue.

6. When you get to the "System Node Name" screen, switch to VT0 by pressing
the <Alt><SysRq> keys together, then the <H> key.

7. Mount the CD-ROM:

mount -F cdfs -r /dev/cdrom1 /cd-rom

8. Assuming your root filesystem is vxfs, register the vxfs filesystem
module:

modreg 4 vxfs

9. Register the bfs filesystem module using:

modreg 4 bfs

10. Load the vxfs and bfs filesystem modules:

modadmin -l /cd-rom/.extra.d/etc/conf/mod.d/vxfs
modadmin -l /cd-rom/.extra.d/etc/conf/mod.d/bfs

11. Mount the root filesystem of the hard disk; the entry below assumes that
your hard disk is on Controller 0, Bus 0, Target ID 0 and LUN 0. If not, use
the correct device node for your hard disk. 
NOTE:
      Root for UnixWare 7 is 
always slice 1.

sh_mount -F vxfs /dev/dsk/c0b0t0d0s1 /mnt

12. Mount the boot filesystem of the hard disk; the entry below assumes that 
your hard disk is on Controller 0, Bus 0, Target ID 0 and LUN 0. If not, use 
the correct device node for your hard disk. 
NOTE:
      Boot for UnixWare 7 is 
always slice a.

sh_mount -F bfs /dev/dsk/c0b0t0d0sa /mnt/stand

13. Copy the devices from the ramdisk onto the root filesystem of the hard disk using:

cp -R /dev/* /mnt/dev

and remove unwanted device nodes using:

cd /mnt/dev
rm cdrom1 passthru0 rdump rroot rstand rswap stand swap udev term

14. Change directory to the root filesystem and chroot to it using the
commands:

cd /mnt
chroot /mnt /bin/sh

15. Remake the UnixWare device nodes using the commands:

/etc/conf/bin/idmknod
/etc/scsi/pdimkdev -fi

16. Recreate the pointers to the root disk using the command:

/sbin/fixroot

17. Exit from the chroot and unmount the root filesystem using:

exit
cd /
sh_umount /mnt/stand
sh_umount /mnt

18. Reboot the system using <Ctrl><Alt><Del>
Back to Search ResultsBack to Search Results