[SOLVED] UnionFS-ish filesystem alternatives?

UnionFS-Fuse does not seem to work with switch_root/pivot_root.
Ausf3 kernel is outdated.
The basic idea is to load read only system base over network and make it writeable using RAM (or some other form of local storage).
I think rootaufs/live CDs perfectly describe the problem.
Last edited by drag0nius (2013-06-30 23:53:06)

It is a patchset which is released against that latest stable kernels.  So all you have to do is either use the ABS and makepkg to build linux. You could first download and extract the sources, then patch it manually, then running makepkg with the 'e' switch to ensure that you use existing sources.  Or you could just include the patchset into the sources array (with the md5sum of course) and then just include the patching in the part of the PKGBUILD where the console-log-level.patch is applied.  If you know just a little bit of bash, it is not all that hard.
Of course, if you want to use the pf-kernel, you couldjust use that.  There is a package in teh AUR for that.  Also I believe there is a binary pf-kernel repo as well (unofficial of course).  But these methods probably won't teach you anything about how aweseom the build tools in Arch really are.  They are so damn simple it is mind blowing.
Then you are going to need the aufs tools... whatever they are called.  One of the dependencies of them (last I checked) was the aufs_friendly kernel.  Of course, this is not the only kernel that is compatible, since we have already established above, the aufs patchset can be applied to any kernel.
Besides the aufs3 patchset, I know that the OpenWRT project has been happily using something called overlayfs for quite some time.  Again, it is a patchset, as is anything that is not included in the kernel.  But since CeroWRT is the variant of OpenWRT that is closest in kernel versions to us, I can only tell you that there must be overlayfs patches up to the latest 3.8 kernel.  But I have not checked where CeroWRT was at in a few weeks.  They very well may have moved to the 3.9 world by now.

Similar Messages

  • [SOLVED] Case-insensitive filesystem issue

    Dear fellas,
    I am trying to compile an AOSP rom using the following configuration:
    - Arch Linux x64
    - Latest Kernel 3.12.8-1-ARCH
    - BTRFS filesystem
    I got the following error:
    build/core/main.mk:118: You are building on a case-insensitive filesystem.
    build/core/main.mk:119: Please move your source tree to a case-sensitive filesystem.
    build/core/main.mk:120: ************************************************************
    build/core/main.mk:121: *** Case-insensitive filesystems not supported.  Stop.
    So far, I was compiling with no issue. It just starts a couple days ago. I suspect that maybe is due to some kernel change.
    Anyone already face this issue?
    Appreciate any clue.
    ========================SOLVED==========================
    Here is the solution presented by korn36 that did the magic for the main issue:
    Remove this from build/core/main.mk, then compile:
    ifneq ($(HOST_OS),windows)
    ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
    # check for a case sensitive file system
    ifneq (a,$(shell mkdir -p $(OUT_DIR) ; \
                    echo a > $(OUT_DIR)/casecheck.txt; \
                        echo B > $(OUT_DIR)/CaseCheck.txt; \
                    cat $(OUT_DIR)/casecheck.txt))
    $(warning ************************************************************)
    $(warning You are building on a case-insensitive filesystem.)
    $(warning Please move your source tree to a case-sensitive filesystem.)
    $(warning ************************************************************)
    $(error Case-insensitive filesystems not supported)
    endif
    endif
    endif
    It will disable the case-sensitivity check.
    ================edited====================
    Again thanks to korn36 for the elegant python switch solution:
    find . -name "*.py" -exec sed -i 's/\(bin\/env\ python$\|bin\/python$\)/bin\/env\ python2/g' {} \;
    Thanks to Kacper for heads me up to a typo I made.
    ===============edited=====================
    or still other script provided by Scimmia (Thanks Scimmia)
    or simply
    find . -name "*.py" -exec sed -i 's/env python$/&2/' {} \;
    Just FYI both scripts works flawlessly!
    Best Regards
    Erick
    Last edited by erickwill (2014-01-26 15:37:56)

    Here you go:
    # Only use ANDROID_BUILD_SHELL to wrap around bash.
    # DO NOT use other shells such as zsh.
    ifdef ANDROID_BUILD_SHELL
    SHELL := $(ANDROID_BUILD_SHELL)
    else
    # Use bash, not whatever shell somebody has installed as /bin/sh
    # This is repeated in config.mk, since envsetup.sh runs that file
    # directly.
    SHELL := /bin/bash
    endif
    # this turns off the suffix rules built into make
    .SUFFIXES:
    # this turns off the RCS / SCCS implicit rules of GNU Make
    % : RCS/%,v
    % : RCS/%
    % : %,v
    % : s.%
    % : SCCS/s.%
    # If a rule fails, delete $@.
    .DELETE_ON_ERROR:
    # Figure out where we are.
    #TOP := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
    #TOP := $(patsubst %/,%,$(TOP))
    # TOPDIR is the normal variable you should use, because
    # if we are executing relative to the current directory
    # it can be "", whereas TOP must be "." which causes
    # pattern matching probles when make strips off the
    # trailing "./" from paths in various places.
    #ifeq ($(TOP),.)
    #TOPDIR :=
    #else
    #TOPDIR := $(TOP)/
    #endif
    # Check for broken versions of make.
    # (Allow any version under Cygwin since we don't actually build the platform there.)
    ifeq (,$(findstring CYGWIN,$(shell uname -sm)))
    ifneq (1,$(strip $(shell expr $(MAKE_VERSION) \>= 3.81)))
    $(warning ********************************************************************************)
    $(warning * You are using version $(MAKE_VERSION) of make.)
    $(warning * Android can only be built by versions 3.81 and higher.)
    $(warning * see https://source.android.com/source/download.html)
    $(warning ********************************************************************************)
    $(error stopping)
    endif
    endif
    # Absolute path of the present working direcotry.
    # This overrides the shell variable $PWD, which does not necessarily points to
    # the top of the source tree, for example when "make -C" is used in m/mm/mmm.
    PWD := $(shell pwd)
    TOP := .
    TOPDIR :=
    BUILD_SYSTEM := $(TOPDIR)build/core
    # This is the default target. It must be the first declared target.
    .PHONY: droid
    DEFAULT_GOAL := droid
    $(DEFAULT_GOAL):
    # Used to force goals to build. Only use for conditionally defined goals.
    .PHONY: FORCE
    FORCE:
    # These goals don't need to collect and include Android.mks/CleanSpec.mks
    # in the source tree.
    dont_bother_goals := clean clobber dataclean installclean \
    help out \
    snod systemimage-nodeps \
    stnod systemtarball-nodeps \
    userdataimage-nodeps userdatatarball-nodeps \
    cacheimage-nodeps \
    vendorimage-nodeps \
    ramdisk-nodeps \
    bootimage-nodeps
    ifneq ($(filter $(dont_bother_goals), $(MAKECMDGOALS)),)
    dont_bother := true
    endif
    # Targets that provide quick help on the build system.
    include $(BUILD_SYSTEM)/help.mk
    # Set up various standard variables based on configuration
    # and host information.
    include $(BUILD_SYSTEM)/config.mk
    # This allows us to force a clean build - included after the config.mk
    # environment setup is done, but before we generate any dependencies. This
    # file does the rm -rf inline so the deps which are all done below will
    # be generated correctly
    include $(BUILD_SYSTEM)/cleanbuild.mk
    # Include the google-specific config
    -include vendor/google/build/config.mk
    VERSION_CHECK_SEQUENCE_NUMBER := 3
    -include $(OUT_DIR)/versions_checked.mk
    ifneq ($(VERSION_CHECK_SEQUENCE_NUMBER),$(VERSIONS_CHECKED))
    $(info Checking build tools versions...)
    ifneq ($(HOST_OS),windows)
    ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
    # check for a case sensitive file system
    ifneq (a,$(shell mkdir -p $(OUT_DIR) ; \
    echo a > $(OUT_DIR)/casecheck.txt; \
    echo B > $(OUT_DIR)/CaseCheck.txt; \
    cat $(OUT_DIR)/casecheck.txt))
    $(warning ************************************************************)
    $(warning You are building on a case-insensitive filesystem.)
    $(warning Please move your source tree to a case-sensitive filesystem.)
    $(warning ************************************************************)
    $(error Case-insensitive filesystems not supported)
    endif
    endif
    endif
    # Make sure that there are no spaces in the absolute path; the
    # build system can't deal with them.
    ifneq ($(words $(shell pwd)),1)
    $(warning ************************************************************)
    $(warning You are building in a directory whose absolute path contains)
    $(warning a space character:)
    $(warning $(space))
    $(warning "$(shell pwd)")
    $(warning $(space))
    $(warning Please move your source tree to a path that does not contain)
    $(warning any spaces.)
    $(warning ************************************************************)
    $(error Directory names containing spaces not supported)
    endif
    # Check for the corrent jdk
    ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
    $(info ************************************************************)
    $(info You are attempting to build with an unsupported JDK.)
    $(info $(space))
    $(info You use OpenJDK but only Sun/Oracle JDK is supported.)
    $(info Please follow the machine setup instructions at)
    $(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
    $(info $(space))
    $(info Continue at your own peril!)
    $(info ************************************************************)
    endif
    # Check for the correct version of java
    java_version := $(shell java -version 2>&1 | head -n 1 | grep '^java .*[ "]1\.[67][\. "$$]')
    ifeq ($(strip $(java_version)),)
    $(info ************************************************************)
    $(info You are attempting to build with the incorrect version)
    $(info of java.)
    $(info $(space))
    $(info Your version is: $(shell java -version 2>&1 | head -n 1).)
    $(info The correct version is: Java SE 1.6 or 1.7.)
    $(info $(space))
    $(info Please follow the machine setup instructions at)
    $(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
    $(info ************************************************************)
    $(error stop)
    endif
    # Check for the correct version of javac
    javac_version := $(shell javac -version 2>&1 | head -n 1 | grep '[ "]1\.[67][\. "$$]')
    ifeq ($(strip $(javac_version)),)
    $(info ************************************************************)
    $(info You are attempting to build with the incorrect version)
    $(info of javac.)
    $(info $(space))
    $(info Your version is: $(shell javac -version 2>&1 | head -n 1).)
    $(info The correct version is: 1.6 or 1.7.)
    $(info $(space))
    $(info Please follow the machine setup instructions at)
    $(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
    $(info ************************************************************)
    $(error stop)
    endif
    ifndef BUILD_EMULATOR
    ifeq (darwin,$(HOST_OS))
    GCC_REALPATH = $(realpath $(shell which $(HOST_CC)))
    ifneq ($(findstring llvm-gcc,$(GCC_REALPATH)),)
    # Using LLVM GCC results in a non functional emulator due to it
    # not honouring global register variables
    $(warning ****************************************)
    $(warning * gcc is linked to llvm-gcc which will *)
    $(warning * not create a useable emulator. *)
    $(warning ****************************************)
    BUILD_EMULATOR := false
    else
    BUILD_EMULATOR := true
    endif
    else # HOST_OS is not darwin
    BUILD_EMULATOR := true
    endif # HOST_OS is darwin
    endif
    $(shell echo 'VERSIONS_CHECKED := $(VERSION_CHECK_SEQUENCE_NUMBER)' \
    > $(OUT_DIR)/versions_checked.mk)
    $(shell echo 'BUILD_EMULATOR ?= $(BUILD_EMULATOR)' \
    >> $(OUT_DIR)/versions_checked.mk)
    endif
    # These are the modifier targets that don't do anything themselves, but
    # change the behavior of the build.
    # (must be defined before including definitions.make)
    INTERNAL_MODIFIER_TARGETS := showcommands all incrementaljavac
    .PHONY: incrementaljavac
    incrementaljavac: ;
    # WARNING:
    # ENABLE_INCREMENTALJAVAC should NOT be enabled by default, because change of
    # a Java source file won't trigger rebuild of its dependent Java files.
    # You can only enable it by adding "incrementaljavac" to your make command line.
    # You are responsible for the correctness of the incremental build.
    # This may decrease incremental build time dramatically for large Java libraries,
    # such as core.jar, framework.jar, etc.
    ENABLE_INCREMENTALJAVAC :=
    ifneq (,$(filter incrementaljavac, $(MAKECMDGOALS)))
    ENABLE_INCREMENTALJAVAC := true
    MAKECMDGOALS := $(filter-out incrementaljavac, $(MAKECMDGOALS))
    endif
    # EMMA_INSTRUMENT_STATIC merges the static emma library to each emma-enabled module.
    ifeq (true,$(EMMA_INSTRUMENT_STATIC))
    EMMA_INSTRUMENT := true
    endif
    # Bring in standard build system definitions.
    include $(BUILD_SYSTEM)/definitions.mk
    # Bring in Qualcomm helper macros
    include $(BUILD_SYSTEM)/qcom_utils.mk
    # Bring in dex_preopt.mk
    include $(BUILD_SYSTEM)/dex_preopt.mk
    ifneq ($(filter user userdebug eng,$(MAKECMDGOALS)),)
    $(info ***************************************************************)
    $(info ***************************************************************)
    $(info Do not pass '$(filter user userdebug eng,$(MAKECMDGOALS))' on \
    the make command line.)
    $(info Set TARGET_BUILD_VARIANT in buildspec.mk, or use lunch or)
    $(info choosecombo.)
    $(info ***************************************************************)
    $(info ***************************************************************)
    $(error stopping)
    endif
    ifneq ($(filter-out $(INTERNAL_VALID_VARIANTS),$(TARGET_BUILD_VARIANT)),)
    $(info ***************************************************************)
    $(info ***************************************************************)
    $(info Invalid variant: $(TARGET_BUILD_VARIANT)
    $(info Valid values are: $(INTERNAL_VALID_VARIANTS)
    $(info ***************************************************************)
    $(info ***************************************************************)
    $(error stopping)
    endif
    # Variable to check java support level inside PDK build.
    # Not necessary if the components is not in PDK.
    # not defined : not supported
    # "sdk" : sdk API only
    # "platform" : platform API supproted
    TARGET_BUILD_JAVA_SUPPORT_LEVEL := platform
    # The pdk (Platform Development Kit) build
    include build/core/pdk_config.mk
    ### In this section we set up the things that are different
    ### between the build variants
    is_sdk_build :=
    ifneq ($(filter sdk win_sdk sdk_addon,$(MAKECMDGOALS)),)
    is_sdk_build := true
    endif
    ## user/userdebug ##
    user_variant := $(filter user userdebug,$(TARGET_BUILD_VARIANT))
    enable_target_debugging := true
    tags_to_install :=
    ifneq (,$(user_variant))
    # Target is secure in user builds.
    ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=1
    ifeq ($(user_variant),userdebug)
    # Pick up some extra useful tools
    tags_to_install += debug
    # Enable Dalvik lock contention logging for userdebug builds.
    ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.lockprof.threshold=500
    else
    # Disable debugging in plain user builds.
    enable_target_debugging :=
    endif
    # Turn on Dalvik preoptimization for user builds, but only if not
    # explicitly disabled and the build is running on Linux (since host
    # Dalvik isn't built for non-Linux hosts).
    ifneq (true,$(DISABLE_DEXPREOPT))
    ifeq ($(user_variant),user)
    ifeq ($(HOST_OS),linux)
    WITH_DEXPREOPT := true
    endif
    endif
    endif
    # Disallow mock locations by default for user builds
    ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=0
    else # !user_variant
    # Turn on checkjni for non-user builds.
    ADDITIONAL_BUILD_PROPERTIES += ro.kernel.android.checkjni=1
    # Set device insecure for non-user builds.
    ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
    # Allow mock locations by default for non user builds
    ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=1
    endif # !user_variant
    ifeq (true,$(strip $(enable_target_debugging)))
    # Target is more debuggable and adbd is on by default
    ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1
    # Include the debugging/testing OTA keys in this build.
    INCLUDE_TEST_OTA_KEYS := true
    else # !enable_target_debugging
    # Target is less debuggable and adbd is off by default
    ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=0
    endif # !enable_target_debugging
    ## eng ##
    ifeq ($(TARGET_BUILD_VARIANT),eng)
    tags_to_install := debug eng
    ifneq ($(filter ro.setupwizard.mode=ENABLED, $(call collapse-pairs, $(ADDITIONAL_BUILD_PROPERTIES))),)
    # Don't require the setup wizard on eng builds
    ADDITIONAL_BUILD_PROPERTIES := $(filter-out ro.setupwizard.mode=%,\
    $(call collapse-pairs, $(ADDITIONAL_BUILD_PROPERTIES))) \
    ro.setupwizard.mode=OPTIONAL
    endif
    endif
    ## sdk ##
    ifdef is_sdk_build
    # Detect if we want to build a repository for the SDK
    sdk_repo_goal := $(strip $(filter sdk_repo,$(MAKECMDGOALS)))
    MAKECMDGOALS := $(strip $(filter-out sdk_repo,$(MAKECMDGOALS)))
    ifneq ($(words $(filter-out $(INTERNAL_MODIFIER_TARGETS) checkbuild,$(MAKECMDGOALS))),1)
    $(error The 'sdk' target may not be specified with any other targets)
    endif
    # TODO: this should be eng I think. Since the sdk is built from the eng
    # variant.
    tags_to_install := debug eng
    ADDITIONAL_BUILD_PROPERTIES += xmpp.auto-presence=true
    ADDITIONAL_BUILD_PROPERTIES += ro.config.nocheckin=yes
    else # !sdk
    endif
    BUILD_WITHOUT_PV := true
    ## precise GC ##
    ifneq ($(filter dalvik.gc.type-precise,$(PRODUCT_TAGS)),)
    # Enabling type-precise GC results in larger optimized DEX files. The
    # additional storage requirements for ".odex" files can cause /system
    # to overflow on some devices, so this is configured separately for
    # each product.
    ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.dexopt-flags=m=y
    endif
    ADDITIONAL_BUILD_PROPERTIES += net.bt.name=Android
    # enable vm tracing in files for now to help track
    # the cause of ANRs in the content process
    ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.stack-trace-file=/data/anr/traces.txt
    # Define a function that, given a list of module tags, returns
    # non-empty if that module should be installed in /system.
    # For most goals, anything not tagged with the "tests" tag should
    # be installed in /system.
    define should-install-to-system
    $(if $(filter tests,$(1)),,true)
    endef
    ifdef is_sdk_build
    # For the sdk goal, anything with the "samples" tag should be
    # installed in /data even if that module also has "eng"/"debug"/"user".
    define should-install-to-system
    $(if $(filter samples tests,$(1)),,true)
    endef
    endif
    # If they only used the modifier goals (showcommands, etc), we'll actually
    # build the default target.
    ifeq ($(filter-out $(INTERNAL_MODIFIER_TARGETS),$(MAKECMDGOALS)),)
    .PHONY: $(INTERNAL_MODIFIER_TARGETS)
    $(INTERNAL_MODIFIER_TARGETS): $(DEFAULT_GOAL)
    endif
    # Bring in all modules that need to be built.
    ifeq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
    SDK_ONLY := true
    $(info Building the SDK under darwin-ppc is actually obsolete and unsupported.)
    $(error stop)
    endif
    ifeq ($(HOST_OS),windows)
    SDK_ONLY := true
    endif
    ifeq ($(SDK_ONLY),true)
    include $(TOPDIR)sdk/build/windows_sdk_whitelist.mk
    include $(TOPDIR)development/build/windows_sdk_whitelist.mk
    # Exclude tools/acp when cross-compiling windows under linux
    ifeq ($(findstring Linux,$(UNAME)),)
    subdirs += build/tools/acp
    endif
    else # !SDK_ONLY
    # Typical build; include any Android.mk files we can find.
    subdirs := $(TOP)
    FULL_BUILD := true
    endif # !SDK_ONLY
    # Before we go and include all of the module makefiles, stash away
    # the PRODUCT_* values so that later we can verify they are not modified.
    stash_product_vars:=true
    ifeq ($(stash_product_vars),true)
    $(call stash-product-vars, __STASHED)
    endif
    ifneq ($(ONE_SHOT_MAKEFILE),)
    # We've probably been invoked by the "mm" shell function
    # with a subdirectory's makefile.
    include $(ONE_SHOT_MAKEFILE)
    # Change CUSTOM_MODULES to include only modules that were
    # defined by this makefile; this will install all of those
    # modules as a side-effect. Do this after including ONE_SHOT_MAKEFILE
    # so that the modules will be installed in the same place they
    # would have been with a normal make.
    CUSTOM_MODULES := $(sort $(call get-tagged-modules,$(ALL_MODULE_TAGS)))
    FULL_BUILD :=
    # Stub out the notice targets, which probably aren't defined
    # when using ONE_SHOT_MAKEFILE.
    NOTICE-HOST-%: ;
    NOTICE-TARGET-%: ;
    # A helper goal printing out install paths
    .PHONY: GET-INSTALL-PATH
    GET-INSTALL-PATH:
    @$(foreach m, $(ALL_MODULES), $(if $(ALL_MODULES.$(m).INSTALLED), \
    echo 'INSTALL-PATH: $(m) $(ALL_MODULES.$(m).INSTALLED)';))
    else # ONE_SHOT_MAKEFILE
    ifneq ($(dont_bother),true)
    # Include all of the makefiles in the system
    # Can't use first-makefiles-under here because
    # --mindepth=2 makes the prunes not work.
    subdir_makefiles := \
    $(shell build/tools/findleaves.py --prune=$(OUT_DIR) --prune=.repo --prune=.git $(subdirs) Android.mk)
    ifneq ($(HIDE_MAKEFILE_INCLUDES),y)
    $(foreach mk, $(subdir_makefiles), $(info including $(mk) ...)$(eval include $(mk)))
    else
    $(foreach mk, $(subdir_makefiles), $(eval include $(mk)))
    endif
    endif # dont_bother
    endif # ONE_SHOT_MAKEFILE
    # Now with all Android.mks loaded we can do post cleaning steps.
    include $(BUILD_SYSTEM)/post_clean.mk
    ifeq ($(stash_product_vars),true)
    $(call assert-product-vars, __STASHED)
    endif
    include $(BUILD_SYSTEM)/legacy_prebuilts.mk
    ifneq ($(filter-out $(GRANDFATHERED_ALL_PREBUILT),$(strip $(notdir $(ALL_PREBUILT)))),)
    $(warning *** Some files have been added to ALL_PREBUILT.)
    $(warning *)
    $(warning * ALL_PREBUILT is a deprecated mechanism that)
    $(warning * should not be used for new files.)
    $(warning * As an alternative, use PRODUCT_COPY_FILES in)
    $(warning * the appropriate product definition.)
    $(warning * build/target/product/core.mk is the product)
    $(warning * definition used in all products.)
    $(warning *)
    $(foreach bad_prebuilt,$(filter-out $(GRANDFATHERED_ALL_PREBUILT),$(strip $(notdir $(ALL_PREBUILT)))),$(warning * unexpected $(bad_prebuilt) in ALL_PREBUILT))
    $(warning *)
    $(error ALL_PREBUILT contains unexpected files)
    endif
    # All module makefiles have been included at this point.
    # Fix up CUSTOM_MODULES to refer to installed files rather than
    # just bare module names. Leave unknown modules alone in case
    # they're actually full paths to a particular file.
    known_custom_modules := $(filter $(ALL_MODULES),$(CUSTOM_MODULES))
    unknown_custom_modules := $(filter-out $(ALL_MODULES),$(CUSTOM_MODULES))
    CUSTOM_MODULES := \
    $(call module-installed-files,$(known_custom_modules)) \
    $(unknown_custom_modules)
    # Define dependencies for modules that require other modules.
    # This can only happen now, after we've read in all module makefiles.
    # TODO: deal with the fact that a bare module name isn't
    # unambiguous enough. Maybe declare short targets like
    # APPS:Quake or HOST:SHARED_LIBRARIES:libutils.
    # BUG: the system image won't know to depend on modules that are
    # brought in as requirements of other modules.
    define add-required-deps
    $(1): | $(2)
    endef
    $(foreach m,$(ALL_MODULES), \
    $(eval r := $(ALL_MODULES.$(m).REQUIRED)) \
    $(if $(r), \
    $(eval r := $(call module-installed-files,$(r))) \
    $(eval t_m := $(filter $(TARGET_OUT_ROOT)/%, $(ALL_MODULES.$(m).INSTALLED))) \
    $(eval h_m := $(filter $(HOST_OUT_ROOT)/%, $(ALL_MODULES.$(m).INSTALLED))) \
    $(eval t_r := $(filter $(TARGET_OUT_ROOT)/%, $(r))) \
    $(eval h_r := $(filter $(HOST_OUT_ROOT)/%, $(r))) \
    $(if $(t_m), $(eval $(call add-required-deps, $(t_m),$(t_r)))) \
    $(if $(h_m), $(eval $(call add-required-deps, $(h_m),$(h_r)))) \
    t_m :=
    h_m :=
    t_r :=
    h_r :=
    # Resolve the dependencies on shared libraries.
    $(foreach m,$(TARGET_DEPENDENCIES_ON_SHARED_LIBRARIES), \
    $(eval p := $(subst :,$(space),$(m))) \
    $(eval r := $(filter $(TARGET_OUT_ROOT)/%,$(call module-installed-files,\
    $(subst $(comma),$(space),$(lastword $(p)))))) \
    $(eval $(call add-required-deps,$(word 2,$(p)),$(r))))
    $(foreach m,$(HOST_DEPENDENCIES_ON_SHARED_LIBRARIES), \
    $(eval p := $(subst :,$(space),$(m))) \
    $(eval r := $(filter $(HOST_OUT_ROOT)/%,$(call module-installed-files,\
    $(subst $(comma),$(space),$(lastword $(p)))))) \
    $(eval $(call add-required-deps,$(word 2,$(p)),$(r))))
    m :=
    r :=
    p :=
    add-required-deps :=
    # Figure out our module sets.
    # Of the modules defined by the component makefiles,
    # determine what we actually want to build.
    ifdef FULL_BUILD
    # The base list of modules to build for this product is specified
    # by the appropriate product definition file, which was included
    # by product_config.make.
    product_MODULES := $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES)
    # Filter out the overridden packages before doing expansion
    product_MODULES := $(filter-out $(foreach p, $(product_MODULES), \
    $(PACKAGES.$(p).OVERRIDES)), $(product_MODULES))
    $(call expand-required-modules,product_MODULES,$(product_MODULES))
    product_FILES := $(call module-installed-files, $(product_MODULES))
    ifeq (0,1)
    $(info product_FILES for $(TARGET_DEVICE) ($(INTERNAL_PRODUCT)):)
    $(foreach p,$(product_FILES),$(info : $(p)))
    $(error done)
    endif
    else
    # We're not doing a full build, and are probably only including
    # a subset of the module makefiles. Don't try to build any modules
    # requested by the product, because we probably won't have rules
    # to build them.
    product_FILES :=
    endif
    eng_MODULES := $(sort \
    $(call get-tagged-modules,eng) \
    $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_ENG)) \
    debug_MODULES := $(sort \
    $(call get-tagged-modules,debug) \
    $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_DEBUG)) \
    tests_MODULES := $(sort \
    $(call get-tagged-modules,tests) \
    $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_TESTS)) \
    # TODO: Remove the 3 places in the tree that use ALL_DEFAULT_INSTALLED_MODULES
    # and get rid of it from this list.
    # TODO: The shell is chosen by magic. Do we still need this?
    modules_to_install := $(sort \
    $(ALL_DEFAULT_INSTALLED_MODULES) \
    $(product_FILES) \
    $(foreach tag,$(tags_to_install),$($(tag)_MODULES)) \
    $(call get-tagged-modules, shell_$(TARGET_SHELL)) \
    $(CUSTOM_MODULES) \
    # Some packages may override others using LOCAL_OVERRIDES_PACKAGES.
    # Filter out (do not install) any overridden packages.
    overridden_packages := $(call get-package-overrides,$(modules_to_install))
    ifdef overridden_packages
    # old_modules_to_install := $(modules_to_install)
    modules_to_install := \
    $(filter-out $(foreach p,$(overridden_packages),$(p) %/$(p).apk), \
    $(modules_to_install))
    endif
    #$(error filtered out
    # $(filter-out $(modules_to_install),$(old_modules_to_install)))
    # Don't include any GNU targets in the SDK. It's ok (and necessary)
    # to build the host tools, but nothing that's going to be installed
    # on the target (including static libraries).
    ifdef is_sdk_build
    target_gnu_MODULES := \
    $(filter \
    $(TARGET_OUT_INTERMEDIATES)/% \
    $(TARGET_OUT)/% \
    $(TARGET_OUT_DATA)/%, \
    $(sort $(call get-tagged-modules,gnu)))
    $(info Removing from sdk:)$(foreach d,$(target_gnu_MODULES),$(info : $(d)))
    modules_to_install := \
    $(filter-out $(target_gnu_MODULES),$(modules_to_install))
    # Ensure every module listed in PRODUCT_PACKAGES* gets something installed
    # TODO: Should we do this for all builds and not just the sdk?
    $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES), \
    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
    $(error $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES has nothing to install!)))
    $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_DEBUG), \
    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
    $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_DEBUG has nothing to install!)))
    $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_ENG), \
    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
    $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_ENG has nothing to install!)))
    $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_TESTS), \
    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
    $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_TESTS has nothing to install!)))
    endif
    # build/core/Makefile contains extra stuff that we don't want to pollute this
    # top-level makefile with. It expects that ALL_DEFAULT_INSTALLED_MODULES
    # contains everything that's built during the current make, but it also further
    # extends ALL_DEFAULT_INSTALLED_MODULES.
    ALL_DEFAULT_INSTALLED_MODULES := $(modules_to_install)
    include $(BUILD_SYSTEM)/Makefile
    modules_to_install := $(sort $(ALL_DEFAULT_INSTALLED_MODULES))
    ALL_DEFAULT_INSTALLED_MODULES :=
    # These are additional goals that we build, in order to make sure that there
    # is as little code as possible in the tree that doesn't build.
    modules_to_check := $(foreach m,$(ALL_MODULES),$(ALL_MODULES.$(m).CHECKED))
    # If you would like to build all goals, and not skip any intermediate
    # steps, you can pass the "all" modifier goal on the commandline.
    ifneq ($(filter all,$(MAKECMDGOALS)),)
    modules_to_check += $(foreach m,$(ALL_MODULES),$(ALL_MODULES.$(m).BUILT))
    endif
    # for easier debugging
    modules_to_check := $(sort $(modules_to_check))
    #$(error modules_to_check $(modules_to_check))
    # This is used to to get the ordering right, you can also use these,
    # but they're considered undocumented, so don't complain if their
    # behavior changes.
    .PHONY: prebuilt
    prebuilt: $(ALL_PREBUILT)
    # An internal target that depends on all copied headers
    # (see copy_headers.make). Other targets that need the
    # headers to be copied first can depend on this target.
    .PHONY: all_copied_headers
    all_copied_headers: ;
    $(ALL_C_CPP_ETC_OBJECTS): | all_copied_headers
    # All the droid stuff, in directories
    .PHONY: files
    files: prebuilt \
    $(modules_to_install) \
    $(INSTALLED_ANDROID_INFO_TXT_TARGET)
    .PHONY: checkbuild
    checkbuild: $(modules_to_check)
    ifeq (true,$(ANDROID_BUILD_EVERYTHING_BY_DEFAULT)$(filter $(MAKECMDGOALS),checkbuild))
    droid: checkbuild
    else
    # ANDROID_BUILD_EVERYTHING_BY_DEFAULT not set, or checkbuild is one of the cmd goals.
    checkbuild: droid
    endif
    .PHONY: ramdisk
    ramdisk: $(INSTALLED_RAMDISK_TARGET)
    .PHONY: factory_ramdisk
    factory_ramdisk: $(INSTALLED_FACTORY_RAMDISK_TARGET)
    .PHONY: factory_bundle
    factory_bundle: $(INSTALLED_FACTORY_BUNDLE_TARGET)
    .PHONY: systemtarball
    systemtarball: $(INSTALLED_SYSTEMTARBALL_TARGET)
    .PHONY: boottarball
    boottarball: $(INSTALLED_BOOTTARBALL_TARGET)
    .PHONY: userdataimage
    userdataimage: $(INSTALLED_USERDATAIMAGE_TARGET)
    ifneq (,$(filter userdataimage, $(MAKECMDGOALS)))
    $(call dist-for-goals, userdataimage, $(BUILT_USERDATAIMAGE_TARGET))
    endif
    .PHONY: userdatatarball
    userdatatarball: $(INSTALLED_USERDATATARBALL_TARGET)
    .PHONY: cacheimage
    cacheimage: $(INSTALLED_CACHEIMAGE_TARGET)
    .PHONY: vendorimage
    vendorimage: $(INSTALLED_VENDORIMAGE_TARGET)
    .PHONY: bootimage
    bootimage: $(INSTALLED_BOOTIMAGE_TARGET)
    # phony target that include any targets in $(ALL_MODULES)
    .PHONY: all_modules
    ifndef BUILD_MODULES_IN_PATHS
    all_modules: $(ALL_MODULES)
    else
    # BUILD_MODULES_IN_PATHS is a list of paths relative to the top of the tree
    module_path_patterns := $(foreach p, $(BUILD_MODULES_IN_PATHS),\
    $(if $(filter %/,$(p)),$(p)%,$(p)/%))
    my_all_modules := $(sort $(foreach m, $(ALL_MODULES),$(if $(filter\
    $(module_path_patterns), $(addsuffix /,$(ALL_MODULES.$(m).PATH))),$(m))))
    all_modules: $(my_all_modules)
    endif
    # Build files and then package it into the rom formats
    .PHONY: droidcore
    droidcore: files \
    systemimage \
    $(INSTALLED_BOOTIMAGE_TARGET) \
    $(INSTALLED_RECOVERYIMAGE_TARGET) \
    $(INSTALLED_USERDATAIMAGE_TARGET) \
    $(INSTALLED_CACHEIMAGE_TARGET) \
    $(INSTALLED_VENDORIMAGE_TARGET) \
    $(INSTALLED_FILES_FILE)
    # dist_files only for putting your library into the dist directory with a full build.
    .PHONY: dist_files
    ifneq ($(TARGET_BUILD_APPS),)
    # If this build is just for apps, only build apps and not the full system by default.
    unbundled_build_modules :=
    ifneq ($(filter all,$(TARGET_BUILD_APPS)),)
    # If they used the magic goal "all" then build all apps in the source tree.
    unbundled_build_modules := $(foreach m,$(sort $(ALL_MODULES)),$(if $(filter APPS,$(ALL_MODULES.$(m).CLASS)),$(m)))
    else
    unbundled_build_modules := $(TARGET_BUILD_APPS)
    endif
    # Dist the installed files if they exist.
    apps_only_installed_files := $(foreach m,$(unbundled_build_modules),$(ALL_MODULES.$(m).INSTALLED))
    $(call dist-for-goals,apps_only, $(apps_only_installed_files))
    # For uninstallable modules such as static Java library, we have to dist the built file,
    # as <module_name>.<suffix>
    apps_only_dist_built_files := $(foreach m,$(unbundled_build_modules),$(if $(ALL_MODULES.$(m).INSTALLED),,\
    $(if $(ALL_MODULES.$(m).BUILT),$(ALL_MODULES.$(m).BUILT):$(m)$(suffix $(ALL_MODULES.$(m).BUILT)))))
    $(call dist-for-goals,apps_only, $(apps_only_dist_built_files))
    ifeq ($(EMMA_INSTRUMENT),true)
    $(EMMA_META_ZIP) : $(apps_only_installed_files)
    $(call dist-for-goals,apps_only, $(EMMA_META_ZIP))
    endif
    $(PROGUARD_DICT_ZIP) : $(apps_only_installed_files)
    $(call dist-for-goals,apps_only, $(PROGUARD_DICT_ZIP))
    .PHONY: apps_only
    apps_only: $(unbundled_build_modules)
    droid: apps_only
    # Combine the NOTICE files for a apps_only build
    $(eval $(call combine-notice-files, \
    $(target_notice_file_txt), \
    $(target_notice_file_html), \
    "Notices for files for apps:", \
    $(TARGET_OUT_NOTICE_FILES), \
    $(apps_only_installed_files)))
    else # TARGET_BUILD_APPS
    $(call dist-for-goals, droidcore, \
    $(INTERNAL_UPDATE_PACKAGE_TARGET) \
    $(INTERNAL_OTA_PACKAGE_TARGET) \
    $(SYMBOLS_ZIP) \
    $(INSTALLED_FILES_FILE) \
    $(INSTALLED_BUILD_PROP_TARGET) \
    $(BUILT_TARGET_FILES_PACKAGE) \
    $(INSTALLED_ANDROID_INFO_TXT_TARGET) \
    $(INSTALLED_RAMDISK_TARGET) \
    $(INSTALLED_FACTORY_RAMDISK_TARGET) \
    $(INSTALLED_FACTORY_BUNDLE_TARGET) \
    # Put a copy of the radio/bootloader files in the dist dir.
    $(foreach f,$(INSTALLED_RADIOIMAGE_TARGET), \
    $(call dist-for-goals, droidcore, $(f)))
    ifneq ($(TARGET_BUILD_PDK),true)
    $(call dist-for-goals, droidcore, \
    $(APPS_ZIP) \
    $(INTERNAL_EMULATOR_PACKAGE_TARGET) \
    $(PACKAGE_STATS_FILE) \
    endif
    ifeq ($(EMMA_INSTRUMENT),true)
    $(EMMA_META_ZIP) : $(INSTALLED_SYSTEMIMAGE)
    $(call dist-for-goals, dist_files, $(EMMA_META_ZIP))
    endif
    # Building a full system-- the default is to build droidcore
    droid: droidcore dist_files
    endif # TARGET_BUILD_APPS
    .PHONY: docs
    docs: $(ALL_DOCS)
    .PHONY: sdk
    ALL_SDK_TARGETS := $(INTERNAL_SDK_TARGET)
    sdk: $(ALL_SDK_TARGETS)
    $(call dist-for-goals,sdk win_sdk, \
    $(ALL_SDK_TARGETS) \
    $(SYMBOLS_ZIP) \
    $(INSTALLED_BUILD_PROP_TARGET) \
    # umbrella targets to assit engineers in verifying builds
    .PHONY: java native target host java-host java-target native-host native-target \
    java-host-tests java-target-tests native-host-tests native-target-tests \
    java-tests native-tests host-tests target-tests
    # some synonyms
    .PHONY: host-java target-java host-native target-native \
    target-java-tests target-native-tests
    host-java : java-host
    target-java : java-target
    host-native : native-host
    target-native : native-target
    target-java-tests : java-target-tests
    target-native-tests : native-target-tests
    .PHONY: lintall
    .PHONY: samplecode
    sample_MODULES := $(sort $(call get-tagged-modules,samples))
    sample_APKS_DEST_PATH := $(TARGET_COMMON_OUT_ROOT)/samples
    sample_APKS_COLLECTION := \
    $(foreach module,$(sample_MODULES),$(sample_APKS_DEST_PATH)/$(notdir $(module)))
    $(foreach module,$(sample_MODULES),$(eval $(call \
    copy-one-file,$(module),$(sample_APKS_DEST_PATH)/$(notdir $(module)))))
    sample_ADDITIONAL_INSTALLED := \
    $(filter-out $(modules_to_install) $(modules_to_check) $(ALL_PREBUILT),$(sample_MODULES))
    samplecode: $(sample_APKS_COLLECTION)
    @echo -e ${PRT_TGT}"Collect sample code apks:"${CL_RST}" $^"
    # remove apks that are not intended to be installed.
    rm -f $(sample_ADDITIONAL_INSTALLED)
    .PHONY: findbugs
    findbugs: $(INTERNAL_FINDBUGS_HTML_TARGET) $(INTERNAL_FINDBUGS_XML_TARGET)
    .PHONY: clean
    clean:
    @rm -rf $(OUT_DIR)
    @echo -e ${PRT_TGT}"Entire build directory removed."${CL_RST}
    .PHONY: clobber
    clobber: clean
    # The rules for dataclean and installclean are defined in cleanbuild.mk.
    #xxx scrape this from ALL_MODULE_NAME_TAGS
    .PHONY: modules
    modules:
    @echo -e ${PRT_TGT}"Available sub-modules:"${CL_RST}
    @echo "$(call module-names-for-tag-list,$(ALL_MODULE_TAGS))" | \
    tr -s ' ' '\n' | sort -u | $(COLUMN)
    .PHONY: showcommands
    showcommands:
    @echo >/dev/null
    .PHONY: nothing
    nothing:
    @echo Successfully read the makefiles.

  • [SOLVED] Glibc and filesystem update, I screwed it up

    Hi,
    I read the announcement and tried to update via "pacman -Syu", however pacman gave the message
    filesystem: /usr/lib64 exists in filesystem
    Ok, so I did
    pacman -Syu --ignore filesystem glibc
    Unfortunately I didn't think of 'ignoring' lib32-glibc and I think this screwed everything up:
    sudo pacman -Syu --ignore filesystem glibc
    [sudo] password for nuc:
    :: Synchronisiere Paketdatenbanken...
    core ist aktuell
    extra ist aktuell
    community ist aktuell
    multilib ist aktuell
    archlinuxfr ist aktuell
    :: Starte komplette Systemaktualisierung...
    Warnung: balz: Lokale Version (1.15-4) ist neuer als archlinuxfr (1.15-2)
    Warnung: filesystem: Ignoriere Paket-Aktualisierung (2012.12-1 => 2013.01-1)
    Löse Abhängigkeiten auf...
    Warnung: Abhängigkeits-Zyklus entdeckt:
    Warnung: lib32-gcc-libs wird vor seiner Abhängigkeit gcc-libs-multilib installiert werden
    Suche nach Zwischenkonflikten...
    Pakete (26): bash-4.2.042-2 cifs-utils-5.9-1 colord-0.1.28-1 cpupower-3.7-5
    ethtool-1:3.7-1 gcc-libs-multilib-4.7.2-4 gcc-multilib-4.7.2-4
    gnupg-2.0.19-4 gpgme-1.3.1-5 json-c-0.10-1
    lib32-gcc-libs-4.7.2-4 lib32-glibc-2.17-2 lib32-libgl-9.0.2-1
    lib32-libglapi-9.0.2-1 lib32-pango-1.32.5-1
    libtorrent-rasterbar-1:0.16.7-1 libwbclient-3.6.11-2
    linux-api-headers-3.7.4-1 macchanger-1.5.0-6 mkinitcpio-0.12.0-3
    perl-error-0.17019-1 smbclient-3.6.11-2 sudo-1.8.6.p5-1
    xorg-server-1.13.2-1 xorg-server-common-1.13.2-1 glibc-2.17-2
    Gesamtgröße der zu installierenden Pakete: 271,63 MiB
    Größendifferenz der Aktualisierung: 5,31 MiB
    Installation fortsetzen? [J/n]
    (26/26) Überprüfe Paket-Integrität [----------------------] 100%
    (26/26) Lade Paket-Dateien [----------------------] 100%
    (26/26) Prüfe auf Dateikonflikte [----------------------] 100%
    (26/26) Überprüfe verfügbaren Festplattenspeicher [----------------------] 100%
    ( 1/26) Aktualisiere linux-api-headers [----------------------] 100%
    ( 2/26) Aktualisiere glibc [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    ( 3/26) Aktualisiere bash [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    ( 4/26) Aktualisiere libwbclient [----------------------] 100%
    ( 5/26) Aktualisiere cifs-utils [----------------------] 100%
    ( 6/26) Aktualisiere colord [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    ( 7/26) Aktualisiere cpupower [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    ( 8/26) Aktualisiere ethtool [----------------------] 100%
    ( 9/26) Aktualisiere lib32-glibc [----------------------] 100%
    (10/26) Aktualisiere lib32-gcc-libs [----------------------] 100%
    (11/26) Aktualisiere gcc-libs-multilib [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (12/26) Aktualisiere gcc-multilib [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (13/26) Aktualisiere gnupg [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (14/26) Aktualisiere gpgme [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (15/26) Aktualisiere json-c [----------------------] 100%
    (16/26) Aktualisiere lib32-libglapi [----------------------] 100%
    (17/26) Aktualisiere lib32-libgl [----------------------] 100%
    (18/26) Aktualisiere lib32-pango [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (19/26) Aktualisiere libtorrent-rasterbar [----------------------] 100%
    (20/26) Aktualisiere macchanger [----------------------] 100%
    (21/26) Aktualisiere mkinitcpio [----------------------] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (22/26) Aktualisiere perl-error [----------------------] 100%
    (23/26) Aktualisiere smbclient [----------------------] 100%
    (24/26) Aktualisiere sudo [----------------------] 100%
    (25/26) Aktualisiere xorg-server-common [----------------------] 100%
    (26/26) Aktualisiere xorg-server [----------------------] 100%
    "Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)" means something like "Could not call execv (file or diretory not found)"
    So what should I do now? I didn't restart the system yet.
    best regards
    nuc
    Last edited by nuc (2013-01-29 16:36:24)

    I have the same problem "Konnte execv nicht aufrufen" (can't call execv) when i updated my system. Now i can't sudo anymore. Have anybody an Idea how to solve this Problem?
    Here's my terminal output (sorry for the german output, but my system language is german):
    sudo pacman -Syu
    :: Synchronisiere Paketdatenbanken...
    cinnarch-repo 333,0 B 257K/s 00:00 [######################] 100%
    cinnarch-repo 31,4 KiB 151K/s 00:00 [######################] 100%
    cinnarch-core ist aktuell
    core 105,2 KiB 567K/s 00:00 [######################] 100%
    extra 1436,9 KiB 877K/s 00:02 [######################] 100%
    community 1878,2 KiB 729K/s 00:03 [######################] 100%
    multilib 93,9 KiB 666K/s 00:00 [######################] 100%
    :: Starte komplette Systemaktualisierung...
    Warnung: filesystem: Lokale Version (1:2012.12-1) ist neuer als core (2013.01-1)
    Löse Abhängigkeiten auf...
    Suche nach Zwischenkonflikten...
    Pakete (31): acl-2.2.51-3 bash-4.2.042-2 calibre-0.9.16-1
    cantarell-fonts-0.0.12-1 cifs-utils-5.9-1 clementine-1.1.1-4
    clutter-gst-2.0.0-1 clutter-gtk-1.4.2-1 colord-0.1.28-1
    evolution-data-server-3.6.3-1 gcc-4.7.2-4 gcc-libs-4.7.2-4
    glibc-2.17-2 json-c-0.10-1 lib32-gcc-libs-4.7.2-4
    lib32-glibc-2.17-2 libgee-0.6.7-1 liblastfm-1.0.6-1
    libwbclient-3.6.11-2 linux-api-headers-3.7.4-1
    mkinitcpio-0.12.0-3 mtools-4.0.18-1 ruby-atk-1.2.0-1
    ruby-gdkpixbuf2-1.2.0-1 ruby-glib2-1.2.0-1 ruby-gtk2-1.2.0-1
    ruby-pango-1.2.0-1 smbclient-3.6.11-2 sudo-1.8.6.p5-1
    transmission-cli-2.76-2 transmission-gtk-2.76-2
    Gesamtgröße des Downloads: 69,55 MiB
    Gesamtgröße der zu installierenden Pakete: 338,41 MiB
    Größendifferenz der Aktualisierung: 0,55 MiB
    Installation fortsetzen? [J/n] j
    :: Empfange Pakete von core...
    acl-2.2.51-3-x86_64 132,9 KiB 502K/s 00:00 [######################] 100%
    linux-api-headers-3... 614,9 KiB 737K/s 00:01 [######################] 100%
    glibc-2.17-2-x86_64 7,7 MiB 971K/s 00:08 [######################] 100%
    bash-4.2.042-2-x86_64 788,3 KiB 577K/s 00:01 [######################] 100%
    gcc-libs-4.7.2-4-x86_64 768,5 KiB 711K/s 00:01 [######################] 100%
    gcc-4.7.2-4-x86_64 18,4 MiB 748K/s 00:25 [######################] 100%
    mkinitcpio-0.12.0-3-any 28,9 KiB 241K/s 00:00 [######################] 100%
    sudo-1.8.6.p5-1-x86_64 576,9 KiB 428K/s 00:01 [######################] 100%
    :: Empfange Pakete von extra...
    cantarell-fonts-0.0... 56,6 KiB 503K/s 00:00 [######################] 100%
    libwbclient-3.6.11-... 26,7 KiB 417K/s 00:00 [######################] 100%
    cifs-utils-5.9-1-x86_64 65,7 KiB 545K/s 00:00 [######################] 100%
    liblastfm-1.0.6-1-x... 214,6 KiB 651K/s 00:00 [######################] 100%
    clutter-gst-2.0.0-1... 58,1 KiB 536K/s 00:00 [######################] 100%
    clutter-gtk-1.4.2-1... 34,3 KiB 356K/s 00:00 [######################] 100%
    colord-0.1.28-1-x86_64 288,8 KiB 508K/s 00:01 [######################] 100%
    evolution-data-serv... 2,9 MiB 868K/s 00:03 [######################] 100%
    json-c-0.10-1-x86_64 30,0 KiB 529K/s 00:00 [######################] 100%
    libgee-0.6.7-1-x86_64 102,7 KiB 284K/s 00:00 [######################] 100%
    mtools-4.0.18-1-x86_64 173,4 KiB 452K/s 00:00 [######################] 100%
    smbclient-3.6.11-2-... 7,9 MiB 1001K/s 00:08 [######################] 100%
    transmission-cli-2.... 587,7 KiB 225K/s 00:03 [######################] 100%
    transmission-gtk-2.... 708,0 KiB 647K/s 00:01 [######################] 100%
    :: Empfange Pakete von community...
    calibre-0.9.16-1-x86_64 19,3 MiB 958K/s 00:21 [######################] 100%
    clementine-1.1.1-4-... 4,3 MiB 719K/s 00:06 [######################] 100%
    ruby-glib2-1.2.0-1-... 101,5 KiB 293K/s 00:00 [######################] 100%
    ruby-atk-1.2.0-1-x86_64 18,4 KiB 176K/s 00:00 [######################] 100%
    ruby-gdkpixbuf2-1.2... 14,6 KiB 182K/s 00:00 [######################] 100%
    ruby-pango-1.2.0-1-... 34,4 KiB 270K/s 00:00 [######################] 100%
    ruby-gtk2-1.2.0-1-x... 233,1 KiB 376K/s 00:01 [######################] 100%
    :: Empfange Pakete von multilib...
    lib32-glibc-2.17-2-... 2,7 MiB 755K/s 00:04 [######################] 100%
    lib32-gcc-libs-4.7.... 732,4 KiB 499K/s 00:01 [######################] 100%
    (31/31) Überprüfe Paket-Integrität [######################] 100%
    (31/31) Lade Paket-Dateien [######################] 100%
    (31/31) Prüfe auf Dateikonflikte [######################] 100%
    (31/31) Überprüfe verfügbaren Festplattenspeicher [######################] 100%
    ( 1/31) Aktualisiere acl [######################] 100%
    ( 2/31) Aktualisiere linux-api-headers [######################] 100%
    ( 3/31) Aktualisiere glibc [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    ( 4/31) Aktualisiere bash [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    ( 5/31) Aktualisiere calibre [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    ( 6/31) Aktualisiere cantarell-fonts [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    ( 7/31) Aktualisiere libwbclient [######################] 100%
    ( 8/31) Aktualisiere cifs-utils [######################] 100%
    ( 9/31) Aktualisiere liblastfm [######################] 100%
    (10/31) Aktualisiere clementine [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (11/31) Aktualisiere clutter-gst [######################] 100%
    (12/31) Aktualisiere clutter-gtk [######################] 100%
    (13/31) Aktualisiere colord [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (14/31) Aktualisiere evolution-data-server [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (15/31) Aktualisiere gcc-libs [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (16/31) Aktualisiere gcc [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (17/31) Aktualisiere json-c [######################] 100%
    (18/31) Aktualisiere lib32-glibc [######################] 100%
    (19/31) Aktualisiere lib32-gcc-libs [######################] 100%
    (20/31) Aktualisiere libgee [######################] 100%
    (21/31) Aktualisiere mkinitcpio [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (22/31) Aktualisiere mtools [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    Neue optionale Abhängigkeiten für mtools
    libsm: required by floppyd
    (23/31) Aktualisiere ruby-glib2 [######################] 100%
    (24/31) Aktualisiere ruby-atk [######################] 100%
    (25/31) Aktualisiere ruby-gdkpixbuf2 [######################] 100%
    (26/31) Aktualisiere ruby-pango [######################] 100%
    (27/31) Aktualisiere ruby-gtk2 [######################] 100%
    (28/31) Aktualisiere smbclient [######################] 100%
    (29/31) Aktualisiere sudo [######################] 100%
    (30/31) Aktualisiere transmission-cli [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden
    (31/31) Aktualisiere transmission-gtk [######################] 100%
    Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
    Fehler: Befehl konnte nicht korrekt ausgeführt werden

  • [SOLVED]exists in filesystem

    I get the error "* existst in filesystem" a lot, say every third time I do pacman -S [package]. This makes me feel like something is broken.  Normally I just check that no package owns the files, with pacman -Qo file and then go ahead with pacman -Sf [package],  and everything works but it just feels very wrong.
    My theory atm is that it is the packages I installed when I first installed arch are not in pacman's database somehow. I tested this by doing pacman -Q gcc, which gave the error "package gcc doesn't exist". But gcc is installed and I know I installed it from the installation cd. Well I did a pacman -Sf gcc, and now pacman knows about gcc. How can I fix this, or will it go away once I have updated all the packages I initially installed. Are there any better way of fixing this?
    [edit]
    I tested my theory with one more example, doing pacman -Q pacman gives "package "pacman" does not exist". Well and pacman is obviously installed and it was installed from the installation cd. What should I do because I guess if pacman doesn't know about these packages I will not get any updates right? Should I go ahead and do pacman -Sf pacman?
    Last edited by OMGitsUGOD (2009-09-18 10:33:12)

    Thanks!
    I modified the method in the wiki somewhat since most of my packages was recognized by pacman I thought it was unnecessary to reinstall them all. The script given in the link above gives you a file "pkglist" which contains all packages you have ever installed, I only want to reinstall those that pacman has forgot about so I write the following in a file, e.g. broken_pkg.sh, and make it executable
    #!/bin/bash
    PKG=$(cat pkglist)
    for pkg in $PKG
    do
    pkg_broken=$(pacman -Q $pkg 2>&1 | grep "not found")
    if [ -n "$pkg_broken" ]
    then
    echo $pkg
    fi
    done
    and then I run
    ./broken_pkg.sh > broken_pkg
    and then do exactly what's done on the wiki but with "broken_pkg" instead of "pkglist". If you like you could just combine the teo scripts into one that does both tasks.
    Anyway thanks for the help nothing seems to be broke so far! I will mark this [SOLVED] when I have done some updates without any problems.

  • [SOLVED] mount: unknown filesystem type 'ext2'

    I probably have the most complicated first-time arch setup that you'll ever hear a n00b post.  XD
    I just finished setting up an encrypted arch box with a usb boot drive (it contains the key-file), but when I go to boot, the system reports the following:
    mount: unknown filesystem type 'ext2'
    Of all the things to break!  Ext2???!
    This is for the default boot mode, when boot into the fallback initramfs mode, the arch box boots up fine (although it takes 2 whole minutes).  I think that the issue is that I'm missing a module in my mkinitcpio.conf file.
    /etc/fstab file:
    UUID=1245ASDF / btrfs discard,autodefrag,compress=lzo,rw,relatime,ssd,space_cache 0 0
    UUID=2245ASDF /boot ext2 rw,noatime 0 2
    UUID=3245ASDF none swap defaults 0 0
    /etc/mkinitcpio.conf file:
    HOOKS="base btrfs udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
    /etc/default/grub file:
    GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda:enc cryptkey=/dev/sdb2:ext2:/keyfile crypto=sha512:twofish-xts-plain64:512:0:"
    Last edited by a-jamesregan (2015-04-13 19:15:48)

    Wow, there was literally a note about the exact issue I was having on the wiki...
    https://wiki.archlinux.org/index.php/Mkinitcpio#MODULES
    Note: If using reiser4, it must be added to the modules list. Additionally, if you will be needing any file system during the boot process that is not live when you run mkinitcpio — for example, if your LUKS encryption key file is on an ext2 file system but no ext2 file systems are mounted when you run mkinitcpio — that file system module must also be added to the MODULES list. See Dm-crypt/System configuration#cryptkey for more details.
    PS: How do I mark an issue as solved?
    Last edited by a-jamesregan (2015-04-13 10:28:20)

  • [SOLVED] glibc and filesystem simultaneous upgrade

    Hi!
    I wanted to upgrade my archlinux system today (last update mid of may) and I have some problems to do it. The system has to update more than 550 packages and I'm having some problems with the process...
    If I use:
    pacman -Syu
    I got the error message:
    error: failed to commit transaction (conflicting files)
    glibc: /lib exists in filesystem
    filesystem: /var/lock exists in filesystem
    filesystem: /var/run exists in filesystem
    Errors occurred, no packages were upgraded
    Then, I tried with:
    pacman -Syu --ignore glibc
    and I got:
    error: preparing the transaction (dependences cannot be satisfied)
    :: libcanberra-pulse: needs libcanberra=0.28-4
    :: pyqt: needs python-sip
    Then, I tried:
    pacman -Syu --ignore filesystem && pacman -S filesystem --force
    and I got:
    error: failed to commit transaction (conflicting files)
    glibc: /lib exists in filesystem
    Errors occurred, no packages were upgraded
    Does anybody know how can I update the system?
    Thanks for the help!
    Last edited by pepito_20110623 (2012-07-15 23:09:45)

    pepito_20110623 wrote:
    progandy wrote:What is the error?
    pacman -Su
    error: error at transaciton (files in conflict)
    glibc: /lib exists in filesystem
    Errors ocurred, packages were not upgraded
    [root@pedrito lib]# find /lib -exec pacman -Qo -- {} +
    error: no puedo determinar el dueño del directorio '/lib'
    /lib/libnss_nisplus-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libcidn.so.1 es propiedad de glibc 2.16.0-1
    /lib/libnsl.so.1 es propiedad de glibc 2.16.0-1
    /lib/librt.so.1 es propiedad de glibc 2.16.0-1
    /lib/libdl.so.2 es propiedad de glibc 2.16.0-1
    /lib/libnsl-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libnss_db.so.2 es propiedad de glibc 2.16.0-1
    /lib/libutil.so.1 es propiedad de glibc 2.16.0-1
    /lib/libBrokenLocale-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libnss_files-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libcrypt-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libnss_dns-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libresolv.so.2 es propiedad de glibc 2.16.0-1
    /lib/libnss_dns.so.2 es propiedad de glibc 2.16.0-1
    /lib/librt-2.16.so es propiedad de glibc 2.16.0-1
    /lib/ld-linux.so.2 es propiedad de glibc 2.16.0-1
    /lib/libanl-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libmemusage.so es propiedad de glibc 2.16.0-1
    /lib/libnss_compat.so.2 es propiedad de glibc 2.16.0-1
    /lib/libpthread.so.0 es propiedad de glibc 2.16.0-1
    /lib/libutil-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libnss_files.so.2 es propiedad de glibc 2.16.0-1
    /lib/libthread_db.so.1 es propiedad de glibc 2.16.0-1
    /lib/libc-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libdl-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libpthread-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libanl.so.1 es propiedad de glibc 2.16.0-1
    /lib/libcidn-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libSegFault.so es propiedad de glibc 2.16.0-1
    /lib/libresolv-2.16.so es propiedad de glibc 2.16.0-1
    /lib/ld-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libBrokenLocale.so.1 es propiedad de glibc 2.16.0-1
    /lib/libnss_nisplus.so.2 es propiedad de glibc 2.16.0-1
    /lib/libnss_nis.so.2 es propiedad de glibc 2.16.0-1
    /lib/libm-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libcrypt.so.1 es propiedad de glibc 2.16.0-1
    /lib/libnss_db-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libnss_nis-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libthread_db-1.0.so es propiedad de glibc 2.16.0-1
    /lib/libnss_compat-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libnss_hesiod-2.16.so es propiedad de glibc 2.16.0-1
    /lib/libnss_hesiod.so.2 es propiedad de glibc 2.16.0-1
    /lib/libc.so.6 es propiedad de glibc 2.16.0-1
    /lib/libm.so.6 es propiedad de glibc 2.16.0-1
    /lib/libpcprofile.so es propiedad de glibc 2.16.0-1
    [root@pedrito lib]# grep '^lib/' /var/lib/pacman/local/*/files | grep -v glibc
    /var/lib/pacman/local/ipw3945-ucode-1.14.2-2/files:lib/
    /var/lib/pacman/local/ipw3945-ucode-1.14.2-2/files:lib/firmware/
    /var/lib/pacman/local/ipw3945-ucode-1.14.2-2/files:lib/firmware/LICENSE.ipw3945-ucode
    /var/lib/pacman/local/ipw3945-ucode-1.14.2-2/files:lib/firmware/ipw3945.ucode
    I found the solution!!! I just moved the folder /var/lib/pacman/local/ipw3945-ucode-1.14.2-2 to another place and pacman -Su is working now!!!
    Thanks to you all, guys! :-D

  • [SOLVED] grub "unknown filesystem" error for big partition layout

    Last night / this morning I copied the root and swap partitions of an Arch Linux installation (stushiba) I had on an old Toshiba hard drive, as well as the "system reserved" and other partitions of a Windows 8 install (stuzate) on another 500GB hard drive, onto a new 2TB Western Digital hard drive using Gparted via an external Arch environment I run off of a microSD card + adapter (sturling).
    After doing so, I installed GRUB to the new drive to the best of my ability, but when I try to boot the system with just that drive, this is what I see:
    GRUB loading.
    Welcome to GRUB!
    error: unknown filesystem.
    Entering rescue mode...
    grub rescue>
    Running ls doesn't find anything:
    grub rescue> ls
    (hd0) (hd0,msdos4) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
    grub rescue> ls (hd0,msdos4)
    (hd0,msdos4): Filesystem is unknown.
    grub rescue> ls (hd0,msdos3)
    (hd0,msdos3): Filesystem is unknown.
    grub rescue> ls (hd0,msdos2)
    (hd0,msdos2): Filesystem is unknown.
    grub rescue> ls (hd0,msdos1)
    (hd0,msdos1): Filesystem is unknown.
    The system should be on (hd0,msdos3) - it's ext4, and, if I insert the old Toshiba hard disk to the system and select that as my boot device in BIOS, it boots from the partition on the old drive's grub menu, into the partition in the new drive (because they have the same UUID), so the partition's definitely readable/bootable. (I've tried both regenerating the grub menu and installing grub from this boot scenario, with no change.)
    (That said, if I enter a console on my system with a working GRUB installation and do an ls on that partition, I get more "unrecognized filesystem" messages.)
    Once the new partition had loaded, I ran
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    and rebooted, but GRUB was still broken.
    I tried fixing this by rebooting into the latest installation media, with only the new hard drive plugged in, and running
    mount /dev/sda3 /mnt
    arch-chroot /mnt
    modprobe dm-mod
    grub-install --recheck /dev/sda
    But that still hasn't fixed anything: I still get the "error: unknown filesystem." message whenever I try to do anything in GRUB.
    My /boot/grub/grub.cfg: http://sprunge.us/RMeD
    Help!
    Last edited by STUART (2013-09-12 01:55:16)

    This is the output when running from sturling (neither partition booted).
    /dev/sda is the new disk, /dev/sdb is the microSD card I'm running the system off of, and /dev/sdc is the old disk.
    [stuart@sturling ~]$ sudo lsblk -f
    NAME FSTYPE LABEL UUID MOUNTPOINT
    sda
    ├─sda1 ntfs System Reserved F24C78CE4C788EDB
    ├─sda2 ntfs F68C7D338C7CF00B
    ├─sda3 ext4 stushiba 1c8533ed-4a3c-4a4c-907b-682bd2313492
    └─sda4 swap 97c30b3e-f763-437b-aa71-0378bef4c017
    sdb
    ├─sdb1 vfat savfat A13A-D130 /vfat
    └─sdb2 ext4 saroot 7434b70f-7028-4a8d-ad78-a4975a98e1a6 /
    sdc
    ├─sdc1 ext4 stushiba 1c8533ed-4a3c-4a4c-907b-682bd2313492
    └─sdc2 swap 97c30b3e-f763-437b-aa71-0378bef4c017
    sr0
    [stuart@sturling ~]$ sudo fdisk -l /dev/sda
    Disk /dev/sda: 2000.4 GB, 2000365289472 bytes, 3906963456 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0x0005f107
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 718847 358400 7 HPFS/NTFS/exFAT
    /dev/sda2 718848 1937063935 968172544 7 HPFS/NTFS/exFAT
    /dev/sda3 1937063936 3873409023 968172544 83 Linux
    /dev/sda4 3873409024 3906963455 16777216 82 Linux swap / Solaris
    [stuart@sturling ~]$ sudo fdisk -l /dev/sdb
    Disk /dev/sdb: 31.9 GB, 31914983424 bytes, 62333952 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0x000c314b
    Device Boot Start End Blocks Id System
    /dev/sdb1 2048 8390655 4194304 c W95 FAT32 (LBA)
    /dev/sdb2 * 8390656 62333951 26971648 83 Linux
    [stuart@sturling ~]$ sudo fdisk -l /dev/sdc
    Disk /dev/sdc: 100.0 GB, 100030242816 bytes, 195371568 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0x8bef8bef
    Device Boot Start End Blocks Id System
    /dev/sdc1 2048 178593791 89295872 83 Linux
    /dev/sdc2 178593792 195371007 8388608 82 Linux swap / Solaris

  • [SOLVED] Preventing nonexistent filesystem in fstab from blocking boot

    Some years ago I moved out of my parents house, but that didn't exonerate me from being their netadmin. I have an arch box there which provides local fileserver, DHCP, and NAT. It's set up with a RAID5+LVM samba server to give my parents an easy place to back up their local computers and dump photographs.
    At one point while I was clear on the other side of the world from them, one of the drives in the RAID5 failed. No problem - the data's safe. But the bigger issue was that it prevented the system from booting. There are entries in fstab to mount filesystems, and when one doesn't exist the whole thing just hangs. Usually when problems occur I just ssh in from wherever I am and fix whatever is wrong. In this case, I had to walk my father through using single user mode and editing fstab with vim over the phone. It sucked.
    Is there an elegant way to ensure that when a non-critical filesystem listed in fstab disappears that it does not prevent the system from booting? So far my kludge solution has been to remove the entry from fstab and just mount it manually from rc.local. But that seems like a hack. Is there a better solution?
    Thanks,
    Sasha
    Last edited by kleptophobiac (2011-01-02 04:26:41)

    Try using the option 'nofail'.  For example, in fstab:
    UUID=669b1bcd-5ae9-4ae9-868c-be327b044e23 /mnt/backup jfs defaults,nofail,noatime,nodiratime,noexec,nosuid 0 2

  • [solved but questions] Lightweight alternative to alunn

    I was wondering if there was a lighter alternative to alunn. I know that there are a lot of GUI frontends for pacman and I've looked into those which looked promising from the list on the wiki but most of them do too much or they don't do it correctly (in my opinion ).
    Essentially, I would like something which would just notify me of updates to installed apps from at least the official repositories. Ideally, it would do the same for apps installed from AUR. I absolutely do not want something with the ability to upgrade my system. Nor do I want something which will update the package databases. That is, it must not run pacman -Sy (or pacman -Syu) unless in a fakeroot environment. It should not need root privileges for anything, ever.
    A systray icon would be nice but is not absolutely essential.
    The main problem with alunn is that it pulls in a lot of gnome dependencies, including gvfs and various other gnome things. gvfs is creating problems for rsync backup and, while I'm sure this is avoidable, it made me realise that the only reason I have it installed is for alunn and I thought maybe I could find something which was either generally lighter or hooked into kde/qt dependencies which I've already got installed. If it could also check for AUR updates, that would be the icing on the cake.
    I was also wondering about just scripting a cron job but I'm not sure how to run a cron job as an ordinary user in Linux and I've had no luck getting notifications to work from cron jobs.
    Last edited by cfr (2012-06-11 20:36:56)

    I still really have the same questions. That is, I'd still like to know the answers. However, I found something which at least seems to work by finding a sort of answer to (1) though I'm far from sure that this is how it should be done...
    This is very heavily based on the original versions. (The cron job is probably identical or almost so and the basic notification script will be similar. The main difference is the script I'm using to get the notifications to behave themselves. I'm just including everything here for completeness - I'm certainly not claiming authorship!)
    I installed a script at /usr/local/bin/pacmandbcheck-notifications:
    #!/bin/bash -
    # ref.: http://www.andreascarpino.it/blog/posts/hey-youve-n-outofdated-packages-part-ii/
    # instructions: add to user crontab
    # mangled by cfr
    PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
    export PATH
    DISPLAY=:0
    export DISPLAY
    if test -x /usr/bin/on_ac_power; then
    /usr/bin/on_ac_power &> /dev/null
    if test $? -eq 1; then
    exit 0
    fi
    fi
    fakedb=/dev/shm/fakepacdb
    [[ -d "$fakedb" ]] || exit 0
    enwau=$(pacman --dbpath "$fakedb" -Qqu)
    #pkgs=$(pacman --dbpath "$fakedb" -Qqu | wc -l)
    pkgs=$(echo $enwau | wc -w)
    #aurpkgs=$(cower -udf 2> /dev/null | wc -l)
    aurpkgs=0
    unset msg1
    unset msg2
    unset packages
    if [[ ${pkgs} -gt 0 ]]; then
    msg1="${pkgs} in pacman"
    fi
    if [[ ${aurpkgs} -gt 0 ]]; then
    msg2=" ${aurpkgs} in AUR"
    fi
    let packages=${pkgs}+${aurpkgs}
    echo $enwau > /tmp/hysbysu.$$
    enwau=$(cat /tmp/hysbysu.$$)
    rm /tmp/hysbysu.$$
    if [[ ${packages} -gt 0 ]]; then
    # kdialog --icon "arch-logo" --title "Out-Of-Date packages" --passivepopup "There are ${packages} outofdated packages (${msg1}${msg2})" 10
    # notify-send -u normal -i arch-logo "Out-Of-Date packages" "There are ${packages} outofdated packages (${msg1}${msg2})"
    hysbysu -u normal -i arch-logo -t 0 -s "${packages} outdated packages" -b "${enwau}"
    fi
    exit 0
    and another at /usr/local/bin/hysbysu:
    #!/bin/bash -
    #set -x
    export DISPLAY=:0
    export XAUTHORITY=~/.Xauthority
    PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
    export PATH
    allan=0
    usage="Usage: $0 [OPTION]
    Send a notification in a way which respects the KDE GUI but falls back to the standard setup (I think) if KDE isn't running.
    Options:
    -b --body specify message [empty]
    -c --category specify category [empty]
    -h --help print this message and exit
    --hint specify additional hints [empty]
    -i --icon specify icon [info]
    -o --options options to pass to notification command [empty]
    -s --summary specify summary [\"Notification\"]
    -t --time specify time to expire [0 i.e. no expiry]
    -u --urgency specify urgency (low, normal or critical) [normal]
    For cases where the default is "empty", the default will effectively be notify-send's default since all this script does is pass stuff onto the command."
    error () {
    echo "$@" 1>&2
    ((allan++))
    usage_and_exit $allan
    usage () {
    printf %b "$usage\n"
    usage_and_exit () {
    usage
    exit $1
    tempargs=$(getopt -o b:c:hi:o:s:t:u: --long body:,category:,help,hint:,icon:,options:,summary:,time:,urgency: -- "$@")
    if [ $? != 0 ];
    then
    usage_and_exit
    fi
    eval set -- "$tempargs"
    body=""
    cat=""
    hint=""
    icon=""
    summ="Notification"
    time="0"
    urg="normal"
    while true
    do
    case "$1"
    in
    -b | --bo | --bod | --body)
    body="$2"
    shift;
    shift;;
    -c | --ca | --cat | --cate | --categ | --catego | --categor | --category)
    cat="$2"
    shift;
    shift;;
    -h | --help)
    usage;
    exit $allan;;
    --hi | --hin | --hint)
    hint="$2"
    shift;
    shift;;
    -i | --ic | --ico | --icon)
    icon="$2"
    shift;
    shift;;
    -o | --opt | --opts| --opti | --optn | --option | --options)
    options="$2"
    shift;
    shift;;
    -s | --su | --sum | --summ | --summa | --summar | --summary)
    summ="$2"
    shift;
    shift;;
    -t | --ti | --tim | --time)
    time="$2"
    shift;
    shift;;
    -u | --ur | --urg | --urge | --urgen | --urgenc | --urgency)
    urg="$2"
    shift;
    shift;;
    shift;
    break;;
    error Unrecognised option "$1".
    esac
    done
    args="$@"
    if [ "$icon" = "" ]
    then
    if [ "$urg" = "low" ]
    then
    icon="dialog-information"
    else
    if [ "$urg" = "normal" ]
    then
    icon="dialog-warning"
    else
    if [ "$urg" = "critical" ]
    then
    icon="dialog-error"
    else
    icon="specialcharacters-Character-Question"
    fi
    fi
    fi
    fi
    ksession_pid=$(ps -o pid= -C 'kwin -session' | sed 's/ //g')
    if [ "$ksession_pid" = "" ]
    then
    dbus_session_file=~/.dbus/session-bus/$(cat /var/lib/dbus/machine-id)-0
    if [ -e "$dbus_session_file" ]
    then
    . "$dbus_session_file"
    [ $? == 0 ] || ((allan++))
    export DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID
    else
    error "Gwall! Allwn i ddim canfod $dbus_session_file."
    fi
    else
    dbus_session_address=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$ksession_pid/environ | sed 's/^DBUS_SESSION_BUS_ADDRESS=//')
    [ "$dbus_session_address" != "" ] || error "Could not get DBUS_SESSION_BUS_ADDRESS for session."
    export DBUS_SESSION_BUS_ADDRESS="$dbus_session_address"
    fi
    if [ "$hint" = "" ]
    then
    notify-send -i "$icon" -u "$urg" -t "$time" -c "$cat" $options "$summ" "$body"
    [ $? == 0 ] || ((allan++))
    else
    notify-send -i "$icon" -u "$urg" -t "$time" -c "$cat" -h "$hint" $options "$summ" "$body"
    [ $? == 0 ] || ((allan++))
    fi
    #notify-send $options $args
    #kdialog --passivepopup prawf-kd 0
    exit $allan
    As I say, I'm far from sure that's a good way to get the DBUS variable KDE's session is using. I haven't tested what happens in the absence of KDE as that's the only environment I have available.
    I also installed this at /etc/cron.hourly/pacmandbcheck:
    #!/bin/bash -
    # ref.: http://www.andreascarpino.it/blog/posts/hey-youve-n-outofdated-packages-part-ii/
    # instructions: install in /etc/cron.hourly/
    # mangled by cfr
    PATH=/bin:/sbin:/usr/bin:/usr/sbin
    export PATH
    if test -x /usr/bin/on_ac_power; then
    /usr/bin/on_ac_power &> /dev/null
    if test $? -eq 1; then
    exit 0
    fi
    fi
    fakedb=/dev/shm/fakepacdb
    realdb=/var/lib/pacman
    [[ ! -d $fakedb ]] && { mkdir -p "$fakedb/sync" || exit 1; }
    [[ ! -L $fakedb/local ]] && { ln -s "$realdb/local" "$fakedb" || exit 2; }
    exec fakeroot pacman --dbpath "$fakedb" -Sy
    exit $?
    Finally, I added this to my user crontab:
    55 * * * * nice /usr/local/bin/pacmandbcheck-notifications

  • [SOLVED] Read-only filesystem error

    Hi there,
    i'm trying to install Arch Linux (2012.10.06) about a week.
    I have problem, that i can't connect to wired internet, because I have access only to wireless....
    Let's begin, i read all of this:
    https://wiki.archlinux.org/index.php/Ne … stallation
    https://wiki.archlinux.org/index.php/Co … ng_network
    https://wiki.archlinux.org/index.php/Wireless_Setup
    My problems (can't access internet while installing arch):
    Img 1
    Img 2
    Img 3
    Img 4
    Img 5
    Img 6
    I just don't know what to do...
    Last edited by CauseLT (2012-10-30 22:13:16)

    ewaller wrote:
    I am not sure exactly what you are asking.  I think you are asking as to whether you can install Arch alongside Ubuntu using the spare space on your drive. The answer is, yes.  But, things can go wrong if there is pilot error.
    From Ubuntu, please post the output of sudo fdisk -l /dev/sda and of mount.
    As to your English -- it is far better than my Lithuanian.  I regret that I have never mastered a second language;  No need to apologize.
    Disk /dev/sda: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0009b88f
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2046 849594367 424796161 5 Extended
    /dev/sda4 849594368 1250260991 200333312 7 HPFS/NTFS/exFAT
    /dev/sda5 2048 7999487 3998720 82 Linux swap / Solaris
    /dev/sda6 8001536 203311103 97654784 83 Linux
    /dev/sda7 203313152 849594367 323140608 83 Linux
    mount:
    /dev/sda6 on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
    none on /run/shm type tmpfs (rw,nosuid,nodev)
    none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
    /dev/sda7 on /home type ext4 (rw)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfsd-fuse on /run/user/cause/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=cause)
    /dev/sda4 i will delete durning Arch installation, because I don't use that partition (old Windows D disk)..
    Last edited by CauseLT (2012-10-29 00:17:43)

  • [SOLVED] read only filesystem prevents login

    Hi everyone.
    I have this problem after changing from initscript to systemd and adding an external ntfs-3g drive to /etc/fstab. when i log in i get this message and xfce4 doesnt start :
    -bash: /home/bb/.xlog : read-only file system
    ls -la /
         gives output  rwxr-xr-x   for /home
    i also tried
    #mount -o remount,rw /dev/sda4 /
        with no results.
    when i try to change /etc/fstab entries i get an error message saying that system is read-only...
    chmod and chown dont work either with the same error message
    how am i supposed to change something in a read-only system?
    Last edited by memax (2012-11-15 17:39:45)

    i ve not removed 'ro' from booting cmd and / is mounted with rw,relatime,data=ordered 0 1   in /etc/fstab  as options

  • Unionfs commands

    i am looking at implementing unionfs as an alternative to appleraid volumes for my external usb disks, as i do not have to worry about 1 disk taking the whole volume offline.
    but i have to mount it in a read-write manner to all the disks in the union, then apply a symlink for the ~/Music/iTunes/iTunes\ Music directory, to allow iTunes to manage the tracks as though nothing has changed with the filesystem.
    +my question is which command utilities should be used with unionfs?+
    1 article i read was on linuxjournal.com, and maybe more linux than freebsd based. it uses "mount -t unionfs ...." commands. this also has "unionctl" to allow dynamic management of the unionfs volume. (http://www.linuxjournal.com/article/7714)
    a 2nd article, seemed to be OS X specific, uses "hdiutil attach ... -union" commands. (http://rentzsch.com/macosx/unionFilesystems)
    regards
    jingo_man

    dtw wrote:The unionfs detection in archie-scripts is a bit scratty at the moment.  I'm lining up to fix it today or tomorrow, though
    it's prolly a depmod issue, seeing as:
    [root@sara sidenews]# modprobe sdas
    FATAL: Module sdas not found.
    the message is exactly the same as spat out by modprobe when the module cant be found Or when the module is there, and it doesnt know about it.
    James

  • Locale didn't set at install, filesystem doesn't like accents

    I have a strange problem on another computer, on which I just installed arch. I can't create folders and can't save files with áéúóüöőű characters. and yaourt says, it can't find hu_HU.UTF8. At arch installation I forgot to set the locale (only en_US was uncommented). Where can I fix this now, with everything installed? (This is on another computer, on mine one, it works good, even folders with őű)

    Thank you, I'll try. I even did one of them, I can't remember which. I'll get to that computer tomorrow, hopefully it solve evenb the filesystem problem.

  • Is there a way to password protect internet access?

    Is there a way to password protect internet access?
    Is there a way to password protect the Airport function on my mac?
    I have spent some time looking at the forums and on the internet trying to look for a app that can solve my problem. I wish to be able to turn off internet access. I have been using K9 web protection but have found some flaws and bugs. It is a great idea and works well except for the "block any access between(set time) and (set time)" function.
    I want to be able to use my computer with out the worry of access to the internet. In my simplistic ideas I need an app that will simply toggle the AirPort function on and off and password protect it. That way when i dont want the distraction in my own life and when i let the rest of the family are playing games the internet is safely protected.
    At this time the ethernet connection is not a problem.
    I can simply un plug the router however the neighbours around me don't password protect their connections!
    If any one knows of a way to solve this or any alternative solutions please let me know.
    Many thanks for reading and I look forward to your expertise.
    Alex

    AirPort Express frequently asked questions (FAQ)
    Question: Can I completely turn off the AirPort Express wireless signal when I don't need it?    Answer: No, though you can turn the transmission strength down to a minimum setting. To prevent unauthorized access, you can turn on wireless security features.
    http://support.apple.com/kb/HT1515
    Wi-Fi base stations: Setting up and configuring a roaming network (802.11 a/b/g/n)
    http://support.apple.com/kb/HT4260
    Check your access privileges
        If you enabled encryption on your network, make sure that you set up your base station or router properly. Consult the documentation that came with your product. Make sure you're using the correct settings and password. If you're joining a closed network, a network with its name hidden, make sure that you've entered the network name and password correctly. If the network is secured by access control, make sure that your MAC address is registered with the network administrator. Consult the network administrator for assistance with access.
    http://support.apple.com/kb/HT1145
    Airport Apple Support
    http://www.apple.com/support/airport/

  • IDENTITY_INSERT is set to OFF.

    I have a dynamic site.
    When I insert an integer (a whole number) in a raw materials purchase table, I get the following message:
    Error Executing Database Query.
    [Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert explicit value for identity column in table 'tblRawMatlPurch' when IDENTITY_INSERT is set to OFF.           
    When I change to or insert a numeric, decimal, or money value, I get the following message:
    Raw Materials Decision
    Company:  Grande
    You have NOT successfully submitted the Raw Materials Decision form
    Please note that the purchase amount must be a whole number, please do not enter a decimal for this number.
    Return to correct
    I have two programs: one is in the secure section, and the name is secure/raw_materials_decision_action, indicating that the raw material purchase variable (rawMat) is a money variable. Giving this information I set it in SQL as a money variable. Here is the file:
    <!---  get Company Name --->
    <cfquery name="getCompany" datasource="#application.dsn#">
      Select companyName
      From tblCompNames
      Where companyID=<cfqueryparam cfsqltype="cf_sql_integer" value="#getAuthUser()#">
    </cfquery>
    <cfparam name="form.changes" default="">
    <cfset error = "">
    <!--- All users must have raw materials associated with city and product when user profile created --->
    <!--- update action --->
    <cfif form.changes NEQ "">
    <!---  go through changes - if they changed cost or selling price, will contain cost_id --->
      <cfloop index="x" list="#form.changes#">
      <cfif trim(x) NEQ "">
      <cfset thisSalesOrderID = trim(x)>
      <cfset thisRawMatID = form["rawMatID_#thisSalesOrderID#"]>
      <cfset thisCity = form["cityID_#thisSalesOrderID#"]>
      <cfset thisProduct = form["productID_#thisSalesOrderID#"]>
      <cfset thisPurchase = form["purchase_#thisSalesOrderID#"]>
      <cfif thisPurchase NEQ "" AND (not isNumeric(thisPurchase) OR thisPurchase CONTAINS ".")>
      <cfset error = "yes">
      </cfif>
      <cfif error EQ "">
      <cfquery name="getRow" datasource="#application.dsn#">
      Select *
      From tblRawMatlPurch
      WHERE SalesOrderID=<cfqueryparam cfsqltype="cf_sql_integer" value="#thisSalesOrderID#">
      </cfquery>
      <cfif getRow.RawMat NEQ thisPurchase>
      <cfif getRow.recordCount NEQ 0 AND trim(thisPurchase) NEQ "">
      <cfquery name="updateRow" datasource="#application.dsn#">
      Update tblRawMatlPurch
      Set CityID = <cfqueryparam cfsqltype="cf_sql_integer" value="#thisCity#">
      , ProductID = <cfqueryparam cfsqltype="cf_sql_integer" value="#thisProduct#">
      , RawMatID = <cfqueryparam cfsqltype="cf_sql_integer" value="#thisRawMatID#">
      , RawMat = <cfqueryparam cfsqltype="cf_sql_money" value="#trim(thisPurchase)#">
      WHERE SalesOrderID=<cfqueryparam cfsqltype="cf_sql_integer" value="#thisSalesOrderID#">
      </cfquery>
      <cfelseif getRow.recordCount NEQ 0 AND trim(thisPurchase) EQ "">
      <cfquery name="deleteRow" datasource="#application.dsn#">
      Delete From tblRawMatlPurch
      WHERE SalesOrderID=<cfqueryparam cfsqltype="cf_sql_integer" value="#thisSalesOrderID#">
      </cfquery>
      <cfelseif getRow.recordCount EQ 0 AND thisPurchase NEQ "">
      <cfquery name="insertRow" datasource="#application.dsn#">
      Insert Into tblRawMatlPurch
      (SalesOrderID,companyID,cityID, productID,RawMatID,RawMat)
      VALUES
      (<cfqueryparam cfsqltype="cf_sql_integer" value="#thisSalesOrderID#">,<cfqueryparam cfsqltype="cf_sql_integer" value="#getAuthUser()#">, <cfqueryparam cfsqltype="cf_sql_integer" value="#thisCity#">, <cfqueryparam cfsqltype="cf_sql_integer" value="#thisProduct#">,<cfqueryparam cfsqltype="cf_sql_integer" value="#thisRawMatID#">,<cfqueryparam cfsqltype="cf_sql_money" value="#trim(thisPurchase)#">)
      </cfquery>
      </cfif>
      </cfif>
      </cfif>
      </cfif>
      </cfloop>
    </cfif>
    However, I have a second program in the files section: the raw material decision, which indicates that the variable must be an integer (a whole number).
    <!---  Text Content for Raw Materials Decision Form
      DO NOT CHANGE ANY FORM NAMES OR ADD NEW FORM NAMES
      <input type="text" name="DO NOT CHANGE". . .>
      See raw_materials_decison_es.html for Spanish version of this file --->
    <!---  User can enter just one purchase
      - the next time they use this screen it will show blank city/product/raw material purchases
      error message if they do not enter numeric value --->
    <!---  get Materials for this company --->
    <cfquery name="getMaterials" datasource="#application.dsn#">
      SELECT SalesOrderID, CityID, ProductID, RawMatID
      FROM tblRawMatID
      WHERE CompanyID=<cfqueryparam cfsqltype="cf_sql_integer" value="#getAuthUser()#">
      ORDER BY cityID, productID, rawMatID
    </cfquery>
    <!--- set Company name --->
    <cfset thisCompany = getCompany.companyName>
    <table width="600" border="0" cellpadding="5" align="center">
      <cfoutput>
      <tr>
      <td colspan="5" align="right">
      <a href="logout.cfm" style="text-decoration:none; font-weight:bold;">LOGOUT</a>
      </td>
      </tr>
      <tr>
      <td colspan="5">
      <h2>Raw Materials Decision</h2>
      <h5>Company:  #thiscompany#</h5>
      </td>
      </tr>
      </cfoutput>
    <!---  Action display --->
    <cfif form.changes NEQ "">
      <!--- Error Message - if there --->
      <cfif error NEQ "">
      <tr>
      <td colspan="5">
      <p>
      You have NOT successfully submitted the Raw Materials Decision form
      </p>
      <p>
      Please note that the purchase amount must be a whole number, please do not enter a decimal for this number.
      <br /><br />
      <a href='Javascript: history.back();'>Return to correct</a>
      </p>
      </td>
      </tr>
      <cfelse>
      <tr>
      <td colspan="5">
      <p>
      Thank you for your submission.
      </p>
      </td>
      </tr>
      </cfif>
    <!---  START FORM --->
    <cfelse>
      <!---  Show Materials already entered when Company set up --->
      <form action="raw_materials_decision.cfm" method="post" name="materials">
      <!---  changes hold the ID for any values that are changed to minimize time to check for changes
      - uses onChange in form input to send ID --->
      <input type="hidden" name="changes" value="" />
      <!--- top column headings for table --->
      <tr>
      <th>
      City
      </th>
      <th>
      Product
      </th>
      <th>Raw Materials</th>
      <th>
      Price</th>
      <th align="center">
      Purchase
      </th>
      </tr>
      <cfoutput query="getMaterials">
      <cfquery name="getCity" datasource="#application.dsn#">
      Select cityName
      From tblCities
      Where cityID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.cityID#">
      </cfquery>
      <cfquery name="getProduct" datasource="#application.dsn#">
      Select productName
      From tblProductCategories
      Where productID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.productID#">
      </cfquery>
      <cfquery name="getMaterial" datasource="#application.dsn#">
      Select rawMatDescription
      From tblRmatCategory
      Where rawMatID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.rawMatID#">
      </cfquery>
      <cfquery name="getPrice" datasource="#application.dsn#">
      Select rawMatPrice
      From tblRawmatPrices
      Where rawMatID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.rawMatID#">
      AND cityID= <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.cityID#">
      </cfquery>
      <cfquery name="getPurch" datasource="#application.dsn#">
      SELECT RawMat
      FROM tblRawMatlPurch
      WHERE companyID=<cfqueryparam cfsqltype="cf_sql_integer" value="#getAuthUser()#">
      AND cityID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.cityID#">
      AND productID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.productID#">
      AND rawMatID =  <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.RawMatID#">
      </cfquery>
      <tr>
      <td>
      #getCity.cityName#
      <input type="hidden" name="cityID_#salesOrderID#" value="#cityID#" />
      </td>
      <td>
      #getProduct.productName#
      <input type="hidden" name="productID_#salesOrderID#" value="#productID#" />
      </td>
      <td>
      #getMaterial.RawMatDescription#
      <input type="hidden" name="rawMatID_#salesOrderID#" value="#RawMatID#">
      </td>
      <td>
      #dollarFormat(getPrice.rawMatPrice)#
      </td>
      <td align="center">
      <input  name="purchase_#salesOrderID#" type="text" value="#getPurch.rawMat#" size="12" onchange="document.materials.changes.value=document.materials.changes.value + ', #salesOrderID#';" />
      </td>
      </tr>
      </cfoutput>
      <!--- blank space before submit button --->
      <tr>
      <td colspan="5">
      <br />
      </td>
      </tr>
      <!--- submit buttons --->
      <tr>
      <td colspan="5">
      <input type="submit" value="Submit Raw Materials" />
      <input type="reset" value="Reset">
      </td>
      </tr>
      </form>
    </cfif>
    </table>
    I understand there is a conflict between the secure/raw_materials_decision_action program and the raw materials decision program, except, that I do not know how to fix it.
    Perhaps, I could change, the raw materials variable from money to integer. But, I am not sure this will solve the problem.
    Alternatively, I could try to change the raw_materials_decision, specification, to accept a decimal, numeric, or money variable, but, I have been revieweing the file, and I do not know how to make this change.
    It is not obvious to me.
    Is there anyone who could help with this problem to find a best possible solution?
    I would appreciate the assistance very much.
    Thank you.

    TL;DR. The error you are receiving is from SQL. Identity fields are auto-assigned by the SQL server and you are sending a prepopulated value, thus the error. I can't really tell you how to easily fix this because I'm not sure what the app is trying to do nor do I know the underlying database schema. The most likely solution is to not send the identity value in your insert query and then use select @@identity if you require the auto-assigned value.

Maybe you are looking for

  • Itunes u refuses to list "lecture 1" after subscribing

    Hello, I am experiencing this issue with itunes on my mac pro, not the actual itunes u app on my iphone.  For some reason, maybe because I watched it halfway through in the past on my iphone, itunes refuses to list the first lecture of the introducti

  • Speakerphone option is too low for practical use. Can this be corrected?

    I have the iPhone 2G and the speakerphone really ***** (for lack of a better term). I'd like to use it more often but even on its loudest setting its barely audible. Can this be fixed without hacking? Is the 3G significantly louder? Thanks for any in

  • How do I view what has been stored on I cloud

    How secure is the information stored in ICloud? How do I review information stored in ICloud?

  • E7-00: Phone Start Failed. Please Contact Retailer...

    This is getting really old really quick.  After update to Belle I have been getting more and more "Phone start-up failed. Contact the retailer." messages.  I had thought these were associated with a theme I had installed, but it started happening wit

  • Authorization on Orignal attached File

    Hi SAP Gurus, I am attaching AutoCAD[DWG file] & PDF file in one DIR. I would like authorization on Application Type. Mins one some group of people only open the AutoCAD file, all other user open only PDF file. Is there any standard authorization obj