Tuesday, December 6, 2011

Create an ISO on your MAC.

Mac OS X

From within Terminal (Applications->Utilities->Terminal)

You can find your CD/DVD drive using the following command:

drutil status

Vendor Product Rev
MATSHITA DVD-R UJ-825 DAM5

Type: CD-ROM Name: /dev/disk1
Cur Write: 16x CD Sessions: 1
Max Write: 16x CD Tracks: 3
Overwritable: 00:00:00 blocks: 0 / 0.00MB / 0.00MiB
Space Free: 00:00:00 blocks: 0 / 0.00MB / 0.00MiB
Space Used: 00:00:00 blocks: 0 / 0.00MB / 0.00MiB
Writability:

Now you will need to umount the disk with the following command:

diskutil unmountDisk disk1

Now you can write the ISO file with the dd utility:

dd if=/dev/disk1 of=file.iso

When finished you will want to remount the disk:

diskutil mountDisk disk1


You may also be able to use hdiutil create -srcdevice /dev/disk1 -format UDTO file.iso to create the ISO image. This works for data disks, but have not had much luck with audio CDs.

Reset Root password on an ESX server

To change the password for the root user, you must reboot the ESX host into service console only in single-user mode. To do this, follow the steps below appropriate for your version of ESX. This process does not apply to ESXi as it does not use GRUB.

ESX 3.xx and 4.xx
1. Reboot the ESX host.
2. When the GRUB screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
3. Use the arrow keys to select Service Console only (troubleshooting mode).
4. Press the a key to modify the kernel arguments (boot options).
5. On the line presented, type a space followed by the word single.
6. Press Enter. The server continues to boot into single-user mode.
7. When presented with a bash prompt such as sh-2#, type the command passwd and press Enter.
8. Follow the prompts to set a new root user password.
9. When the password is changed successfully, reboot the host using the command reboot and allow VMware ESX to boot normally.

ESX Server 2.xx
1. Reboot the ESX Host.
2. When the LILO screen appears, press the space bar to stop the server from automatically booting into VMware ESX.
3. At the LILO prompt select linux, adding the -s to the end of the line. For example: linux -s.
4. Press Enter. The system begins to boot. The server continues to boot into single-user mode.
5. When presented with a bash prompt such as sh-2#, type the command passwd and press Enter.
6. Follow the prompts to set a new root user password.
7. When the password is changed successfully, reboot the host using the command reboot and allow VMware ESX to boot normally.

When the system is finished booting up, you can log in as the root user using the new password.