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.
Similar Messages
-
HT4410 How do I download Windows 7 ISO image to my flash drive
I have a new mac mini and want to use it's boot camp assistant to set up windows 7, but I am having trouble finding a way to download the Windows 7 ISO image to a USB flash drive. Where can I buy and download this? With the mini, no optical drive is available and I don't want to buy the box, just download it and get it going.
http://www.microsoftstore.com/store/msusa/html/pbPage.Help_Win7_usbdvd_dwnTool
Must use on a computer running Windows -
Time Machine keeps giving me backup errors. I've run Disc Utility repair on the external drive, which shows no errors but the TM error continues. I've been copying and pasting files as an alternative, but I thought creating an ISO image of the entire system on the external would be a good idea. There's plently of room on the external drive.
Thanks again for the advice.
i have lost several hours trying to get the free download of the latest Daemon to function.
i eventually sucumbed to buying the full Mac version.
i made a mistake in my email address and cant find a way of using the order number to effect a download.
i have emailed Daemon with my details and optimistically await their response.
Thank you again. -
Netbook Mini 110-3830NR How do I create a restore image on a flash drive
I have a HP Mini 110-3830NR Netbook running Windows 7 Starter.
I want to create a restore image to original factory state.
The user manual recommends that I create a restore disk.
It further states that to create a restore image on a USB device, I need at least
a 16GB device.
Therefore I purchased a Hp v165 16GB flash drive that actually contains
14.8 GB of user space.
I could not find the correct info about creating the disk on the HP support
web site so I chatted with an HP Support technician. She eventually gave me
a link to a procedure that would create a restore disk for me.
Then she said I needed a 32gb flash drive !!
Is the user manual or the technician correct ??
Can I use the 16GB (14.8 actual), or must I buy a 32 GB flash drive ??
Thank You fljimI would just try to create it, the recovery creator should tell you at some point if it is big enough or not, orignally 8gb was big enough for most W7 system's HP sold, but as time passed they had to upgrade the size recommendation to 32gb.
the 16gb should be large enough for your model.
This HP document says al least 8gb minimum, use 16gb for best results, very confusing, I agree
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01890478&lc=en&cc=us&dlc=en -
Burning an ISO image to a CD using Toast 6
Okay I feel so Inexperienced but I cannot figure out how to burn an ISO image to a CD using Toast 6.
Might somebody share some clues with me?
cheers,
NoahSearch Toast's own built in Help files or post your question to Roxio's discussion boards:
http://forums.support.roxio.com/ -
""Burn image" or "Burn CD iso image""
How can I "Burn image" or "Burn CD iso image" in my MB? I cant find the option, Im whiling to run linux as a "live CD" for a computing project, any help will be apreciated.
thanksSounds like you need some virtualization software. There are paid and free ones. If you have free time and know your way around, qemu has an osx port located http://www.kberg.ch/qemu/ . Although the website is down now, there is Q from http://www.kju-app.org/
Parallels is the paid one I heard of. You can search the web for others too. As for booting the livecd, I think holding the 'c' key while booting should allow to choose to boot from cdrom. Not 100% sure on that though.
If you have an iso file, open it with Disk Utility, select the image on the left panel if it hasnt been selected and from the top menu find Burn.
BlackBook Mac OS X (10.4.7) -
How can I save and share movies to a flash drive in Premier Elements 9
How can I save and share movies to a flash drive in Premier Elements 9
mobile phones and other devices - only give for ipods and iphones
export files for viewing on computer - windows media etc
I am experienced at burning dvds on the Adobe Premier Elements but new to sharing movies to a flash drive.
Please help!Moti
Premiere Elements 9.0/9.0.1 on what computer operating system?
1. USB Flash Drive.
Go to Share/Computer/ make your export choice.
In the Save In field for the preset selected, browse to and select the USB Flash Drive
2. Windows Media
Share/Computer/Windows Media and select appropriate preset to get you .wmv file
3. See Share/Mobile Phones and Players
Remember you can customize the settings under the Advanced Button/Video Tab, Audio Tab, Multiplexer Tab of
the preset selected.
Please review the Premiere Element 9 Help PDF, Chapter 15, Saving and Sharing Movies.
http://help.adobe.com/archive/en_US/premiereelements/9/premiereelements_9_help.pdf
The above is an overview. We can go into more details after you review the above.
Thank you.
ATR -
Why can't LR import dialog see images on my flash drive or drive drive.
Everything was working great and now LR (version 5.6/camera raw 8.6) import dialog cannot see images on my flash drive or on my hard drive. I'm using a MacBook Pro Retina running on OS X 10.10 There are no issues using the same flash card on my wife's MBP with LR for imports (uses the same LR S/W version and runs on OS X 10.10 as my MBP). Also, iPhoto and Preview can read and import the Flashcard images just fine. I'm puzzled. Does anyone have a solution?
Message was edited by: Dave KinghornThank you i found disk utilities... however i was reading in another area of the community that if I reformat it on my mac that it wont work on a pc.... The whole reason for doing this is so i can give my rough editted footage to my buddy so he can combine all the footage from our unit and make one big video, and he has a pc. Also if reformatting is the cure to this problem how do i know what to reformat it to. It doesnt tell me partition sizes for each option.
-
MDT Image Deployment Using Flash Drive
Hi,
In my environment i am using MDT 2010 image deployment process to deploy Windows XP and Windows 7 OS images,
As image deployment is foccussed on multiple remote locations we have planned to move with USB Flash drive (Pen Drive) for image deployment,
The problem occurs here in normal system through diskpart utility i can able to get all the disks including my flash drive but in win pe mode i am unable to get my flash drive listed in diskpart utility.
so the image deployment process hangs on to the microsoft solution accelerator screen i am unable to predict the actual reason but i can predict this can happen because of mass storage driver problems.
I tried the same using USB Hard Disk and succeded with the deployment and i am unable to guess what makes difference between USB Hard disk and USB Flash Drive.
Can you just help me out on this to close the problem ASAP..
So that i can proceed with my roll out activities.
Thanks in advance,
SivaHi,
At last the image deployment using flash drive works for me.
I attempted the following steps,
First i converted the flsh drive to bootable flash drive using diskpart utility,This can be done in Windows 7 Operating system only.
navigate to cmd and type Diskpart,and enter the below commands,
List disk
Select Disk no
create partition primary
select partition no
active
format fs=ntfs
Assign
Exit
Upon completition,Insert windows 7 DVD to the system and do the following
Navigate to DVD Drive in my case it is G: and change directory to boot
G:cd boot
G:\Boot>Bootsect.exe /nt60 I: where I: is my flash drive
Then copy the contents to the Usb flash drive and change the first boot device of the target system to local hard disk and deploy the image
while in Win pe mode use disk part utility to check whether your disk got detected.
If everything is ok then it will work.
Thanks for your valuable time.
Thanks and Regards,
Siva
Thanks Siva Aadhi-CIT. MCITP -
How to install Win 7 on Mac using USB flash drive....???
clintonfrombirmingham wrote:
I thought that installation through Boot Camp required, without hacks, a physical optical disc to install Boot Camp? I don't use it any longer since I run XP under Parallels, but I would swear that you have to use a disc, and not a USB thumb drive, to install Windows?
Maybe some real Boot Campers will visit this thread...
Clinton
If you have the Media you can use it to create a bootable USB key via boot camp assistant.
It will create the usb and has the option of pre-downlading the drivers and bootcamp utilities for windows.
It is pretty much all automated and quite simple. -
How to burn to ISO image in Premiere Elements 12.1 under Windows 8.1 64bit?
I really struggle - is there no way to burn from PE12.1 to ISO image (under Win 8.1)?
Motajko
There is no way to take your Timeline content to an ISO Image in Premiere Elements 12/12.1 on Windows 8.1 64 bit with just Premiere Elements 12/12.1 by itself.
Premiere Elements 13 is the first to offer a Burn To: option of ISO Image for DVD, AVCHD, and Blu-ray. Which one of those choices are you seeking (or all of them)?
If you cannot make due with the Burn To: Folder for DVD and AVCHD, then you can get your ISO Image from 12/12.1 in the following round about way....
Let us do AVCHD ISO Image as the example...
1. Burn your Premiere Elements 12/12.1 Timeline using Publish+Share/Disc/AVCHD, Burn To: = Folder (4.7 GB).
2. Take the BDMV Folder from the saved folder into the free ImgBurn program and export is as a ISO file.using the category named
Create Image File from Files/Folder.
3. When you need the disc product, you can take that ISO file to disc in ImgBurn using the category named Write Image File To Disc.
For more information on ISO Image and Premiere Elements, please review the following link's content
ATR Premiere Elements Troubleshooting: PE12: Disc Image/Phantom Burner & PE
After you review and consider the above, we can discuss the matter further if needed.
Thank you.
ATR
Downloading and installing the free ImgBurn needs caution since it is known to travel with unwanted carry alongs. -
Using iMac Intel Duo/Tiger to burn bootable ISO images for another OS?
Is there a third-party "toaster" software package that will allow me to burn CentOS or Ubuntu Linux ISO images obtained from the Internet to my SuperDrive?
iMac Intel Duo Mac OS X (10.4.4)FireStarter FX
-
How to propery burn a disk image for Kubuntu
I downloaded and burned a live cd of kubuntu and when i start up, nothing happens. (I am holding "c")
After going into sys pref > startup disks I see that the cd does not even show up! Mabey the problem is in buring the disk.
I open disk utility, select the iso of the live cd on the left, then hit burn in the toolbar. Then i hit burn again. Mabey i have to do something different to make it a bootable image?Acorn,
I think you refer to Ubuntu Linux - from www.ubuntu.com, currently Version 5.10 ?
You are right, the machine should start from the CD when you turn on the computer and hold the "c" key, or, if you hold the "alt" key, the mac should give you the option to start from the CD.
What sounds strange in your explanation:
"I open disk utility, select the iso of the live cd on the left, then hit burn in the toolbar......"
If you downloaded the .iso image, then, open disk utility, disk utility cannot have any knowledge of the ubuntu CD. Its unlikely that the cd will appear in the left toolbar.
This can only happen, if you first mounted the image using disk utility.
Burning the CD this way is not recommended.
Even opening/mounting the image might damage the image (but very unlikely)
If this has happend,unmount the image, maybe redownload the .iso image.
Then, open disk utility, navigate to the "images" menu, click "burn".
In the open dialog of the finder, find the .iso image, select it and burn.
That way you should get a bootable CD.
I hope, this helps, if not, post back the specs of your machine, or lookup on the ubuntu site if it is supported by ubuntu. -
How can I burn a disk image using disk utility with an external device?
I am trying to burn a disk image on DVD using disk utility in OS 10.3.9.
When I click the 'burn' button only the internal CD-writer appears allthough an external DVD-burner is connected via USB 2.0.
Does anybody have an idea how to make disk utility recognize the external device?Try installing PatchBurn.
(26583) -
[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)
Maybe you are looking for
-
Deskjet HP 9800 printer, USB connection, Vista Home Basic 32 bit. I am trying to print 13"x19" colour and the printer receives info from computer, goes through a few gyrations and then feeds my sheet of paper out with no attempt to print. I have trie
-
Asset Management on BPC: scripts using dates
Hi all, I wonder whether any of you have already implemented any logic that uses dates, such as a calculation of asset's depreciation based on properties with acquisition dates (to put an example, I'm not exactly doing that). Basically I need to do s
-
Need advice about replacing desktop, with laptop?
I need to replace my old desktop. Know nothing about laptops! Would like to clear my spare room of computer desk and junk! Would a laptop serve the same purpose, as a desktop? I'm a retired lady and mainly use my computer for email, internet surfing
-
What is causing this message. Occurs on both Mini and MacBook Pro. The request for account "iCloud" failed. The server responded with "509" to operation CalDAVMigrateToServerQueueableOperation.
-
Image x for Commercial use.
Hi, is a retail company allowed use the Image x sourcecode to reproduce images for other companies deployed on muliple machines as a payable service?