[Solved] how do i build my ISO image with archiso?

hi all
i've been following this wiki and it's been going really well (it hasn't gone wrong...). but the wiki page just sort of stops halfway through the configuration bit
a google search brought me to this page which suggests using the "build.sh" script located in my chroot environment's /tmp/releng/ directory.
running this script returns the error "build.sh: line 207: syntax error near unexpected token '('
line 207 of the file reads:
paste -d"\n" <(sed "s|%ARCH%|i686|g" ${script_path}/aitab.${_iso_type}) \
i don't really know much about scripts so i can't see what's wrong
any advice?
sorry if i've missed a wiki or something n00bish like that. also i'm aware that someone who doesn't know what they're doing shouldn't be attempting archiso but i thought it would be a fun learning experience
here's the full build.sh in case it is helpful:
#!/bin/bash
set -e -u
iso_name=archlinux
iso_label="ARCH_$(date +%Y%m)"
iso_version=$(date +%Y.%m.%d)
install_dir=arch
arch=$(uname -m)
work_dir=work
out_dir=out
verbose=""
script_path=$(readlink -f ${0%/*})
# Base installation (root-image)
make_basefs() {
mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" -p "base" create
mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" -p "memtest86+ syslinux mkinitcpio-nfs-utils nbd curl" create
# Additional packages (root-image)
make_packages() {
mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" -p "$(grep -v ^# ${script_path}/packages.${arch})" create
# Copy mkinitcpio archiso hooks (root-image)
make_setup_mkinitcpio() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
local _hook
for _hook in archiso archiso_shutdown archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_loop_mnt; do
cp /lib/initcpio/hooks/${_hook} ${work_dir}/root-image/lib/initcpio/hooks
cp /lib/initcpio/install/${_hook} ${work_dir}/root-image/lib/initcpio/install
done
cp /lib/initcpio/install/archiso_kms ${work_dir}/root-image/lib/initcpio/install
cp /lib/initcpio/archiso_shutdown ${work_dir}/root-image/lib/initcpio
cp /lib/initcpio/archiso_pxe_nbd ${work_dir}/root-image/lib/initcpio
cp ${script_path}/mkinitcpio.conf ${work_dir}/root-image/etc/mkinitcpio-archiso.conf
: > ${work_dir}/build.${FUNCNAME}
fi
# Prepare ${install_dir}/boot/
make_boot() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
local _src=${work_dir}/root-image
local _dst_boot=${work_dir}/iso/${install_dir}/boot
mkdir -p ${_dst_boot}/${arch}
mkarchroot -n -r "mkinitcpio -c /etc/mkinitcpio-archiso.conf -k /boot/vmlinuz-linux -g /boot/archiso.img" ${_src}
mv ${_src}/boot/archiso.img ${_dst_boot}/${arch}/archiso.img
mv ${_src}/boot/vmlinuz-linux ${_dst_boot}/${arch}/vmlinuz
cp ${_src}/boot/memtest86+/memtest.bin ${_dst_boot}/memtest
cp ${_src}/usr/share/licenses/common/GPL2/license.txt ${_dst_boot}/memtest.COPYING
: > ${work_dir}/build.${FUNCNAME}
fi
# Prepare /${install_dir}/boot/syslinux
make_syslinux() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
local _src_syslinux=${work_dir}/root-image/usr/lib/syslinux
local _dst_syslinux=${work_dir}/iso/${install_dir}/boot/syslinux
mkdir -p ${_dst_syslinux}
for _cfg in ${script_path}/syslinux/*.cfg; do
sed "s|%ARCHISO_LABEL%|${iso_label}|g;
s|%INSTALL_DIR%|${install_dir}|g;
s|%ARCH%|${arch}|g" ${_cfg} > ${_dst_syslinux}/${_cfg##*/}
done
cp ${script_path}/syslinux/splash.png ${_dst_syslinux}
cp ${_src_syslinux}/*.c32 ${_dst_syslinux}
cp ${_src_syslinux}/*.com ${_dst_syslinux}
cp ${_src_syslinux}/*.0 ${_dst_syslinux}
cp ${_src_syslinux}/memdisk ${_dst_syslinux}
mkdir -p ${_dst_syslinux}/hdt
wget -O - http://pciids.sourceforge.net/v2.2/pci.ids | gzip -9 > ${_dst_syslinux}/hdt/pciids.gz
cat ${work_dir}/root-image/lib/modules/*-ARCH/modules.alias | gzip -9 > ${_dst_syslinux}/hdt/modalias.gz
: > ${work_dir}/build.${FUNCNAME}
fi
# Prepare /isolinux
make_isolinux() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
mkdir -p ${work_dir}/iso/isolinux
sed "s|%INSTALL_DIR%|${install_dir}|g" ${script_path}/isolinux/isolinux.cfg > ${work_dir}/iso/isolinux/isolinux.cfg
cp ${work_dir}/root-image/usr/lib/syslinux/isolinux.bin ${work_dir}/iso/isolinux/
cp ${work_dir}/root-image/usr/lib/syslinux/isohdpfx.bin ${work_dir}/iso/isolinux/
: > ${work_dir}/build.${FUNCNAME}
fi
# Customize installation (root-image)
# NOTE: mkarchroot should not be executed after this function is executed, otherwise will overwrites some custom files.
make_customize_root_image() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
cp -af ${script_path}/root-image ${work_dir}
chmod 750 ${work_dir}/root-image/etc/sudoers.d
chmod 440 ${work_dir}/root-image/etc/sudoers.d/g_wheel
mkdir -p ${work_dir}/root-image/etc/pacman.d
wget -O ${work_dir}/root-image/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/all/
sed -i "s/#Server/Server/g" ${work_dir}/root-image/etc/pacman.d/mirrorlist
chroot ${work_dir}/root-image /usr/sbin/locale-gen
chroot ${work_dir}/root-image /usr/sbin/useradd -m -p "" -g users -G "audio,disk,optical,wheel" arch
: > ${work_dir}/build.${FUNCNAME}
fi
# Split out /lib/modules from root-image (makes more "dual-iso" friendly)
make_lib_modules() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
mv ${work_dir}/root-image/lib/modules ${work_dir}/lib-modules
: > ${work_dir}/build.${FUNCNAME}
fi
# Split out /usr/share from root-image (makes more "dual-iso" friendly)
make_usr_share() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
mv ${work_dir}/root-image/usr/share ${work_dir}/usr-share
: > ${work_dir}/build.${FUNCNAME}
fi
# Make [core] repository, keep "any" pkgs in a separate fs (makes more "dual-iso" friendly)
make_core_repo() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
local _url _urls _pkg_name _cached_pkg _dst _pkgs
mkdir -p ${work_dir}/repo-core-any
mkdir -p ${work_dir}/repo-core-${arch}
pacman -Sy
_pkgs=$(comm -2 -3 <(pacman -Sql core | sort | sed 's@^@core/@') \
<(grep -v ^# ${script_path}/core.exclude.${arch} | sort | sed 's@^@core/@'))
_urls=$(pacman -Sddp ${_pkgs})
pacman -Swdd --noprogressbar --noconfirm ${_pkgs}
for _url in ${_urls}; do
_pkg_name=${_url##*/}
_cached_pkg=/var/cache/pacman/pkg/${_pkg_name}
_dst=${work_dir}/repo-core-${arch}/${_pkg_name}
cp ${_cached_pkg} ${_dst}
repo-add -q ${work_dir}/repo-core-${arch}/core.db.tar.gz ${_dst}
if [[ ${_pkg_name} == *any.pkg.tar* ]]; then
mv ${_dst} ${work_dir}/repo-core-any/${_pkg_name}
ln -sf ../any/${_pkg_name} ${_dst}
fi
done
: > ${work_dir}/build.${FUNCNAME}
fi
# Process aitab
# args: $1 (core | netinstall)
make_aitab() {
local _iso_type=${1}
if [[ ! -e ${work_dir}/build.${FUNCNAME}_${_iso_type} ]]; then
sed "s|%ARCH%|${arch}|g" ${script_path}/aitab.${_iso_type} > ${work_dir}/iso/${install_dir}/aitab
: > ${work_dir}/build.${FUNCNAME}_${_iso_type}
fi
# Build all filesystem images specified in aitab (.fs .fs.sfs .sfs)
make_prepare() {
mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" prepare
# Build ISO
# args: $1 (core | netinstall)
make_iso() {
local _iso_type=${1}
mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" checksum
mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" -L "${iso_label}" -o "${out_dir}" iso "${iso_name}-${iso_version}-${_iso_type}-${arch}.iso"
# Build dual-iso images from ${work_dir}/i686/iso and ${work_dir}/x86_64/iso
# args: $1 (core | netinstall)
make_dual() {
local _iso_type=${1}
if [[ ! -e ${work_dir}/dual/build.${FUNCNAME}_${_iso_type} ]]; then
if [[ ! -d ${work_dir}/i686/iso || ! -d ${work_dir}/x86_64/iso ]]; then
echo "ERROR: i686 or x86_64 builds does not exist."
_usage 1
fi
local _src_one _src_two _cfg
if [[ ${arch} == "i686" ]]; then
_src_one=${work_dir}/i686/iso
_src_two=${work_dir}/x86_64/iso
else
_src_one=${work_dir}/x86_64/iso
_src_two=${work_dir}/i686/iso
fi
mkdir -p ${work_dir}/dual/iso
cp -a -l -f ${_src_one} ${work_dir}/dual
cp -a -l -n ${_src_two} ${work_dir}/dual
rm -f ${work_dir}/dual/iso/${install_dir}/aitab
rm -f ${work_dir}/dual/iso/${install_dir}/boot/syslinux/*.cfg
if [[ ${_iso_type} == "core" ]]; then
if [[ ! -e ${work_dir}/dual/iso/${install_dir}/any/repo-core-any.sfs ||
! -e ${work_dir}/dual/iso/${install_dir}/i686/repo-core-i686.sfs ||
! -e ${work_dir}/dual/iso/${install_dir}/x86_64/repo-core-x86_64.sfs ]]; then
echo "ERROR: core_iso_single build is not found."
_usage 1
fi
else
rm -f ${work_dir}/dual/iso/${install_dir}/any/repo-core-any.sfs
rm -f ${work_dir}/dual/iso/${install_dir}/i686/repo-core-i686.sfs
rm -f ${work_dir}/dual/iso/${install_dir}/x86_64/repo-core-x86_64.sfs
fi
paste -d"\n" <(sed "s|%ARCH%|i686|g" ${script_path}/aitab.${_iso_type}) \
<(sed "s|%ARCH%|x86_64|g" ${script_path}/aitab.${_iso_type}) | uniq > ${work_dir}/dual/iso/${install_dir}/aitab
for _cfg in ${script_path}/syslinux.dual/*.cfg; do
sed "s|%ARCHISO_LABEL%|${iso_label}|g;
s|%INSTALL_DIR%|${install_dir}|g" ${_cfg} > ${work_dir}/dual/iso/${install_dir}/boot/syslinux/${_cfg##*/}
done
mkarchiso ${verbose} -w "${work_dir}/dual" -D "${install_dir}" checksum
mkarchiso ${verbose} -w "${work_dir}/dual" -D "${install_dir}" -L "${iso_label}" -o "${out_dir}" iso "${iso_name}-${iso_version}-${_iso_type}-dual.iso"
: > ${work_dir}/dual/build.${FUNCNAME}_${_iso_type}
fi
purge_single ()
if [[ -d ${work_dir} ]]; then
find ${work_dir} -mindepth 1 -maxdepth 1 \
! -path ${work_dir}/iso -prune \
| xargs rm -rf
fi
purge_dual ()
if [[ -d ${work_dir}/dual ]]; then
find ${work_dir}/dual -mindepth 1 -maxdepth 1 \
! -path ${work_dir}/dual/iso -prune \
| xargs rm -rf
fi
clean_single ()
rm -rf ${work_dir}
rm -f ${out_dir}/${iso_name}-${iso_version}-*-${arch}.iso
clean_dual ()
rm -rf ${work_dir}/dual
rm -f ${out_dir}/${iso_name}-${iso_version}-*-dual.iso
make_common_single() {
make_basefs
make_packages
make_setup_mkinitcpio
make_boot
make_syslinux
make_isolinux
make_customize_root_image
make_lib_modules
make_usr_share
make_aitab $1
make_prepare $1
make_iso $1
_usage ()
echo "usage ${0} [options] command <command options>"
echo
echo " General options:"
echo " -N <iso_name> Set an iso filename (prefix)"
echo " Default: ${iso_name}"
echo " -V <iso_version> Set an iso version (in filename)"
echo " Default: ${iso_version}"
echo " -L <iso_label> Set an iso label (disk label)"
echo " Default: ${iso_label}"
echo " -D <install_dir> Set an install_dir (directory inside iso)"
echo " Default: ${install_dir}"
echo " -w <work_dir> Set the working directory"
echo " Default: ${work_dir}"
echo " -o <out_dir> Set the output directory"
echo " Default: ${out_dir}"
echo " -v Enable verbose output"
echo " -h This help message"
echo
echo " Commands:"
echo " build <mode> <type>"
echo " Build selected .iso by <mode> and <type>"
echo " purge <mode>"
echo " Clean working directory except iso/ directory of build <mode>"
echo " clean <mode>"
echo " Clean working directory and .iso file in output directory of build <mode>"
echo
echo " Command options:"
echo " <mode> Valid values 'single' or 'dual'"
echo " <type> Valid values 'netinstall', 'core' or 'all'"
exit ${1}
if [[ ${EUID} -ne 0 ]]; then
echo "This script must be run as root."
_usage 1
fi
while getopts 'N:V:L:D:w:o:vh' arg; do
case "${arg}" in
N) iso_name="${OPTARG}" ;;
V) iso_version="${OPTARG}" ;;
L) iso_label="${OPTARG}" ;;
D) install_dir="${OPTARG}" ;;
w) work_dir="${OPTARG}" ;;
o) out_dir="${OPTARG}" ;;
v) verbose="-v" ;;
h|?) _usage 0 ;;
_msg_error "Invalid argument '${arg}'" 0
_usage 1
esac
done
shift $((OPTIND - 1))
if [[ $# -lt 1 ]]; then
echo "No command specified"
_usage 1
fi
command_name="${1}"
if [[ $# -lt 2 ]]; then
echo "No command mode specified"
_usage 1
fi
command_mode="${2}"
if [[ ${command_name} == "build" ]]; then
if [[ $# -lt 3 ]]; then
echo "No build type specified"
_usage 1
fi
command_type="${3}"
fi
if [[ ${command_mode} == "single" ]]; then
work_dir=${work_dir}/${arch}
fi
case "${command_name}" in
build)
case "${command_mode}" in
single)
case "${command_type}" in
netinstall)
make_common_single netinstall
core)
make_core_repo
make_common_single core
all)
make_common_single netinstall
make_core_repo
make_common_single core
echo "Invalid build type '${command_type}'"
_usage 1
esac
dual)
case "${command_type}" in
netinstall)
make_dual netinstall
core)
make_dual core
all)
make_dual netinstall
make_dual core
echo "Invalid build type '${command_type}'"
_usage 1
esac
echo "Invalid build mode '${command_mode}'"
_usage 1
esac
purge)
case "${command_mode}" in
single)
purge_single
dual)
purge_dual
echo "Invalid purge mode '${command_mode}'"
_usage 1
esac
clean)
case "${command_mode}" in
single)
clean_single
dual)
clean_dual
echo "Invalid clean mode '${command_mode}'"
_usage 1
esac
echo "Invalid command name '${command_name}'"
_usage 1
esac
Last edited by gav989 (2012-02-12 10:59:11)

thanks for that, according to this it should be run like
/path/to/build.sh build single netinstall
from inside the chroot
posting this for my own reference and in case it helps others, will mark as solved
thanks again for your help
Last edited by gav989 (2012-02-12 10:58:04)

Similar Messages

  • How do I achieve browser width images with scroll motion set to 0?

    How do I achieve browser width images with scroll motion set to 0?
    An example can be seen here with the green image: http://www.qooqee.com/templates/aroma
    I can get the rectangle to stretch the width of the browser but not the image fill. (see - http://www.tomwellsassociates.com)
    My Muse fill settings:
    Fill type: Solid
    Colour: None
    Fitting: Tile vertically
    Position: Bottom Centre
    Scroll motion: On (Up - 0)
    Image Size:
    3311 x 3311 px
    Display: Apple imac 27"
    Any suggestions/help would be much appreicated...

    Please check out: http://forums.adobe.com/message/5701908
    Cheers,
    Vikas

  • Getting "layer break" error message when trying to Preview a single sided DVD, or build an ISO image or disk folder

    Hi!  Hoping someone might be able to help with an odd problem.  I haven't found anything in the forums or the web that match my symptoms.
    I've been using Encore CS6 (v6.0.1.013) on a MacBook retina over the past year to successfully create a number of single sided DVDs with menus, chapters, and all that.  I usually make a copy of a previous DVD project, and then replace video assets with the new files and transcodes, move and rename chapter markers, and rework the menus in Photoshop.  I then will build ISO images for both DVD and Blu-Ray (both single-sided), and use those to burn many copies of each DVD for clients.
    This week, while developing one of these projects, when trying to build a DVD ISO image that looked like it would fit on a 4.7 GB DVD, I received the "layer break" message ("The chosen layer break does not satisfy dual layer requirements.  To fix this, either set a new layer break manually, or choose to set layer break automatically.") because (I'm guessing) the material was too long for the 4.7 GB DVD (the Build screen now shows about 5GB of material are in the project).  This is the first time I've seen that message - usually Encore just tells me the material is too big for the DVD.
    I re-transcoded the material down to well under 4.7 GB (about 3.9 GB), reverted and replaced the transcoded files, and now the DVD build screen shows that there are about 700MB free on a 4.7 GB DVD.  But I still have not been able to build any version of the DVD (image, folder, disc), without getting the "layer break" message.  I also now get this same layer break message when trying to "Preview from Here" any menu, killing my ability to preview the DVD menus in Encore.
    Just to see what would happen, I chose an 8.4GB Dual Layer DVD, and chose "manual" instead of "automatic" for the layer break selection, but never got the layer break selection dialog box, just the "layer break" error message.
    I typically build both DVD and Blu-Ray images from the same material in the same project.  I use different transcoding settings for each, and I have been able to build a Blu-Ray ISO without this "layer break" error on the Blu-Ray build (which is about 24.5GB when built).  And as I mentioned before, this is the first project on which I've even seen this layer break message.
    Any suggestions would be greatly appreciated!  I'd rather not recreate the project from scratch, but I'm worried that I may have to.
    Thanks
    Jon

    The total project being small enough may mean you have one layer that is too big. Both layers have to be smaller than half the disk, right?
    Be sure you "run as administrator" for dual layer projects.
    Encore may set the layer break correctly if it finds a good place, but there are numerous complaints about it being unreliable.
    Build to a folder (no layer break is set), then use ImgBurn to build and ask to be prompted for layer break. ImgBurn is also unreliable under some circumstances.
    The most frequent problems appear to be when there is no good location for a break. Do a search for "layer break imgburn" and you will see a variety of strategies.
    http://forum.imgburn.com/index.php?/topic/1777-how-to-create-a-double-layer-dvd-video-imag e-file-using-imgburn/
    Also see these posts:
    Neil Wilkes
    http://forums.adobe.com/message/3466255#3466255
    Neil Wilkes
    http://forums.adobe.com/message/4054265#4054265
    Neil Wilkes
    http://forums.adobe.com/message/4054269#4054269
    Jon Geddes
    http://forums.adobe.com/message/4002647#4002647
    shuchi shrivastava
    http://forums.adobe.com/message/3905911#3905911
    Jon Geddes and Neil Wilkes
    http://forums.adobe.com/message/4003221#4003221

  • [Solved] How to edit IP of Arch images

    Hi,
    I've got some (half-old) Arch images with a static IP of 10.x.x.x.
    My current router gives me addresses at 192.x.x.x.
    How can I edit these images to change the IPs?
    I've tried mounting the image and editing /etc/netctl/my-network, but this seems to have no effect, I'm guessing because I didn't issue netctl start / enable (and I don't know how I would do that, since these are images that I cannot access... due to their static IP).
    Any clues?
    Thanks
    Last edited by jcristovao (2014-05-12 12:06:23)

    jcristovao wrote:I've got some (half-old) Arch images
    Images you created?
    Don't think you will see much help here anyway
    Partial Updates Are Not Supported

  • How do I get an ISO Image for Boot Camp?

    I can't use bootcamp because i don't have a Windows 7 ISO Image. Where can i get a Windows 7 ISO Image?

    http://blog.mclaughlinsoftware.com/2009/09/03/convert-dvd-to-iso-on-mac/
    more options
    https://www.google.dk/search?client=opera&q=make+dvd+into+an+iso+mac&sourceid=op era&ie=utf-8&oe=utf-8&channel=suggest

  • Problem to burn iso image with disk utility

    hi,
    i burnt an iso image file on a cd using disk utility.
    I checked the md5 of the burn, and found it is different than the original iso file.
    how do i create an EXACT iso image burn?
    more details:
    i downloaded file.iso from the web, inserted a blank CD, opened disk utility, chose "burn", then located the image, and confirmed.
    after the disk utility announced "success", i wanted to check that the md5 of the burnt cd matches the original. so i used "dd if=/dev/disk1 of=~/file.dd" but i got a completely different file than the original file.iso...
    not only that the md5 not match (which could be due to some extra 0 bytes), but i even compared the two files using xxd, and they look similar, but every now and then file.dd (=copy of the brunt CD) has a extra chunk of garbage bytes (and then the files are again the same, and then another chunk of garbage, etc.)
    so how do i create a 1:1 burn of file.iso?

    The problem here is that most Mac disc utilities, including the built-in Disk Utility, take a different approach when it comes to image burning. Instead of telling the program you want to burn an image, then choosing the file, you're supposed to do the reverse: You choose the file, then tell the program you want to burn it. So, to burn an ISO image to disc, here's what to do:
    1.Insert a blank disc.
    2.Start Disk Utility.
    3.From the File menu, choose Open Disk Image and select the ISO to be burned.
    4.In the list of volumes, you will now see an item representing the ISO file.
    5.Select it.
    6.Click the Burn button and follow the instructions.

  • How do i use my own image with keying (or green screen)

    how do i use my own image witrh keying (or green screen)

    Put your sky clip on a layer below the clip you want to key. One or the other will be a connected clip. Apply  the Keying filter to foreground clip (the one with the green screen). The green will be seen as transparent and the sky will show through as the BG. Adjust as necessary in the Inspector.
    Good luck.
    Russ

  • How do you select a single image with the keyboard?

    I can use the "/" key to deselecting the current photo but how do I select the current photo with the keyboard? Usually the space bar is used for this but that displays the image. Is the only way to select the current photo by using the mouse?

    OK, now that the question has been clarified....
    Pressing and holding the Shift key as you move through the grid with the arrow keys will individually multi-select them, but that breaks down if you want non-contiguous selections, i.e. lifting off the shift key to skip a photo will cause all previous selections to be lost when you use the arrow key to advance. I think the only way for non-contiguous selection is ctrl-click.

  • Can't burn .ISO image with k3b/brasero on DVD-RW disc.

    I don't understand what's going wrong here, so I hope someone can help me.
    I have created an .ISO image (of a video) using DVDstyler.
    (1) DVDstyler will burn it to a DVD-RW without any problems.
    (2) I can burn it from the command line (growisofs etc.)
    (3) I can burn it to a DVD-R from any application (DVDstyler, K3b, Brasero)
    K3B and Brasero will write data to a DVD-RW any without problems
    But, when I try to burn the dvd.iso to a DVD-RW disc with either k3b or Brasero, they fail with various  error messages.
    For example, K3B's debugging output is as follows
    Devices
    TSSTcorp DVD-ROM TS-H352C DE06 (/dev/sr1, CD-ROM, DVD-ROM) [DVD-ROM, CD-ROM] [None] [%7]
    _NEC DVD_RW ND-4550A 1.09 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R DL, DVD+R, DVD+RW, DVD+R DL) [DVD-ROM, DVD-R Sequential, DVD-R Dual Layer Sequential, DVD-RAM, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite] [%7]
    System
    K3b Version: 2.0.2
    KDE Version: 4.7.3 (4.7.3)
    QT Version: 4.7.4
    Kernel: 3.1.2-1-ARCH
    Used versions
    cdrecord: 3.1a06
    cdrecord
    scsidev: '/dev/sr0'
    devname: '/dev/sr0'
    scsibus: -2 target: -2 lun: -2
    Warning: Open by 'devname' is unintentional and not supported.
    Linux sg driver version: 3.5.27
    SCSI buffer size: 64512
    cdrecord: Warning: Cannot read drive buffer.
    cdrecord: Warning: The DMA speed test has been skipped.
    Cdrecord-ProDVD-ProBD-Clone 3.01a06 (i686-pc-linux-gnu) Copyright (C) 1995-2011 Joerg Schilling
    TOC Type: 1 = CD-ROM
    Using libscg version 'schily-0.9'.
    atapi: 1
    Device type : Removable CD-ROM
    Version : 5
    Response Format: 2
    Capabilities :
    Vendor_info : '_NEC '
    Identifikation : 'DVD_RW ND-4550A '
    Revision : '1.09'
    Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
    Current: DVD-RW restricted overwrite
    Profile: DVD+R/DL
    Profile: DVD+R
    Profile: DVD+RW
    Profile: DVD-R/DL sequential recording
    Profile: DVD-RW sequential recording (current)
    Profile: DVD-RW restricted overwrite (current)
    Profile: DVD-RAM
    Profile: DVD-R sequential recording
    Profile: DVD-ROM
    Profile: CD-RW
    Profile: CD-R
    Profile: CD-ROM
    Profile: Removable Disk
    Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
    Driver flags : NO-CD DVD MMC-3 SWABAUDIO BURNFREE
    Supported modes: PACKET SAO
    Drive buf size : 1769472 = 1728 KB
    FIFO size : 4194304 = 4096 KB
    cdrecord: Drive needs to reload the media to return to proper status.
    cdrecord: Data does not fit on current disk.
    Track 01: data 1854 MB
    Total size: 1854 MB = 949353 sectors
    Current Secsize: 2048
    Trying to clear drive status.
    WARNING: Phys disk size 65264 differs from rzone size 0! Prerecorded disk?
    WARNING: Phys start: 196608 Phys end 261871
    WARNING: Drive returns zero media size. Using media size from ADIP.
    Blocks total: 65264 Blocks current: 65264 Blocks remaining: -884089
    cdrecord command:
    /usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=2 -sao -data -tsize=949353s -
    I hope this is enough to give some clues.  BTW, I have tried  forcing a re-format on the disc first from within the application, which reports success. It all used to work some months ago, but since I do not do this regularly, I can't identify exactly when the problem started.
    I would really appreciate some guidance.
    Many thanks in advance

    He already stated thet he is re-formated teh disk
    @myrlin
    as far as i can see, problem is with
    cdrecord: Data does not fit on current disk.
    try to reduce data for burning.
    Aslo check that your user belongs to optical group aka "id USER"
    Last edited by cybertorture (2011-11-30 18:13:28)

  • How to compare any type of image with any Palette ?

    How can I compare any image with any Palette file (ex. sample.pal file) ?
    If that image don't satisified selected Palette file then show me exception or any kind of message.
    Plz reply me with proper guidence or any hints.
    Thanks
    Harshal

    How can I compare any image with any Palette file (ex. sample.pal file) ?
    If that image don't satisified selected Palette file then show me exception or any kind of message.
    Plz reply me with proper guidence or any hints.
    Thanks
    Harshal

  • How to I create a screenshot image with a Mac?

    Hi,
    I'm relatively new to Macs. I have yet to learn now to make a screenshot image with a Mac. There doesn't seem to be a Print screen button. How do I do this? Can it be done in the Mac OS? Or, is there a need to install some software to do this?
    Thanks much!

    It's all built in!
    Go to the Help menu in Finder and enter 'Screenshot' and press enter.
    Lots of articles there, including this one:
    To take a picture of the whole screen, press Command-Shift-3.
    To take a picture of part of the screen, press Command-Shift-4, then drag to select the area you want in the picture.
    To take a picture of a window, the menu bar, the Dock, or other area, press Command-Shift-4, then press the Space bar. Move the pointer over the area you want so that it's highlighted, then click. If you decide you want to drag to select the area, press the Space bar again.
    If you press Command-Shift-4 and decide you don't want to take the screen shot, press the Escape key.
    Screen shots are saved as files on the desktop. If you want to put the screen shot in the Clipboard, rather than create a file, hold down the Control key when you press the other keys. You can then paste the picture into a document.
    You can also take pictures of the screen using the Grab application (in the Utilities folder).
    Some applications, such as DVD Player, may not let you take pictures of the screen

  • Building a buffered image with transparency?

    Hi all,
    I am wondering if there is a way to paste a transparent image (gif) into a constructed Image without losing its transparency.
    I came across it as I was trying to build a new Image by pasting a number of transparent images into a 'buffer' image. Up to now, the buffer worked fine, except that it lost all transparency.
    Consider the example below.
    class myclass extends Component{
    public myclass( int w, int h){
    Image originalgif= Toolkit.getDefaultToolkit().getImage("smiley.gif");
    // make sure the image is loaded
    try {
    MediaTracker tracker = new MediaTracker(parent);
    tracker.addImage(originalgif, 0);
    tracker.waitForID(0);
    } catch (InterruptedException iex) {
    iex.printStackTrace();
    // build a new image containing the transparent GIF
    Image rescaledgif=new BufferedImage(w,h,BufferedImage.TYPE_3BYTE_BGR);
    Graphics g=rescaledgif.getGraphics();
    g.drawImage(originalgif, w,h, this);
    public void Paint(Graphics g){
    g.drawImage(originalgif,0,0,this);
    // draws a transparent gif
    g.drawImage(rescaledgif,100,100,this);
    // draws the same gif rescaled no longer transparent but on a gray background
    Is there a way to have the rescaled image still having its transparency? may be using a different colordepth for the buffered image, may be by defining a transparent color in the DrawImage() functions?
    thanks in advance,
    'Niklas

    BufferedImage rescaledgif = = new BufferedImage(mapWidth, mapHeight, BufferedImage.TYPE_INT_ARGB);Try that.

  • IPhone: How to get the original photo image with  Picker

    Hi!
    I'm trying to pick and send (via HTTP) the original image taken by the camera, the 1,600 x 1,2000 image that's available in iPhoto after syncing.
    As far as I gathered, the UIImage doesn't help me here, since it's scaled down to 640x480, probably to safe memory. But one should supposedly be able to access the underlying CIImage.
    Here's what I'm doing right now:
    I'm setting up an ImagePickerController in my
    - (void)viewDidLoad
    imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.delegate = self;
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    [self refreshView:self];
    and process the picked image with
    - (void)imagePickerController:(UIImagePickerController )picker didFinishPickingImage:(UIImage )image editingInfo:(NSDictionary )editingInfo
    CGImageRef imgRef = image.CGImage;
    CGFloat owidth = CGImageGetWidth(imgRef);
    CGFloat oheight = CGImageGetHeight(imgRef);
    NSLog(@"Original size = %f %f",owidth,oheight);
    NSData imageData = [NSData dataWithData: UIImagePNGRepresentation(image)];//(image, 1.0)
    However, I still get the following output:
    2008-07-25 11:44:58.543 myApplication[1564:20b] Original size = 640.000000 480.000000
    Obviously still scaled down - but there must be a way to access the original.
    What am I doing wrong?

    Yes, I'm trying on the iPhone, as the camera is unavailable on the simulator.
    Here is the code I'm using:
    // In my main code, to initialise the picker
    UIImagePickerController *picker;
    // Check if camera is available
    if ( ![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] )
    UIAlertView *alertView = [[UIAlertView alloc]
    initWithTitle:@"Can't access camera" message:@"The camera is unavailable!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil ];
    [alertView show];
    [alertView release];
    return;
    picker = [[UIImagePickerController alloc] init];
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    picker.delegate = self;
    [_myView addSubview:picker.view];
    [_myView performSelectorOnMainThread:@selector(setNeedsDisplay) withObject:nil waitUntilDone:NO];
    // The delegate methods
    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
    NSLog( @"Image dimensions: %fx%f", image.size.width, image.size.height );
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    }

  • How to send byte array of image with 300dpi.

    Hello fiends
                       i am making an application in which i have to send the byte array of an image with 300dpi.
    so i am using image snapshot class for that and use that code.
                        var snapshot:ImageSnapshot = ImageSnapshot.captureImage(cnvParent,300);
                        var bdata:String = ImageSnapshot.encodeImageAsBase64(snapshot);
    but when i send that bdata to php end using httpService.The size at other end of image increases surprisingly.i means it will increase its actual height and actual width.so is there any way to overcome this increase in size when i bitmapped image at 300 dpi?
    if there any way then please tell me.waiting for your reply.
    Thanks and Regards
        Vineet Osho

    Thanks david for such a quick reply.the link is really helpful.So we have to calculate the screendpi thruogh our code and then set the height and width of image.is there any simple way to sort out my problem.i just want to print my image at 300dpi but i am using image snapshot class so its taking the snap of my container(image) and save the image at 96 dpi which is dpi of my screen(monitor).so is there any way or any class in flex through which i got the image at its original dpi.i am not stick on 300 dpi but i m getting image from backend through xml at 300dpi.thats why i want the byte array i am sending should be at 300dpi.i am totally confused now.so please help me.
    Thanks and regards
      Vineet osho

  • How do i burn an ISO image to a flash drive?

    I tried to use disk utility and dragged my ISO file into the source box and then my flash drive into the destination box. When i clicked restored and entered in my password i got a dialog box saying "Restore failure, Could not validate source - Invalid arguement". If someone could help me that would be great. I was trying to burn Windows 7 so that way I could install it in bootcamp because I need Windows for school.

    Launch Disk Utility and select File: New: Disk Image From Folder. In the window that appears, navigate to the desired folder and then click on Image. Give the image file a name, and click on Save when prompted. That’s it.

Maybe you are looking for

  • How to recover my photo's on a photovideo application?

    Hi all, I have a photovideo program on my Iphone. I did not recognize that all my pictures there is gone. I don't know how it colud be, maybe after i update the application or the softwares update. Anyone can help me to figure this out? Thanks.

  • Burned CD's Retain Old Name

    A few weeks ago I burned a CD for my friend Jill. Since then every CD I burn is named "Jill", and every track has the name of the track I burned for Jill. Is there a file I can delete that will allow it to default to something else, like the name of

  • Projector resolution?

    I am hooking up an Epson Home Cinema digital projector to an iMac G5. When the projector is not connected, the highest I can set the screen resolution is 1440 X 900. But when I connect the projector, then I have the option of 1920 X 1080 (which is th

  • Can I update the non-CC version of After Effects to the latest version?

    Hello! I'm fairly new to After Effects and have the disc version (I'm not a Creative Cloud subscriber but have a legitimately purchased program that came in the box).  I was looking for Advanced Spill Suppressor under the Keying Effects, and it was n

  • Deploy Web Application

    Dears, I developed a web application and it's time to deploy it, i know that i can host it on any web server (currently i am using Apache tomcat) and then type the url . but i want to see my web Application home page when i open start->All programs t