my pc reboot as I select the sun partition - Systems Maintenance(Archived)

hi , I've a double partition on my hdd , when I select the solaris one and start the os in normal mode , computer reboot suddenly, instead if I select the safe mode, it lead me to a command line , but I'm new in solaris and I don't know how to make the system work as before this problem. Any ideas on what I should insert in the command line? 

i make the system boot with the kernel/unix -v flag, but I did this editing the menu that let me choose which operative system to start, because I don't know how to use vi , is it the same? the last line of the output are these:
root nexus = i86pc
pseudo0 at root
pseudo0 is /pseudo
scsi_vhci0 at root
scsi_vhci0 is /scsi_vhci
npe0 at root: space 0 offset 0
npe0 is /pci#0,0i searched on google and I found that after npe0 is /pci#0,0 there should be "PCI EXPRESS device" voice. But my pci express video card work very well. 

hi,
not sure what went wrong but if you access your solaris os via failsafe option from grub menu. That mean your should be fine.
If you could access the root shell via failsafe, go to menu.lst file in /boot/grub directory and modify the following so that you notebook only boots 32 bit kernel.
add kernel/unix only after the multiboot.
kernel /platform/i86pc/multiboot kernel/unix
To use vi, try this.
to open the file
# vi menu.lst
To start navigate and edit, press ESC+a , to save and quit, press ESC follow :wq! . If you did a mistake and want to exit immediately, press ESC and :q!
Rgds 

hi,
not sure what went wrong but if you access your solaris os via failsafe option from grub menu. That mean your should be fine.
If you could access the root shell via failsafe, go to menu.lst file in /boot/grub directory and modify the following so that you notebook only boots 32 bit kernel.
add kernel/unix only after the multiboot.
kernel /platform/i86pc/multiboot kernel/unix
To use vi, try this.
to open the file
# vi menu.lst
To start navigate and edit, press ESC+a , to save and quit, press ESC follow :wq! . If you did a mistake and want to exit immediately, press ESC and :q!
Rgds

Related

booting solaris 9:  /etc/bootrc?

I have installed solaris in PIII 500 and all works perfect during instalation, but when reboot to run this message appear:
<i>boot:source: open of '/etc/bootrc' failed</i>
I try to boot with the software CD1 of 2 and it say the same
I'm changing from windows and my knowledge of unix is limited, so can you give me solutions with simple words?
Thanks to all
Do you have more than one HDD installed in the system, and did you
try to install Solaris to the secondardy disk?
It seems the <font face="Courier">boot: source: open of '/etc/bootrc' failed</font>
problem is a bug in the Solaris installer. It writes the wrong bootpath
property to the root filesystem of the new Solaris installation.
<div class="pre"><pre> ----------------------</pre></div>
I just tried to install Solaris 10 b69 on c1d0s6.
c0d0 is the boot disk, master device on the primary ide channel.
c1d0 is another ide disk, master device on the secondary ide channel.
The physical device path for c1d0s6 is
<div class="pre"><pre>
# ls -l /dev/dsk/c1d0s6
lrwxrwxrwx 1 root root 50 Jan 9 2004 /dev/dsk/c1d0s6 ->
../../devices/pci#0,0/pci-ide#7,1/ide#1/cmdk#0,0:g
</pre></div>
But the installer writes this to /boot/solaris/bootenv.rc:
<div class="pre"><pre>
# grep bootpath /sol10/boot/solaris/bootenv.rc
setprop bootpath /pci#0,0/pci-ide#7,1/ide#0/cmdk#0,0:g
</pre></div>
(Note: "ide#0" instead of "ide#1")
Solaris 10 cannot be booted from the secondary disk, the Solaris boot code
reports:
<div class="pre"><pre>
Run Error: File not found
boot: source: open of '/etc/bootrc' failed
</pre></div>
Changing the bogus bootpath in bootenv.rc fixes the boot problem.
It should be possible to fix the bootpath by interrupting the boot process
with ESC, and setting the correct boot device in the "Boot Tasks" submenu
on the last screen named "Boot Solaris".
I'm having the same problem (source: open of /etc/bootrc failed), but I'm only using one IDE disk. Any ideas?
Solaris writes my bootpath out as:
/pci#0,0/pci-ide#4,1/ide#0/cmdk#0,0:a
After trying to install Solaris10 8 times I have finally cracked it!
Here is how to do it:
1. Put the HDD to boot from on the the primary IDE channel in the 1st connection and the DVDRom on the 2nd connection,
2. Disable power management and plug and play in bios,
3. Go through the installation process (choose 1 for example from the choice of 4),
4. Follow the instructions - make sure you DONT choose anything such as additional software or anything else.
5. JUST choose the core installation - this is very important!!!
6. When it comes to the disk management part of the installation (press f4), make sure you allow a 10-11MB x86 boot partition to exist - you can get this by clicking on default.
7. Complete the rest of the installation and after the reboot, eject the installation DVD, then reboot and make sure you can log onto the newly created solaris10 machine,
8. put the DVD drive in again and reboot, and do everything as before but this time you can choose entire distribution / installation.
9. Done - after the reboot then all is good and the x-server starts.
10. Ignore the warning message.
11. Be Happy!!!!!! Welcome to the world of Solaris - I am a newbie myself - but wanted to share this success with others.
All the best,
Sal

Bad entry in /etc/password for root

I had a feeling that it wasn't a good idea to change the default shell for root. Tried it anyway because I know how to get myself back in on other Unix versions - Well I can't log in as root anymore. Can't even su to root (with or without '-'). b - s from the boot interpreter fails as well.
What I'd like to try now is to boot in single user mode from CD and mount my hard drive and get to the /etc/passwd file.
Does somebody has the exact procedure (or a better one)?
Thanks
Jim Theriault. 
Hi,
At the very begining stage when it waits for the 5 second, press Esc and continue. When it asks for boot device select CD. It will continue as ur installing afresh. After System Identification, cancel the installation by pressing F5. In the # prompt mount the partition using
mount -F ufs /dev/dsk/c1t0d0s0 /a
Ramesh 
This document outlines several methods to boot a Solaris 2.6/7 x86 system up to single-user mode. Most of these methods will work for earlier versions of Solaris x86 as well.
Booting Single-User From CDROM Using the Device Configuration Assistant (DCA) on the Hard Drive:
------------------------------------------------------------------------------------------------
1). Power the system on.
2). Insert the correct version Solaris Software cdrom for your system.
OPTIONAL: If there is a boot loader in operation on your system, select the Solaris partition as the partition to boot from.
3). After the "Solaris Secondary Boot Loader" and "Running Device Configuration Assistant" messages appear, hit the 'esc' key where prompted to do so.
4). At the "DCA intro screen" hit F2 (F2_Continue).
5). At the "list of devices found" hit F2 (F2_Continue).
6). At the "list of available boot devices" select the CDROM as the device from which to boot a Solaris kernel.
7). At the screen where you are prompted to select 1, 2, or 3 for what type of install you wish to do, enter 'b -s' instead of a number.
This will bring the system up to single-user mode from the cdrom.
Booting Single-User From the CDROM Using the Device Configuration Assistant (DCA) Floppy:
-----------------------------------------------------------------------------------------
1). With the power on, insert DCA floppy, then the correct version Solaris Software cdrom for your system.
2). At the "DCA intro screen" hit F2 (F2_Continue).
3). At the "list of devices found" hit F2 (F2_Continue).
4). At the "list of available boot devices" select the CDROM as the device from which to boot a Solaris kernel.
5). At the screen where you are prompted to select 1, 2, or 3 for what type of install you wish to do enter 'b -s' instead of a number.
This will bring the system up to single-user mode from the cdrom. It should be noted that even though there are fewer steps, this normally takes much longer than running the DCA from the hard drive.
You can then mount the root partition to /a (a standard mount point on the cdrom) and edit /a/etc/passwd

Lost root passwd; can't log into system

I have an UltraSPARC 5 that's currently running Solaris 8. I haven't used it for years (long story) but am not trying to get it back in action. The problem is that I can't remember the passwd for root (or any other login, for that matter). I wanted to do a reinstall of either Solaris 8 or try out Solaris 9 but the system just boots straight into the existing OS load. Is there a way to force the boot sequence into the OK prompt? I'm afraid my Solaris/SPARC is very rusty these days. 
Easy., if you have a solaris keyboard hooked up to the computer, issue a STOP-A (there's a button labeled stop). Or if you're using a serial cable, you can send a BREAK through your terminal (via CTRL-BREAK), beware, if you're using Hyperterminal you may have to upgrade it before it will send the break signal properly.
Daryl 
You can also insert CD 1 of 1 of the installation CD and then once the system boots. Issue a break command: SUN kbd [STOP + A] or terminal PC [CTRL + BREAK]. This will then bring you to the OK prompt where you can then type ok> boot cdrom -s. Then edit the /etc/passwd and the /etc/shadow. Look for root and it should look something like this username:x:UID:etc... Replaced the "x" with NP and then reboot. You should be prompt to enter a new password after reboot. Hope this helps. 
I've the same problem can you help me and could you explain me how to reinstall solaris
Thank you 
Here is complete procedure:
Just to reinstall it stop-A as it has been told.
Then boot cdrom ( installation starts)
1 - boot cdrom -s installation disk or 1 of 2
2 - fsck -y /dev/rdsk/c0t0d0s0 (may be necessary according to your device)
3 - mount /dev/dsk/c0t0d0s0 /a
4 - cd /a
5 - vi etc/shadow ( actually /a/etc/shadow )
Here you need to delete root passwords. Passwords are encrypted and is second field. Between two colons. Colons are not part of passwords.
6 - save the file
7 - reboot/init 6
When you enter user as root, passwords will not be asked. change your passwords using passwd command. 
Hi
1. You will need to know the root partition (/dev/sd0a or /dev/dsk/c0t0d0s0).
2. Hit the STOP-A or L1-A to halt the system.
3. Boot into single user mode, either from CDROM (boot cdrom -s) or across the network (boot net -a).
4. Mount the root partition on /a (mount /dev/dsk/c0t0d0s0 /a).
5. If you are using a Sun console, type "TERM=sun; export TERM".
6. Remove the encrypted password from the root line of one of the follwing files:
a. For SunOS 4.x - /a/etc/passwd
b. For SunOS 4.x with shadow passwords/C2 - /a/etc/passwd.adjunct
c. For solaris 2.x - /a/etc/shadow
7. Now change directories to the root (cd /)
8. Type "umount /a"
9. Now reboot into single-user mode (boot -s). The system will not have a root password. Use the passwd command to enter a new password.
eNJOY
Mohammed Tanvir
thanks to all
we keep in touch
see you later for more questions

Installation of Solaris 8 on Sparc.

HI,
I was trying to install Solaris 8 on Ultra Sparc 10 with 256Megs RAM. I gave a command "boot cdrom" at ok prompt. Suddenly I got an error,
Boot device : /pci#1f,0/pci#1, 1/ide#3/cdrom#2,0:f File and args : -F cprboot
Boot load failed.
The file just loaded does not appear to be executable.
Boot device : /pci#1f,0/pci#1, 1/ide#3/cdrom#2,0:f File and args : -F cprboot
Can't read disk label.
Can't open disk lable package.
Can't open boot device.
I tried twice and first time I got an error logged above (1st) and second time, it gave me a different error (2nd). Pls help how to fix up this problem and install Solaris 8 on my Sparc machine.
Thanks All in Advance.
Girish Prabhakara. 
It seems the machine wasn't shutdown properly, but has been suspended. Apparently the machine is trying
to restore the running OS from the state file saved to the HDD, when the OS was suspend.
The easiest fix is probably to power up the machine and let it restore the OS state from the saved snapshot,
then login as root and "shutdown" or "halt" the machine (i.e. don't use the power button on the keyboard
when Solaris is running). Now a "boot cdrom" should work.
If you don't care about the data on the machine saved in the suspend state data, you can probably also
work around the problem by
- checking the nvram settings in the open boot prom (OK prompt), using the printenv command
you'll probably find the "-F cprboot" defined as the value for the boot-file or diag-file nvram property. You've
to remove that property.
- explicitly using some boot kernel filename and/or args, instead of using the defaults from nvram
Try "boot cdrom kernel/unix"
I got this error when my cd's weren't burned properly. I used the macintosh os 10.3.2 disk utility to finally burn bootable cd's from the .iso images i downloaded from Sun. These seem to be working for me. The one's I burned with Toast did not work. 
Turn the Solaris CD over and check of dirt, smugges and possibly scratches. If it's dirty, clean it
with lightly and I mean lightly with very small amounts of denatured alcohol and a soft lint free
cloth. Once done, enter "reset-all" at the "ok" prompt and when the banner appears, press "stop A".
At the"ok" prompt enter "boot cdrom". If it boots you've fixed your problem. If not then it's possibly
a dirty lens on your CD drive or a failing CD drive.
I've run into problem with CD's booting and a good cleaning normally, not always, fixes the problem.
Entering "probe-scsi" will only show you that OpenBoot sees the drive. It has nothing to do with
the drive reading the CD or even functioning at all.
Good Luck,
Michael
HI,
I was trying to install Solaris 8 on Ultra Sparc 10
with 256Megs RAM. I gave a command "boot cdrom" at ok
prompt. Suddenly I got an error,
Boot device : /pci#1f,0/pci#1, 1/ide#3/cdrom#2,0:f
File and args : -F cprboot
Boot load failed.
The file just loaded does not appear to be
executable.
Boot device : /pci#1f,0/pci#1, 1/ide#3/cdrom#2,0:f
File and args : -F cprboot
Can't read disk label.
Can't open disk lable package.
Can't open boot device.
I tried twice and first time I got an error logged
above (1st) and second time, it gave me a different
error (2nd). Pls help how to fix up this problem and
install Solaris 8 on my Sparc machine.
Thanks All in Advance.
Girish Prabhakara.

single user mode

How will i boot in to single user mode in solaris
mohan 
At the boot prompt do a boot -s
If you want to do it from your command prompt in Solaris you can do
% shutdown
It would need be run as root.
Rgds,
Angelo
Sun Developer Support..
Thanks Mr.Rajadurai
My solaris machine boots directly in to CDE when i start the
machine.I dont know how to issue the command
"boot -s"
when the system is switched on.
mohan
On an intel system, at the following prompt...:
_______________________________________________________________________________
<<< Current Boot Parameters >>>
Boot path: /pci#0,0/pci-ide#4,1/ide#0/cmdk#0,0:a
Boot args:
Type b [file-name] [boot-flags] <ENTER> to boot with options
or i <ENTER> to enter boot interpreter
or <ENTER> to boot with defaults
<<< timeout in 5 seconds >>>
Select (b)oot or (i)nterpreter:
_______________________________________________________________________________
... type "b -s" (without the quotes).
On a sparc based system, to have to interrupt the boot
process with "STOP+A" to get into the open boot promt
{OK} prompt. You can boot into single user mode with the
command "boot -s".
thanks a lot it works with my sparc machine
but again the cde comes up and prompts for login
if i boot in to single user mode in linux it will take me to the
$ prompt directly.how will i do it in solaris.
i m not familier with solaris
Strange...
Doesn't it stop during boot asking for the root password?
Something like: "Type Ctrl-d to proceed with normal startup,
(or give root password for system maintenance):"?
Type the root password and you are in single user mode in
text mode...
See also:
http://docs.sun.com:80/ab2/coll.47.11/SYSADV1/#Ab2PageView/idmatch(HBSPARCBOOT-83723)
Or maybe you're asking the wrong question. Do you want to
disable the GUI login (dtlogin) when you boot into multi
user mode? That's done by running the command "dtconfig -d"
("dtconfig -e" re-eanbled the dtlogin GUI login). See the
dtconfig(1) manual page. You'll find dtconfig in /usr/dt/bin.
yes it was asking
Something like: "Type Ctrl-d to proceed with normal startup,
(or give root password for system maintenance):"?
if i press ctrl-d the cde comes up
but i thought as in linux if i boot in to single user mode it wont ask for any
login name or password.
usually in linux i will put some restrictions so that others can't boot in to
single user mode.Because booting in to single user mode wont imply any security
restrictions on the person using it.
My whole idea is, if it is possible to boot in to single user mode in solaris
with out any user name and password i have to find a way to disable
booting in to single user mode or put some restrictions.
thanks and regards,
mohan
You cannot access a sunos5 (solaris) system without entering
the correct root password by booting into single user mode.
Note that someone with a solaris install CD (the solaris
8 "Software 1 of 2" CDROM) could interrupt the boot
sequence with STOP-A, and boot into the solaris system
on the installation cdrom. From there you can mount the
solaris os on the hard disk drive.
The sparc OBP prom has a some configurable options to
set a "password" on the OBP prom monitor to disable booting
from user specified devices. See the "eeprom" manual
page, esp. the OBP prom properties "security-mode" and
"security-password".
i will read the manual u have specified
thanks a lot
regards,
mohan

Categories

Resources