Advice please: boot problem with Solaris 10 on x86
Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Advice please: boot problem with Solaris 10 on x86
I had this working before. I have a 120GB disk with Solaris on the first primary partition, Fedore Core 3 on the second, Slackware on the third, And FreeBSD 5.3 on the 4th. Booting was handled by grub, and everything was working fine.
I decided to wipe everything out and start from scratch because I didn't like the way the partitions were layed out and I didn't like the way the Solaris slices were layed out within the Solaris partition.
So I repartitioned the disk and installed Solaris 10 on the first partition like I had it before. The install went fine, I booted it, logged in, made some minor changes, like clicking on the StarOffice icon to install that app, made a loghost or logname file in /etc, and enabling XDMCP from the graphical login configuration application. Then I rebooted.
Now it will not boot. I get this:
Quote:
<<< Current Boot Parameters >>>
Boot Path: /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0:a
Boot args:
Type b [file-name] [boot-flag] <ENTER> to boot with options
or i <ENTER> to enter boot interpreter
or <ENTER> to boot wih defaluts
<<< timeout in 5 seconds >>>
Select (b)oot or (i)nterpreter:
If I let it time out, it gives this:
Quote:
Run Error: File not found.
could not run now
then it resdisplays the screen.
I have only been playing with Solaris 10 for a very short time, so I am unfamiliar with it. How can I tell why "File not found"? And more importantly, what can I do to fix it?
You can try manual booting of the system by typing "b kernel/amd64/unix" (assuming x86 version of Solaris 10) at "Select (b)oot or (i)nterpreter:" prompt
I now know what's wrong, but I do not know how to fix it.
I made the following discoveries:
In the "intepreter" mode, I type "set" and can see all the variables. def_bootfile was set to 'now', which explains why I get the error message "can't run now".
I can boot the CDROM, and when I do, it's def_bootfile is 'kernel/unix'
So I changed the def_bootfile to 'kernel/unix' and I am able to boot.
However, every time I reboot, def_bootfile gets reset to 'now'. How to I make it permanent?
Running "set" in the boot interpeter showed def_bootfile and rb_file were both set to "now".
According to /boot/solaris/boot.rc
Quote:
# If a boot file name was supplied at reboot, use it as the default file name
# to boot.
#
# If none was supplied, instead set the default file name to be that specified
# by the /options node property "boot-file."
So where was "now" coming from?
When I rebooted, I ran shutdown -r now. Well, in Solaris, "-r" is not a legal flag for the shutdown command, so I ran reboot now.
Solution: Do not specifiy "now" as an argument to the reboot command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.