Labels

Tuesday, 6 September 2011

Create /dev/dsk and /dev/rdsk device tree after loss

If ever the /dev/dsk and /dev/rdsk tree were to be deleted or root not able to mount due to unable to find /dev/dsk/ctds .The below steps outlines steps to recover the device tree by using swap .I had an interesting issue and used below to recover it .

The steps involves mounting tmpfs and creating device files on top on it and then recover .

mount /tmp ( This basically mounts swap on /tmp and is writable )

devfsadm -r /tmp ( This will create the dev and rdsk devices )

mount -F lofs /tmp/dev /dev ( Now mount the /tmp/dev as dev )

fsck / ( this step is to test that device file has been created )

mount -o rw,remount / ( you should now be able to mount the rootslice )

umount /dev ( now the temporary dev slice can be unmounted off as the device tree is in place )

devfsadm to recreate the device tree .


No comments:

Post a Comment