Mounting an Existing ISO CD-ROM Image under Solaris UNIX
If your image name is cd.iso, you can type command:
# lofiadm -a /path/to/cd.iso
Please note that the file name argument on lofiadm must be fully qualified and the path must be absolute not relative (thanks to mike for tip).
/dev/lofi/1 is the device, use the same to mount iso image with mount command:
# mount -o ro -F hsfs /dev/lofi/1 /mnt
# cd /mnt
# ls -l
# df -k /mnt
Mount the loopback device as a randomly accessible file system with
mount -F hsfs -o ro /dev/lofi/X /mnt.
Alternatively, use this combined format:
mount -F hsfs -o ro `lofiadm -a /path/to/image.iso` /mnt
I had to use the following step to reset a the root password on a Solaris system the other day. You will need physical access to the system to use these steps.
Press Stop-A on the console or Ctrl-] and send brk from a remote console connection to access the Open Boot PROM (OBP).
NOTE : If you are using TeraTerm-Pro, you send a break from the menu.
Insert a bootable Solaris CD/DVD and boot into single-user mode with boot cdrom -s
If a JumpStart boot server is located on the system’s subnet, and the system was properly configured for JumpStart, you may instead boot over the network into single-user mode with boot net -s
Make a mount point within the /tmp file system by typing mkdir /tmp/mnt
Mount the root partition of your boot disk in /tmp/mnt
e.g. #> mount /dev/dsk/c0t0d0s0 /tmp/mnt
NOTE : To check the device name use the format command.
Edit /etc/shadow with TERM=vt100 vi /tmp/mnt/etc/shadow
Remove the encrypted part of the root password (the second field; fields are separated by colons), save, and exit.
Unmount the file system with umount /tmp/mnt
Reboot the system and assign a new password at a shell prompt with the passwd command.
If you are unable to run vi above, you can edit /etc/shadow using the ed editor.
# ed /tmp/mnt/etc/shadow
s/:………….:/::/ (Note: there are 13 dots in the second field)
I have installed Soalris 10 onto a laptop a few times to see how well it works. It does quite well.
One annoying feature though is that if you backspace all the way back to the prompt and then by mistake try to go one more, like if you hold down the backspace key, Solaris will make a really loud beep. It gets really annoying, really quickly.
To turn it off you need to run
/usr/openwin/bin/xset b 0
It also seems to do this at startup. I haven’t figured out how to disable that yet. Do you know ?
I recently went to try and install Oracle 10g on a Solaris 10 server, and for some reason it wouldn’t recognize the DVD when I put it in the drive. Solaris and UNIX machines in general I think and usually good for this sort of thing. You put a CD in the drive, it detects it, and puts an icon on your desktop for the new CD or at least mounts it to something like /cdrom or /media/cdrom for you.
However, this machine on this particular day, wasn’t playing ball. So I had to figure out how to do it manually.