# make an iso of a dir
mkisofs -r /home/sekhonp/ > image.iso
# make an iso of a cd
dd if=/dev/cdrom of=image.iso bs=10k
# mount iso
mount -o loop,ro -t iso9660 ./image.iso /mnt/iso
# burn an iso to cd
cdrecord -v speed=12 dev=0,0,0 -data image.iso
# or directly
mkisofs -r /home/sekhonp/ | cdrecord -v speed=12 dev=0,0,0 fs=8m -data -