08-25-2012
Quote:
Originally Posted by
satish51392111
Method I)If box is Sun-made:
1. #shutdown -y -g0 -i0 (Go to Boot Prom phase)
2. ok>boot cdrom(Boot with CDROM)
Sorry, I forgot to mention my goal here is to do this within a script that requires as little user intervention as possible--so I'm looking more for something that would work like: shutdown -i6 -- cdrom
This is probably the method I will use if no one has the command I'm hoping is out there...
Quote:
Originally Posted by
satish51392111
Method II)If not Sun-made(X86):
1. #eeprom bootdevice=<Physical_path_of_CDROM> (System's boot device is now CDROM)
2. #shutdown -y -g0 -i6 (Reboot. System will boot with CDROM)
3. You should again switch back to your default boot device (/dev/dsk/c0t0d0s0).
#mkdir /tmp/root/a ; mount /dev/dsk/c0t0d0s0 (Mount your actual device on a temporary boot disk)
#ls -l /tmp/root/a/cev/dsk/c0t0d0s0 (This will give you the physical address)
#eeprom bootdevice=<physical_path_of_c0t0d0s0>
#shutdown -y -g0 -i6
I tried this one as I was hoping that the CDROM program (which installs software onto a blank hard drive) would set the boot device back to a hard drive. Instead it gets so confused with seeing the boot device being changed to CDROM that the installer program just errors out and won't run. I then have to switch the boot device back to disk from OBP.
Thanks for your response though!
9 More Discussions You Might Find Interesting
1. Solaris
Hi Guru's
Can any want here could explain to me the different between soft reboot and hard reboot .
Best Regards
Seelan (3 Replies)
Discussion started by: seelan3
3 Replies
2. UNIX for Advanced & Expert Users
Sceduled backups with vdump have been delayed as a mounted system had crashed while I was away for 2 weeks. Now there are 5 simultaneous vdumps running very slowly. The full system backup usually takes a whole weekend.
Can I safely kill these? (I will have to live without a backup untill next... (4 Replies)
Discussion started by: nickt
4 Replies
3. AIX
We have an oracle Database on AIX box. We want to delete the database safely.
How can scrubb the datafile prior to delete on AIX? (1 Reply)
Discussion started by: johnveslin
1 Replies
4. Shell Programming and Scripting
Hi all,
Am writing a script that does a rm/mv if a file exist, however, in one scenario, one of the variables which is supposed to a variable for a directory is undefined/blank so instead of the variable resolving to /tmp/logfile.dmp, it resolves instead to / so the rm translates to a rm /... (2 Replies)
Discussion started by: newbie_01
2 Replies
5. Solaris
Greetings,
I need some help performing a system admin function that I have been tasked with. The request seems simple enough, but my feeling is that it might be more complicated than it seems.
Here is what i've been tasked with:
SunOS 5.10 Generic_142900-15 sun4u sparc SUNW,SPARC-Enterprise... (3 Replies)
Discussion started by: Harleyrci
3 Replies
6. Shell Programming and Scripting
I have a string like root=/dev/sda3 noacpi foo "Baz mumble" which I would like to separate into tokens like a shell does. This would be easily done with eval but that would open a security hole big enough to drop a cow through, injecting arbitrary code would be easy as pie. How can I parse this... (15 Replies)
Discussion started by: Corona688
15 Replies
7. Red Hat
I wanted to know whether all files under /tmp can be safely removed. I guess that /tmp may also have temporary files for applications currently being worked on, so at the most those applications may just shut down.
I hope that my question is clear whether all files under /tmp can be safely... (5 Replies)
Discussion started by: RHCE
5 Replies
8. UNIX for Advanced & Expert Users
Hi all,
As time progresses, the number of servers that I have to login to has grown to the hundreds.
Some of the servers has NIS so I can use one single password for this group of servers.
The hard part comes to when you have 20+ other servers that now require different passwords and... (4 Replies)
Discussion started by: newbie_01
4 Replies
9. Shell Programming and Scripting
Hey Guys,
I'm swamped writing code for the forums:
Could someone write a script or command line to safely delete files with special chars in filenames from a directory:
Example:
-rw-r--r-- 1 root root 148 Apr 30 23:00 ?xA??
-rw-r--r-- 1 root root 148... (8 Replies)
Discussion started by: Neo
8 Replies
LEARN ABOUT OPENDARWIN
installboot
installboot(1M) installboot(1M)
NAME
installboot - install bootblocks in a disk partition
SYNOPSIS
installboot bootblk raw-disk-device
The boot(1M) program, ufsboot, is loaded from disk by the bootblock program which resides in the boot area of a disk partition.
The ufs boot objects are platform-dependent, and reside in the /usr/platform/platform-name/lib/fs/ufs directory. The platform name can be
found using the -i option of uname(1).
The installboot utility is a SPARC only program. It is not supported on the architecture. users should use installgrub(1M) instead.
bootblk The name of the bootblock code.
raw-disk-device The name of the disk device onto which the bootblock code is to be installed; it must be a character device which is read-
able and writable. Naming conventions for a SCSI or IPI drive are c?t?d?s? and c?d?s? for an IDE drive.
Example 1: Installing UFS Boot Block
To install a ufs boot block on slice 0 of target 0 on controller 1 of the platform where the command is being run, use:
example# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk
/dev/rdsk/c1t0d0s0
/usr/platform/platform-name/lib/fs/ufs
directory where ufs boot objects reside.
/platform/platform-name/ufsboot
second level program to boot from a disk or CD
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
od(1), uname(1), boot(1M), init(1M), kadb(1M), kernel(1M), monitor(1M), reboot(1M), rpc.bootparamd(1M), init.d(4), attributes(5)
WARNINGS
The installboot utility fails if the bootblk or openfirmware files do not exist or if the raw disk device is not a character device.
11 Apr 2005 installboot(1M)