Loading images with file:// on Linux and Windows

Hi,
i've found (maybe) a bug. In my application i load some files from the temp dir. In Linux from /tmp, in Windows from C:\Temp.
If i use
file://<TempDir><file>(results in)
file:///tmp/myfile
and
file://C:\Temp\myfileit works in Linux but not in Windows.
If i use
file:/<TempDir><file>(results in)
file://tmp/myfile
and
file:/C:\Temp\myfileit works in Windows but not in Linux..
Is there a "clean" solution without manually check which operating system is used (e.g. some config to set)?
Thanks in advance
Edited by: toxiccrack on Sep 25, 2009 1:41 AM

Thank you Tunde for looking at my issues!
The file size is not an issue here. We tested with empty files or files with smaller than 1KB sizes. They all showed problem. The frequency of file transfer shouldn't be a problem either. Through some user interaction on front panel, a couple of files will be transferred. That's basically how often the file transfer occurs.
Interestingly enough, I replaced the copy.vi with a subvi I created using DOS command with System Exec.vi and the issue of copying files went away. My co-worker tested on both XP machine and Windows 7 machine. The DOS command worked fine thru Lavview's System Exec.vi. I think I can take that as a work-around if we can't figured out why copy.vi wouldn't work. Still, it would be nice to know why it doesn't work.
Now I'm still facing some issues with the usage of Check If File or Folder exist.vi. Sometimes it can detect the existing files and sometimes it doesn't.
Thanks very much! 

Similar Messages

  • Can load image from file using LabVIEW and display on IMAQ graph?

    I dont have IMAQ Vision for LabVIEW on my computer. Is it possible to load image file and display on an IMAQ graph?
    Thanks!

    Hey werwr,
    In response to: "I dont have IMAQ Vision for LabVIEW on my computer. Is it possible to load image file and display on an IMAQ graph?"
    As of right now, in order to read an image from file, you actually do need the IMAQ Vision software. The IMAQ driver without the Vision VI's will allow you to collect images from a framegrabber, and it will allow you to save those images to file. But the function that allows you to read an image from file does require the Vision VI's. Once you have the VI to read images from a file, you will be able to display the image on an IMAQ "Graph" or otherwise known as an Image Display.
    I hope this helps. Please let me know if you have any further questions.
    Thanks,
    DJ
    Applications Engineer
    National Instruments

  • Files under linux and windows

    Hi,
    I have a program that works under both windows and linux. I wanted to know what is the best way for the file paths I use.
    What is the difference between using "/" and "java.io.File.separator"?
    Any more info/tips on the difference between working under windows and linux will be great. I tried searching for it online but couldn't find anything useful.
    Thanks,
    Shaul

    BigDaddyLoveHandles wrote:
    I thought that if you used a '/' in a path string it was interpreted correctly, even in Windoze.Other platforms are available :-)
    I can't recall the details now, but we had an inexplicably-breaking build on Windows earlier this year for code that was fine under Linux, and tracked it back to the use of "/" rather than File.separator. It was an odd corner case which escapes me, but a lesson learnt nonetheless

  • Mxmlc File for Linux and Windows

    Hi
    I have used flexSDK for windows xp OS and i have build mxml file using ant build.xml and i have succeded in it then i implemented the same in Linux OS, but im getting error while mxml file is builld. i have shell script for mxml file which is present in bin folder of the SDK..
    Please give me the correct shell script file to build a mxml file
    Error i get
    [echo] mxml file compliation
         [exec] Loading configuration file /root/GRC/jboss/server/default/deploy/nat.war/flexSDK/frameworks/flex-config.xml
         [exec] Error: method java.math.MathContext.<init> with signature (ILjava.math.RoundingMode;)V was not found.
         [exec] java.lang.NoSuchMethodError: method java.math.MathContext.<init> with signature (ILjava.math.RoundingMode;)V was not found.
         [exec]    at macromedia.asc.util.Decimal128Context.<init>(Decimal128Context.java:22)
         [exec]    at macromedia.asc.util.Decimal128Context.<clinit>(Decimal128Context.java:69)
         [exec]    at java.lang.Class.initializeClass(libgcj.so.7rh)
         [exec]    at macromedia.asc.semantics.ConstantEvaluator.evaluate(ConstantEvaluator.java:3268)
         [exec]    at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
         [exec]    at flex2.compiler.abc.Compiler.analyze4(Compiler.java:414)
         [exec]    at flex2.compiler.API.analyze(API.java:2542)
         [exec]    at flex2.compiler.API.analyze(API.java:2432)
         [exec]    at flex2.compiler.API.batch2(API.java:411)
         [exec]    at flex2.compiler.API.batch(API.java:1117)
         [exec]    at flex2.compiler.API.compile(API.java:1290)
         [exec]    at flex2.compiler.API.compile(API.java:1210)
         [exec]    at flex2.tools.Compiler.mxmlc(Compiler.java:240)
         [exec]    at flex2.tools.Compiler.main(Compiler.java:53)
    Shell SCript file to this is attached with this post.
    ===========================================
    #!/bin/sh
    ##  ADOBE SYSTEMS INCORPORATED
    ##  Copyright 2007 Adobe Systems Incorporated
    ##  All Rights Reserved.
    ##  NOTICE: Adobe permits you to use, modify, and distribute this file
    ##  in accordance with the terms of the license agreement accompanying it.
    # mxmlc launch script for unix.  On windows, mxmlc.exe is used and
    # java settings are managed in jvm.config in this directory.
    case `uname` in
            CYGWIN*)
                OS="Windows"
                OS=Unix
    esac
    D32=''
    if [ $OS = "Windows" ]; then
        # set FLEX_HOME relative to mxmlc if not set
        test "$FLEX_HOME" = "" && {
        FLEX_HOME=`dirname $0`/..
            FLEX_HOME=`cygpath -m $FLEX_HOME`
    elif [ $OS = "Unix" ]; then
        # set FLEX_HOME relative to mxmlc if not set
        test "$FLEX_HOME" = "" && {
        FLEX_HOME=`dirname "$0"`/..
        check64="`java -version 2>&1 | grep -i 64-Bit`"
        isOSX="`uname | grep -i Darwin`"
        if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" ]; then
            D32='-d32'
        fi
    fi
    # don't use $FLEX_HOME in this variable because it may contain spaces,
    # instead put it on the java args directly, with double-quotes around it
    VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
    java $VMARGS $D32 $SETUP_SH_VMARGS -jar "$FLEX_HOME/lib/mxmlc.jar" +flexlib="$FLEX_HOME/frameworks" "$@"
    Make changes to this and let me work with linux
    With Regards
    Gopinath.A
    software developer
    chennai,

    Hi
    I have used flexSDK for windows xp OS and i have build mxml file using ant build.xml and i have succeded in it then i implemented the same in Linux OS, but im getting error while mxml file is builld. i have shell script for mxml file which is present in bin folder of the SDK..
    Please give me the correct shell script file to build a mxml file
    Error i get
    [echo] mxml file compliation
         [exec] Loading configuration file /root/GRC/jboss/server/default/deploy/nat.war/flexSDK/frameworks/flex-config.xml
         [exec] Error: method java.math.MathContext.<init> with signature (ILjava.math.RoundingMode;)V was not found.
         [exec] java.lang.NoSuchMethodError: method java.math.MathContext.<init> with signature (ILjava.math.RoundingMode;)V was not found.
         [exec]    at macromedia.asc.util.Decimal128Context.<init>(Decimal128Context.java:22)
         [exec]    at macromedia.asc.util.Decimal128Context.<clinit>(Decimal128Context.java:69)
         [exec]    at java.lang.Class.initializeClass(libgcj.so.7rh)
         [exec]    at macromedia.asc.semantics.ConstantEvaluator.evaluate(ConstantEvaluator.java:3268)
         [exec]    at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
         [exec]    at flex2.compiler.abc.Compiler.analyze4(Compiler.java:414)
         [exec]    at flex2.compiler.API.analyze(API.java:2542)
         [exec]    at flex2.compiler.API.analyze(API.java:2432)
         [exec]    at flex2.compiler.API.batch2(API.java:411)
         [exec]    at flex2.compiler.API.batch(API.java:1117)
         [exec]    at flex2.compiler.API.compile(API.java:1290)
         [exec]    at flex2.compiler.API.compile(API.java:1210)
         [exec]    at flex2.tools.Compiler.mxmlc(Compiler.java:240)
         [exec]    at flex2.tools.Compiler.main(Compiler.java:53)
    Shell SCript file to this is attached with this post.
    ===========================================
    #!/bin/sh
    ##  ADOBE SYSTEMS INCORPORATED
    ##  Copyright 2007 Adobe Systems Incorporated
    ##  All Rights Reserved.
    ##  NOTICE: Adobe permits you to use, modify, and distribute this file
    ##  in accordance with the terms of the license agreement accompanying it.
    # mxmlc launch script for unix.  On windows, mxmlc.exe is used and
    # java settings are managed in jvm.config in this directory.
    case `uname` in
            CYGWIN*)
                OS="Windows"
                OS=Unix
    esac
    D32=''
    if [ $OS = "Windows" ]; then
        # set FLEX_HOME relative to mxmlc if not set
        test "$FLEX_HOME" = "" && {
        FLEX_HOME=`dirname $0`/..
            FLEX_HOME=`cygpath -m $FLEX_HOME`
    elif [ $OS = "Unix" ]; then
        # set FLEX_HOME relative to mxmlc if not set
        test "$FLEX_HOME" = "" && {
        FLEX_HOME=`dirname "$0"`/..
        check64="`java -version 2>&1 | grep -i 64-Bit`"
        isOSX="`uname | grep -i Darwin`"
        if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" ]; then
            D32='-d32'
        fi
    fi
    # don't use $FLEX_HOME in this variable because it may contain spaces,
    # instead put it on the java args directly, with double-quotes around it
    VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
    java $VMARGS $D32 $SETUP_SH_VMARGS -jar "$FLEX_HOME/lib/mxmlc.jar" +flexlib="$FLEX_HOME/frameworks" "$@"
    Make changes to this and let me work with linux
    With Regards
    Gopinath.A
    software developer
    chennai,

  • Disk Utility Images of Mac OS, Linux and Windows?

    Quick questions: am I able to use Disk Utility to make an image of a Windows partition that is NTFS? And, be able to restore it back if I need to? Same goes for the Linux: can I make an image of an ext3 partition, then restore it if need be?

    Not of NTFS. OS X cannot write NTFS, only read. Same for LInux. OS X does not support the Linux extn filesystems. You will need to find Windows and Linux software for that. OS X can image a FAT formatted Windows disk. Of course I don't know if there's a DVD big enough for a Windows system or for OS X.

  • Running jar in Linux and Windows

    Hi
    I created a jar file in Linux and it is running fine under Linux.
    But when I tried to run the same jar under windows,I got the following error
    Exception in thread "main" java.lang.NoClassDefFoundError:
    Is there any difference between running jar files in Linux and Windows?

    Hi
    I have a jar(say program.jar) containing a program which uses some libraries(again some jar files).The manifest file is written to look for the library jar files in the current directory.
    Main-Class: package_name.program_name
    Class-Path: fits.jar image.jar util.jar myutil.jar
    But while running the jar file in WINDOWS (java -jar program.jar <parameter list>)
    the following error occurs:
    Exception in thread "main" java.lang.NoClassDefFoundError:
    nom/tam/fits/Data"
    the class Data is present in the fits.jar jarfile.
    The same jar(run in the same manner)does not give any problems in Linux

  • How to set owner-only access file permissions both on Linux and Windows

    Hi everybody.
    I have the following problem. I need to store some private user information in file system. So I need to set owner-only access permissions for some directory in user home. I did not find API for doing this. As I understand this is platform specific thing. Could anybody tell me how can I do this both on Linux and Windows?
    Thank you in advance.

    More ideas just came back to me (of something I did before)
    Each OS requires a different control.
    For Windows you will need to set the .policy file for each user (a pain if you have more than a dozen of clients) granting access (R or RW) to files/directories.
    Then you have to write some native code (access via JNI) to access/modify your authorization.
    A more professional solution that I used was J-Integra (other similar tool exist).
    Basically it is a bridge between Java and COM. It magically give you access to the COM API from Java (and vice versa).
    In my case it was to read/write/modify Winword documents transfered between PC and server.
    From memory you have to run the com2java.exe to build the bridge (classes in Java language) between the 2 families. Compile those classes and you have a "driver" for the COM (Microsoft Objects).
    Here I must confess my ignorance on Microsoft.
    Those COM objets must give you some easy/integrated access to the API for LDAP or Microsoft Active Directory Service (for centralize control with more complex setup).

  • Multiboot with LINUX and Windows

    Does solaris support multiboot with UNIX, LINUX and Windows.
    All of them in the same disk on primary hdd.
    thanks

    Hello pradyut. It is not possible to boot Solaris 10 from Linux GRUB since Sun uses a modified GRUB which can deal with SUN partition 'slices'. The opposite (Sun grub booting Linux), however, is really easy to do. If you installed Solaris last you can edit Solaris /boot/grub/menu.lst and just add another entry the same as the Windows menu entry, except for the changed name and partition number.
    So, for example, with a Windows entry similar as follows:
    title Windows
         rootnoverify (hd0,0)
         chainloader +1
    just copy/paste it where you want it to go and edit as follows:
    title Linux xx.. <- you put whatever title you wish here
         rootnoverify (hd0,X)
         chainloader +1
    ..where X = the correct partition number of the Linux /boot code. If your Linux /boot directory is installed in the second physical partition (directly after Windows), for example, X would be 1 if a primary partition, or 4 if the first logical partition.
    If you are not really sure what partition number to use (this can be confusing and difficult to even describe), you could easily discover the correct partition number by trial and error, or run (in a Linux console) df -h. A wrong partition number entry will produce a harmless GRUB error and return you to the Solaris boot menu to try again.
    If you look at the Grub documentation, you will find that it is really even easier to make these changes on the fly (while actually booting). Highlight the Grub menu item via the down-arrow, press ESC, then E. This will allow you to edit that line, and quickly change the 'X' number and try it. Type <Enter> once your edit is done, and then highlight the menu entry to boot, and type B.
    Either way, you can return to Solaris /boot/grub.menu.lst and put in the correct number and it will always boot the Linux loader even after updates, reinstalls, and kernel upgrades.
    Also remember that if you are using logical partitioning in one of the physical partitions, the first logical partition is always HD0,4 (assuming hard disk 0) whether there are 4, or less than 4 physical partitions.
    I hope this helps!
    pm..

  • Share files between Mac and Windows in same iMac with boot camp

    Hello,
    I am new in using Mac and recently I buy a IMac 24" model.
    I used to use PC a long time with a lot of old document.
    I want to install Windows XP with boot camp.
    But I also want to share my documents, music, video files between Mac and Windows in same iMac.
    How can I do this?
    Thanks in advance,
    Eric

    Hi Eric and welcome to Discussions and the Apple world.
    Mac OSX can read and write from Windows partitions (like the BootCamp Windows partition you are about to create) when using FAT32 as file system for Windows.
    However with FAT32 you are limited to a partition size of 32GB.
    Mac OSX can also read from Windows partitions that uses the NTFS file system, but it can not write to them unless you use a third-party helper like either Paragons NTFS for Mac http://www.paragon-software.com/home/ntfs-mac/ or NTFS-3G http://www.ntfs-3g.org/
    Windows can not even see or use a Mac OSX partition without additional help by MacDrive http://www.mediafour.com/products/macdrive/
    Regards
    Stefan

  • Comparison of Installing HCM and Campus Solution 9.0 with Linux and Windows

    Folks,
    Hello. I am installing HCM and Campus Solution 9.0 Revision 5 with PeopleTools 8.53.
    PeopleSoft Internet Architecture is WebLogic11g/Tuxedo11g/OracleDatabase11g with OS Oracle Linux 5.10.
    In the process of seting up its database instance named "HRCS90" using /opt/PT8.53/setup/PsMpDbInstall/setup.sh, there is a step as below:
    Database Create Type:
    1) Demo
    2) System
    3) PeopleTools System
    Either select Demo or System, the next step "select PeopleSoft Applications" has only one item:
    1) PeopleSoft HRCS Demo Database - US English.
    When set up "HRCS90" with SQL Server 2005 and Windows Server 2003, there is one more item: PeopleSoft HRCS Database - US English.
    I don't need Demo database. I need HRCS database only because Demo database occupies much more disk space.
    The document "PeopleSoft Human Capital Management and Campus Solutions 9.0 Revision 5 Installation Guide" does not state the detailed process to set up HRCS database instance.
    I cannot find other PeopleSoft documents regarding set up HRCS database instance.
    My questions are:
    First, how much more disk space does "HRCS Demo database" occupy than "HRCS database" ? Is there "HRCS database" for Linux and Oracle Database ?
    Second, can you find PeopleSoft document regarding the process of seting up HRCS 9.0  database instance with Linux and Oracle Database ?
    Thanks.

    It could come from how you installed the software itself (options checked). Have a look to that thread, it could help.
    Nicolas.

  • [SOLVED]Arch Linux, and Windows 8.1 Dual Boot issue

    Hi guys. I recently bought a new laptop, and decided to run Arch Linux and Windows 8.1. I installed Windows 8.1 first as recommended by the beginners guide, and then installed Arch Linux. I made sure UEFI was enabled in my BIOS, and made sure everything was on a GPT partition. The install itself went fine. My laptop loads grub, and Arch Linux shows up and boots, but there is no option to boot into Windows 8.1. The only way I can boot into Windows 8.1 is by accessing my motherboard, and choosing to launch the windows boot manager instead of the grub launcher. How can I get Windows 8.1 to show up in grub? Thanks in advance guys.
    Last edited by Painguy (2014-08-20 20:19:37)

    Painguy wrote:
    -----------Edit------------------
    Yeah just ran this after installing os prober
    grub-mkconfig -o /boot/grub/grub.cfg
    and it works now. Sorry for the crazy posts guys. Thanks for the suggestions and help.
    Yeah I'm sure I'm doing something wrong lol. I did not install OS-Prober. I think that's where the issue is. I'm missing the menu entry in grub.cfg right? Do I just run os prober or do I have to manually edit grub.cfg.
    If that's not the case then here is what I did up until now. What I did was start with a blank SSD drive. I used cgdisk to make the disk use a GPT partitioning scheme. I installed windows 8.1 and checked in windows to make sure it boots into UEFI-GPT mode and it does.  I then installed arch linux using the beginners guide. I made sure to use cgdisk to create any extra partitions, and installed GRUB to the efi partition that windows had created ( I did not format this partition ). I then finished the installation and rebooted, and Grub only shows arch linux. I don't think I'm dealing with anything MBR related. I made sure I used the GPT partitioning scheme....i think lol.
    All you need to do is run os-prober then run grub-mkconfig. It should pick up Windows at that point.

  • Oracle DB sessions on Linux and Windows

    Actually I am confused the way session memory is allocated on 32 bit windows and linux OS.
    Windows is a thread based architecture where all user sessions are treated as threads of oracle.exe process. The addressable space is 4GB and oracle.exe can use up to 3GB in case you use /3GB switch in boot.ini file. It means that combined size of SGA ,PGA and other memory structures can not be more than 3GB. When a session gets connected with a database a PGA is allocated. It means that memory required by database sessions also comes from the 3GB limit. If your memory usage goes beyond 3GB you wont be able to connect new sessions with database or you would require to reduce the size of one of your SGA components.
    Linux is a process based architecture where each user session is treated as a separate process and has its own addressable space. Even on 32bit linux the addressable space is 4GB i.e. 2GB for process and 2GB for kernel. It means we need to accommodate our SGA and PGA in the 2GB limit (there are ways to increase the size of SGA but let assume we are doing nothing to raise the 2GB limit).
    As PGA is allocated for every session when it connects with database.
    My question is how PGA memory is allocated against a database session on linux.
    To further clarify my question I am stating the results of an experiment that I did on linux and windows.
    On windows I set the total size of SGA to 1730M and PGA aggregate target to 1024M. I was able to able to startup the database instance without any issue. Then I started connecting sessions with the database and even ran a query doing a heavy sort in one of the sessions but after connecting 10 sessions with DB I started getting ORA-12500 TNS Listener failed to start a dedicated server process error on windows.
    Then I did the same experiment on Red Hat Linux. SGA size was 1633MB and where as PGA aggregate target was only 10MB. I was unable to start instance when I set the SGA size more than 1633MB.
    With that setting I was able to connect more than 200 sessions with database inspite of running query doing heavy sort in 4 sessions without getting ORA-12500 error. I was even able to connect more than 400 sessions with database after setting PGA aggregate target to 1GB on Linux.
    Now my confusion is why linux was able to handle more DB sessions. I know it’s a process base model and each session is a separate process and has its own addressable space but as PGA is allocated against every session and PGA memory comes from 2GB limit then why PGA memory did not exhaust on linux. Is PGA allocated differently on linux as compared to windows?

    Perhaps the problem is easier to understand if you leave PGA_AGGREGATE_TARGET out of this issue completely.
    The out of memory problem you had, has nothing to do with PGA_AGGREGATE_TARGET setting directly. The difference in number of processes comes from architectural differences in how Oracle uses memory in windows vs unix.
    On windows the SGA + ALL PGAs must fit into one 4GB address space (in practice even smaller as youve noticed). This is because there's only one process, oracle.exe. One process = one address space.
    On Unix, you have many processes and every process can use portion of their own address space for PGA.
    So, on windows (32bit) you run out of address space for the single oracle.exe process. On unix you dont hit this limit just because the number of processes grows (but if some process wants to use a lot of PGA memory, then they eventually run out of address space (talking about 32bit again))
    On unix you probably ran into another limit - amount of total usable virtual memory (RAM+swap) available in your system
    Tanel Poder
    http://blog.tanelpoder.com

  • Loading images with different horizontal sizes

    I would like to load images with different horizontal
    resolutions (vertical resolution to be the same) dymanically into
    an empty movie clip. I would like them to load with the right hand
    side of the image lined up with the right hand side of my site. I
    have seen many tutorials about how to accomplish the loading of the
    movies, but I cannot figure out how to make them open with the
    right hand side always lined up on the right.
    To be more specific, let's say I have three images of the
    varying pixel resolutions (1200x600, 800x600, and 400x600 for
    example). I would like the horizontal size to always extend away
    from the right hand side of the site with the right hand edge of
    the images always lined up.
    Is this possible to do by loading them into an empty movie
    clip?
    thanks

    When you load an image file into an empty movieClip, that
    clip takes on the dimensions of the loaded content. The
    registration point for the clip is set to the upper left corner.
    So, once the new image is loaded, just set that clip's .x to the
    stage width - the width of the clip.

  • Loading Images with 1.3.1 Problem

    Hi!
    I've got a couple of swing applets that use Images. One uses the images for icons and one just draws the images. The images are loaded from jar files. Using version 1.3.0, everything works fine. When I load the applet using 1.3.1 or 1.4, however, the images do not appear on the screen. According to the Java Console, the images did load. I saw messages like:
    Loaded image: jar:file:/C:/rgajava/MKSLeak/jar/leak.htmlMKSLeak.jar!/images/audiooff.gif
    Loaded image: jar:file:/C:/rgajava/MKSLeak/jar/leak.htmlMKSLeak.jar!/images/audioon.gif
    that were displayed when I upped the trace level. The images still do not appear.
    Does anyone know how to fix this? I am loading the images using getImage(URL,String).
    Thanks,
    Derek

    As a partial answer to my own question, the Java tutorial declares that some browsers cannot load images from jar files. This appears to be the case with IE5.5 and Java 1.3.1, but it is strange that IE5.5 and Java 1.3.0 seem to have no problem. Nevertheless, the applet works well and images load if the images are accessed outside of the jar file.
    Derek

  • I accidently downloaded something that made my webcam flash on spuradically even once i deleted it. when i restarted my computer it got stuck at the white loading screen with the grey apple and wont go past there..what is wrong? will applecare cover this?

    i accidently downloaded something that made my webcam flash on spuradically even once i deleted it. when i restarted my computer it got stuck at the white loading screen with the grey apple and wont go past there..what is wrong? will applecare cover this?  my computer also slowed down drastically before it stopped working..thanks! HELP PLEASE!

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a boot failure is to secure your data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since your last backup, you can skip this step.   
    There are several ways to back up a Mac that is unable to boot. You need an external hard drive to hold the backup data.
         a. Boot into the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
    b. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    c. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to boot, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can boot now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    If you've booted from an external storage device, make sure that your internal boot volume is selected in the Startup Disk pane of System Preferences.
    Step 3
    Boot in safe mode. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you boot in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, your boot volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 5.
    If you can boot and log in now, empty the Trash, and then open the Finder Info window on your boot volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then reboot as usual (i.e., not in safe mode.)
    If the boot process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 4
    Sometimes a boot failure can be resolved by resetting the NVRAM.
    Step 5
    Launch Disk Utility in Recovery mode (see Step 1.) Select your startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then reboot as usual.
    Step 6
    Reinstall the OS. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 7
    Repeat Step 6, but this time erase the boot volume in Disk Utility before installing. The system should automatically reboot into the Setup Assistant. Follow the prompts to transfer your data from a Time Machine or other backup.
    Step 8
    This step applies only to older Macs (not current models) that have a logic-board ("PRAM") battery. Both desktop and portable Macs used to have such a battery. The logic-board battery is separate from the main battery of a portable. A dead logic-board battery can cause a gray screen at boot. Typically the boot failure will be preceded by loss of the startup disk and system clock settings. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 9
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store to have the machine tested. If you can't get to an Apple Store, go to another authorized service provider.

Maybe you are looking for

  • How do I get my apple TV remote to stop controlling my Mac mini?

    Just made the switch from PC to Mac.  I love our new Macs, however our apple TV remote is driving me up the wall.  It keeps controling my Mac mini.  Our I tunes goes crazy on the mini when we are trying to put movies on the apple TV.  Can anyone help

  • How can I uninstall a software update?

    I recently installed "Java for Mac OS X 10.6 update 12".  There was something in the description of the update about security and having to approve each use of Java apps.  Now I have a problem with printing pdfs I get in emails.  Nothing comes up to

  • Missing .abr (brushes) files

    I'm using Photoshop CS6. My problem is in loading new brushes. When I click the 'load brushes' option, Photoshop navigates to a file location that appears to be the "Brushes" folder, but it has only two files in it, both of which I created using the

  • Filtering data with Dates

    Hi guys I need some assistance: i have a table with the following: A     B     C     D 93660000     abc      abc      1/01/2003 1:00:34 AM 93660000     abc      abc      1/01/2003 1:00:34 AM 93661111     def      def      2/02/2003 2:05:40 AM 9366111

  • CATS Workflow

    Hi all Im configuring CATS for my client. I setup data entry profile as below as shown in the attachment. I have also created  Org structure for the approval process. In SWe2, I have configured the event to trigger the workflow.. Finally when I enter