Tuesday 29 April 2008

How to reconfigure devices (Solaris)

Performing a reconfiguration boot
Create /reconfigure file
# touch /reconfigure
Use init 5 command to shutdown the system,add or remove device.(If the device is already attached to system,can use init 0 command to shutdown)
If the /reconfigure file was not created.
On SPARC
ok> boot -r
On x86/64 system
add option -r when edit kernel on grub
note : use reboot -- -r will send option -r to ok prompt(X86/64 can use this command)

Using the devfsadm command
devfsadm will load every driver in the system and attach all possible device instances.
# devfsadm
to proof all devices
note : option -c to identify class name Ex. devfsadm -c disk.option -C to clear driver.This command won't cover usb drive.

note : reboot -- cdrom will pass cdrom to command boot in ok prompt and boot system by cdrom

No comments: