Linux CD Mastering - Shutting down your mastering environment
Shutting down your mastering environment

Before we finish this session, we'd like to take the time to show you how to shutdown and save your mastering environment properly. If the environment is not shutdown properly, you may find that you'll be unable to reopen and reuse it in the future. Here are the basic steps for shutdown.
  • Unmount your SAMBA drive
  • Unmount your work drive
  • Linux shutdown
To unmount your SAMBA drive, make sure that you are not in the output directory and type the following:
root@tty1[work]# cd /tmp
root@tty1[work]# sync;sync;sync
root@tty1[tmp]# mount
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=404516k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid314) on /mnt/auto type autofs (rw,fd=4,pgrp=314,minproto=2,maxproto=4)
/dev/sda1 on /mnt/work type ext2 (rw)
//katr/mylinux on /mnt/work/output type smbfs (rw)
This line shows your SAMBA share mounted on /mnt/work/output

root@tty1[tmp]# smbumount /mnt/work/output
root@tty1[tmp]# mount
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=404516k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid314) on /mnt/auto type autofs (rw,fd=4,pgrp=314,minproto=2,maxproto=4)
/dev/sda1 on /mnt/work type ext2 (rw)
You should no longer see the samba mount for /mnt/work/output
If you do, it hasn't been  unmounted

To unmount your work drive, make sure that you are not in the work directory and type the following:
root@tty1[work]# cd /tmp
root@tty1[tmp]# mount
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=404516k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid314) on /mnt/auto type autofs (rw,fd=4,pgrp=314,minproto=2,maxproto=4)
/dev/sda1 on /mnt/work type ext2 (rw)
The last line shows your work drive mount

root@tty1[tmp]# umount /mnt/work
root@tty1[tmp]# mount
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=404516k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid314) on /mnt/auto type autofs (rw,fd=4,pgrp=314,minproto=2,maxproto=4)
You should no longer see the mount for /mnt/work
If you do, it hasn't been  unmounted

Now shutdown linux by typing "shutdown -h -f 0" and follow any instructions given by Linux. Once the shutdown has completed, click the red square stop icon in VmWare. Your virtual machine has now been properly shutdown.

Backing up your VmWare files
Backups are always a good idea and now is a prime time to backup your virtual machine, especially if you are planning on making some radical customizations. Backing up a VmWare machine is a simple matter of copying the directory containing the VmWare configuration and virtual drives. To do this, use Windows explorer to find the directory that you placed your virtual machine in. If you don't remember, pull down the "VM" menu from VmWare and choose "Settings...". Click on the options tab and you can see the location of the configuration file. Before copying this directory, make sure that you exit VmWare or you will receive errors. We copy our virtual machines to an external hard drive just to be safe.

Restarting your mastering environment
To restart your CD mastering environment, the process is basically the following.
  • Restart VmWare
  • Start the CD mastering virtual machine
  • Create the mount point for your work drive
  • Mount your work drive
  • Mount your SAMBA share
First start VmWare and, when it has finished loading, there should be a tab for your mastering environment. Click that tab, then click the green arrow to start the machine. At the boot prompt, tell Knoppix to boot to a shell by typing
"knoppix 2 lang=us" as you did earlier in this tutorial. Once Knoppix has finished loading and dropped you at a root prompt, type the following:
root@tty1[root]# mkdir -p /mnt/work
root@tty1[root]# mount -o rw /dev/sda1 /mnt/work
root@tty1[root]# smbmount //katr/mylinux /mnt/work/output -o password=
                   Note: replace the text in red above with YOUR machine name!
root@tty1[root]# mount
/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=404516k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid314) on /mnt/auto type autofs (rw,fd=4,pgrp=314,minproto=2,maxproto=4)
/dev/sda1 on /mnt/work type ext2 (rw)
//katr/mylinux on /mnt/work/output type smbfs (rw)
You can see that our filesystem and SAMBA mounts now exist

root@tty1[root]# cd /mnt/work/master
root@tty1[master]# ls -l *.sh
-rwxr-xr-x    1 root     root         1582 Jan 14 23:04 mk.sh
-rwxr-xr-x    1 root     root          646 Jan 14 23:05 mk1.sh
-rwxr-xr-x    1 root     root          940 Jan 14 23:05 mk2.sh
...and here are our scripts, ready and waiting

And now your CD mastering environment is ready and waiting once more. You can use the files at this point as a base for additional or unique customizations. We keep a vanilla mastering environment ready in the event that we need to build a custom boot CD for a client, for a test, or just for fun.

 << Customizing the ISO   Conclusion >> 

1 2 3 4 5 6 7 8

(switch to medium sized images)