Visit Our UNIX and Linux User Community


How to eject boot cdrom after booting from it?


 
Thread Tools Search this Thread
Operating Systems Solaris How to eject boot cdrom after booting from it?
# 1  
Old 06-07-2011
How to eject boot cdrom after booting from it?

Hey everyone, I currently have a sparcstation 5, and am trying to run some scripts on it without booting off the hard drive.

Currently I am using a Solaris 8 install cd to boot into single user mode. However, the scripts I have are on a different CD.

What I would like to do is to use the Solaris 8 install CD to get to single user mode, eject it, and then mount the script CD and run the scripts off that.

I remember being able to eject the CD about a week ago using some command...but now I cannot for the life of me remember what I did.

I have tried:
Code:
umount /cdrom -> says cdrom is busy (I was in the root dir at the time) 
eject -> no default device 
umount /dev/dsk/c0t6d0s2 -> not in mnttab and no such file or directory 
iostat -En -> Segmentation fault - core dumped 
pressing the button the cdrom drive -> nothing happens 
eject cdrom -> no such file or directory 
mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /mnt -> no such device, cannot mount /dev/dsk/c0td0s2

and a bunch of other commands.

Would anyone happen to know how to eject the disc?

I've spent hours googling how to do this, but none of the sites seemed to help. I'm pretty new at solaris, so I may be missing something obvious.
# 2  
Old 06-07-2011
After you boot off the CD to single-user mode, what does the "mount" command show?
# 3  
Old 06-08-2011
Thanks for the response achenle! Here is the output from "mount". I see that /usr is mounted using the cdrom. I'm guessing that is why umount said /cdrom was busy.
Code:
/ on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@6,0:b read/write/setuid/dev=800031 on Wed Dec 31 16:00:00 1969 
/tmp on swap read/write/setuid/dev=1 on Wed Jun  8 12:56:36 2011 
/proc on proc read/write/setuid/dev=4480000 on Wed Jun  8 12:56:36 2011 
/etc/mnttab on mnttab read/write/setuid/dev=4580000 on Wed Jun  8 12:56:37 2011 
/devices on /tmp/devices read/write/setuid/dev=1 on Wed Jun  8 12:57:00 2011 
/dev on /tmp/dev read/write/setuid/dev=1 on Wed Jun  8 12:57:00 2011 
/cdrom on /devices/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@6,0:a read only/setuid/maplcase/noglobal/rr/traildot/dev=800030 on Wed Jun  8 12:59:05 2011 
/usr on /cdrom/Solaris_8/Tools/Boot/usr read only/setuid/dev=800030 on Wed Jun  8 12:59:06 2011 
/dev/fd on fd read/write/setuid/dev=4680000 on Wed Jun  8 12:59:18 2011

So then I copied the contents of the /usr/bin and /usr/sbin directory to /tmp/usr and then unmounted the /usr folder, however, the "umount /cdrom" command still says busy...this is the updated "mount" output
Code:
 / on /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@6,0:b read/write/setuid/dev=800031 on Wed Dec 31 16:00:00 1969 
/tmp on swap read/write/setuid/dev=1 on Wed Jun  8 12:56:36 2011 
/proc on proc read/write/setuid/dev=4480000 on Wed Jun  8 12:56:36 2011 
/etc/mnttab on mnttab read/write/setuid/dev=4580000 on Wed Jun  8 12:56:37 2011
/devices on /tmp/devices read/write/setuid/dev=1 on Wed Jun  8 12:57:00 2011
/dev on /tmp/dev read/write/setuid/dev=1 on Wed Jun  8 12:57:00 2011
/cdrom on /devices/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp5,8800000/sd@6,0:a read only/setuid/maplcase/noglobal/rr/traildot/dev=800030 on Wed Jun  8 12:59:05 2011
/dev/fd on fd read/write/setuid/dev=4680000 on Wed Jun  8 12:59:18 2011

# 4  
Old 06-08-2011
You can try to "umount -f" But iirc That may only work on nfs mounts on certain unix flavors. Another route would be to try to find the pid of the process that is locking the device with "fuser", maybe "fuser -c" Then issue a kill of the pid(s) and retry the umount.
# 5  
Old 06-08-2011
I tried the umount -f /cdrom command and it says "operation not supported" and "cannot unmount /cdrom"

The "fuser -cu /cdrom" command seemed like it would help, it returned
/cdrom: 84tm(root)

I then tried to use "fuser -ck /cdrom" to kill the process, but that ended up in a long list of errors saying things were not found in the "/sbin/" folder. The sparcstation then because non responsive to any command (Ctrl+C didn't work), so I just rebooted off the cdrom. Did I happen to kill the process that was running the single user terminal?
# 6  
Old 06-09-2011
trying use a pin plug in small hold on cd-drive.
# 7  
Old 06-09-2011
The pin thing didn't seem to work. I pushed it, as well as held the pin in there for a few seconds. Does anyone know if we are supposed to be able to eject the cdrom we are booting off of?

Previous Thread | Next Thread
Test Your Knowledge in Computers #541
Difficulty: Medium
In a statically typed language, a variable cannot be declared before it can be used.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cannot boot cdrom -s

Good Afternoon, I'm trying to boot from cdrom so I: bash-2.05# init 0 {1} ok boot cdrom -s and I get: Rebooting with command: boot cdrom -s Boot Device: /pci@1e,600000/ide@d/cdrom@2,0:f File and args: -s Can't read disk label. Can't open disk label package Evaluating: Can't open boot... (13 Replies)
Discussion started by: Stellaman1977
13 Replies

2. Solaris

Trying to eject cdrom

The green cdrom light is blinking on our Sun Solaris server. I tried the eject command to eject cdrom: eject cdrom cdrom: No such file or directory bash-2.05# eject No default media available bash-2.05# eject cdrom0 cdrom0: No such file or directory The message log file shows: Oct 19... (6 Replies)
Discussion started by: agarcia19
6 Replies

3. Solaris

CDROM will not eject - says device busy

Hi, I've seen similar posts on this board about ejecting CDROMs but I've tried the solutions people suggested but still cannot eject the CD. It's stuck in a production box so I can't reboot it... bash-3.00# eject -f cdrom /vol/dev/dsk/c0t0d0/sol_10_106_sparc/s0: Device busy bash-3.00#... (14 Replies)
Discussion started by: jimmy54321
14 Replies

4. Solaris

can't boot cdrom

iam traying to install o/s in spark machine it showing error ok >boot cdrom is showing error short disk read failed to read superblock the file just loaded does not appear to excutable how to solve this can u help me (6 Replies)
Discussion started by: tirupathi
6 Replies

5. Solaris

not able to boot from cdrom

Hi all am trying to boot the system from cdrom in single user mode , however when i am giving command boot cdrom -s i am getting below error Boot Device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0: f file and args: Can't read disk label Can't open disk label package can,t open boot device ... (17 Replies)
Discussion started by: kumarmani
17 Replies

6. Solaris

SF V210 CDROM drive auto eject!

Hi, When I insert a cd to CDROM drive in SF V210 Solaris 10 it took seconds then eject it auto! How can I solve this issue? Thanks Regards :) (8 Replies)
Discussion started by: HishamN
8 Replies

7. AIX

Eject CDROM?

Now i have a prolem! I double click on my zip file from cdrom. System can not read my zip file and i can not eject my cdrom. How can i manage process and can i end a process or how can i eject my cdrom? please have me! thanks (4 Replies)
Discussion started by: leenguyen0101
4 Replies

8. Solaris

Disksuite Raid 0 Concatenated Volume - booting from cdrom

Hello, If I boot up from install media in single user mode (Solaris 9 - if it matters), will I be able to mount a concatenated volume? I have combined several disks into one non-os filesystem and I want to be able to mount it while booted in single user mode from cdrom. i.e., mount... (0 Replies)
Discussion started by: calmgreen
0 Replies

9. Solaris

cannot find boot device and won't boot off cdrom

I'm running solaris 2.5.1. My main development server is DEAD, i can't even boot off the cdrom, it powers up, acts like it is starting the boot process but then says cannot find boot device. I've done the search here on this site and saw the other posts, but at the ok prompt it won't even let me... (3 Replies)
Discussion started by: kymberm
3 Replies

10. Solaris

cdrom will not eject

Hi I have placed a CD into the rom and now I can not eject it. when i type in eject cdrom i get the follwing error root@ssdb0009 # eject cdrom /vol/dev/rdsk/c0t6d0/dp_a0500_solaris_7_and_8_cd: Device busy Therefore i try and eject it with the -f option (eject -f cdrom) I still get the... (4 Replies)
Discussion started by: dennisca
4 Replies

Featured Tech Videos