need to safely reboot to cdrom


 
Thread Tools Search this Thread
Operating Systems Solaris need to safely reboot to cdrom
# 1  
Old 08-23-2012
need to safely reboot to cdrom

I am using:

Code:
reboot -- cdrom

However I'm afraid of causing file system errors/corruption. I've seen many threads say that
Code:
init 6

is safer, but I need to get to CDROM.

Is there a command that is as safe as init, but can boot to cdrom, or should I not worry so much about the reboot command?

Last edited by lcoreyl; 08-24-2012 at 01:09 AM.. Reason: Removed humor and rephrased for clarity...
# 2  
Old 08-24-2012
Please rephrase your question as many readers, including myself, will not understand your use of the term "lovechild."

A safer alternative to using reboot is to use the shutdown command.
# 3  
Old 08-24-2012
Quote:
Originally Posted by fpmurphy
A safer alternative to using reboot is to use the shutdown command.
I don't have Solaris at home, but I don't remember seeing a way to get to CDROM using shutdown in the man page.
# 4  
Old 08-25-2012
In case you want know, I can suggest two methods:
Method I)If box is Sun-made:
1. #shutdown -y -g0 -i0 (Go to Boot Prom phase)
2. ok>boot cdrom(Boot with CDROM)
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

All, if there is something wrong, please let me know.
This User Gave Thanks to satish51392111 For This Post:
# 5  
Old 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!
# 6  
Old 09-01-2012
stumped?

Is there really not any way to do this?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Safely Remove Files with Special Chars

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

2. UNIX for Advanced & Expert Users

How to maintain a personal password file 'safely'?

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

3. Red Hat

Can all files under /tmp be safely removed

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

4. Shell Programming and Scripting

Safely parsing parameters

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

5. Solaris

How to remove soft link safely

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

How to safely rm/mv files/directory

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

7. AIX

How to Safely delete oracle db datafiles in 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

8. UNIX for Advanced & Expert Users

Can I safely kill vdump?

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

9. Solaris

different between soft reboot and hard reboot

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
Login or Register to Ask a Question