Solaris Mount an ISO CD Image
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
via lofiadm: Solaris Mount an ISO CD Image.
cp /etc/inet/ntp.server /etc/inet/ntp.conf
edit the ntp.conf file.
add server(s), for example:
svcadm enable svc:/network/ntp SysAdmin: How to configure NTP on SUN Solaris 10.
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 ?
via Re: How to disable beep in solaris 10?.
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.
Here’s what I did. Continue reading Manually Mount a local or remote CDROM in Sun Solaris
I had to add an IDE hard drive into a Solaris server the other day and couldn’t remember all the commands you need to use to get the system to see the new drive, partition it and format it.
But luckly I found a very helpful page over at http://www. idevelopment.info called Adding Second IDE Hard Drive into a Blade 100/150
As it turns out I wasn’t adding a drive into a Blade 100 server, but all the commands i needed were there and I got it going.
Over in the Sun General Maintenance forms I found a good thread on the uses of fsck called fsck best practises guide. While I wouldn’t necessarily take it as a be all and end all manual on how to use fsck. It does make a good guide or starting point.
You must judge when and how to use fsck yourself given your environment and the scope of the problem you are experiencing.
I got a surprise when i saw that Oracle is to acquire Sun this morning.
Working with both products allot I’ll be interested to see how this develops. It will also be interesting to see what this means for products like MySQL and Oracle Linux.