Mark
Mark

Reputation: 6484

OracleSolaris 11.2 crashes at boot

As a result of experiments with PCI driver development, I had my kernel crashed. Now I'm in situation when the OS boots and crashed again, since it tries to load my faulty driver. What is the way to fix it, probably avoid booting my driver, so that I can log in the system in 'safe' mode and then fix my driver or at least uninstall from the system?

UPDATE After reading http://docs.oracle.com/cd/E36784_01/pdf/E36801.pdf and other docs, it appears that the steps are as follows:

1) boot from solaris CD

2) select Shell

3) zpool import -R /a rpool

4) zfs mount rpool/ROOT/zfsBE

5) cd /a and remove the faulty driver from /usr/kernel/drv/

Not entirely sure and I don't want to screw up the system again, so would like to get a confirmation from Solaris gurus.

UPDATE2 So the above fix-scenario almost worked for me, that said I was able to import rpool and this automatically mounted /export/home under /a and this allowed me to delete my faulty driver, since earlier I made a soft-link to it from /usr/kernel/drv; basically I was able to reboot and start solaris with no issues and no error messages, so I didn't even run fsck. But what didn't work for me is zfs mount rpool/ROOT/solaris which is a root FS, because I wanted to delete a link from /usr/kernel/drv. The error message said I should be doing this with mount.

BTW, for now I copy my driver on /tmp and create a link /usr/kernel/drv/amf64/mydrv, so in case of crash, the system reboot and cleans the /tmp partition. I will need to invest some time in beadm later on.

Thanks.

Upvotes: 0

Views: 998

Answers (1)

Andrew Henle
Andrew Henle

Reputation: 1

Boot from a CD/DVD, or read around page 81 of this document, assuming you're running on x86 hardware.

Basically, you need to get around the loading of your device. If you don't have a safe-mode GRUB option (again assuming x86), or if the safe mode still loads your driver, it's probably a lot easier to just boot a Solaris CD/DVD, mount/import your root pool, and remove your driver from the file system.

Upvotes: 1

Related Questions