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:
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.
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.
/ 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
/ 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
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.
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?
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?