Input/Output of files

Hello,
I am new to Java, and have just recently started learning it. I am student working with a math prof, and I need help with a program that would help our research.
First of all, is it possilbe to input numbers from a textfile which just contains numbers like so:
1
2
3
4
5
6
Into an 2x3 array, like [1 2 3]
[4 5 6]
Could someone help me with the code? Once I have these saved into an array then I am able (with my limited Java knowledge) to do what I need to do with the arrays, it is just a question of transfering the numbers in the first place.
Thanks to anyone who could help, as you'd save me a great deal of time.
Mike Lukas

You will want to look at java.io.FileInputStream. Your input logic will resemble something like the following:
public List getNumbers(final String fileUri)
   throws IOException {
   FileInputStream fileIn = null;
   try {
       List values = new ArrayList();
       fileIn = new FileInputStream(fileUri);
       BufferedReader reader = new BufferedReader(new InputStreamReader(fileIn));
       String line = reader.readLine();
       while (line != null) {
            values.add(Integer.valueOf(line));
            line = reader.readLine();
   finally {
       if (fileIn != null) {
           fileIn.close();
}See the Javadocs for java.util.List for how collections work. Or go to the Collections tutorial on this site.
- Saish

Similar Messages

  • Java.sql.SQLException: File input/output error: File input/output error: re

    Hi,
    We are using JCAPS 512. We use oracle eway to connect to Oracle 10g database. But sometimes we are getting the following exception
    and suddenly all jcds stop processing. If we restart the server again job continue processing, otherwise server hangs and nothing get processed.
    Exception is as follows
    java.sql.SQLException: File input/output error: File input/output error: reading: java.io.EOFException in statement [SET TABLE EVENT_STORE INDEX '11183416 55935']
         at org.hsqldb.Trace.getError(Unknown Source)
         at org.hsqldb.Log.runScript(Unknown Source)
         at org.hsqldb.Log.open(Unknown Source)
         at org.hsqldb.Database$Logger.openLog(Unknown Source)
         at org.hsqldb.Database.open(Unknown Source)
         at org.hsqldb.Database.<init>(Unknown Source)
         at org.hsqldb.jdbcConnection.openStandalone(Unknown Source)
         at org.hsqldb.jdbcConnection.<init>(Unknown Source)
         at org.hsqldb.jdbcDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:525)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at com.stc.eventmanagement.impl.DBEventStore$EventStoreDB.addNewConnection(DBEventStore.java:359)
         at com.stc.eventmanagement.impl.DBEventStore$EventStoreDB.getConnection(DBEventStore.java:444)
         at com.stc.eventmanagement.impl.DBEventStore$EventStoreDB.executeParameterizedQuery(DBEventStore.java:777)
         at com.stc.eventmanagement.impl.DBEventStore$EventStoreDB.access$000(DBEventStore.java:250)
         at com.stc.eventmanagement.impl.DBEventStore.getEventIDsList(DBEventStore.java:133)
         at com.stc.eventmanagement.impl.DBEventStore.getEventIDsList(DBEventStore.java:115)
         at com.stc.eventmanagement.impl.EventForwarderMBean.cachePersistedEvents(EventForwarderMBean.java:728)
         at com.stc.eventmanagement.impl.EventForwarderMBean.setup(EventForwarderMBean.java:334)
         at com.stc.eventmanagement.impl.EventForwarderMBean.invoke(EventForwarderMBean.java:565)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at com.stc.eventmanagement.impl.EventManagementService.setupEventForwarderMbean(EventManagementService.java:270)
         at com.stc.eventmanagement.impl.EventManagementService.registerMBean(EventManagementService.java:147)
         at com.stc.eventmanagement.impl.EventManagementService.startService(EventManagementService.java:96)
         at com.stc.eventmanagement.impl.EventManagementResourceAdapter.start(EventManagementResourceAdapter.java:75)
         at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:94)
         at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:74)
         at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:269)
         at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:372)
         at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:204)
         at com.sun.enterprise.server.ConnectorModuleLoader.load(ConnectorModuleLoader.java:87)
         at com.sun.enterprise.server.ConnectorModuleLoader.load(ConnectorModuleLoader.java:108)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:216)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:106)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:183)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:295)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:238)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:186)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    |#]
    Please provide some suggestions to overcome this  error
    Regards
    Venkatesh.S

    Delete the EventStoreDb.data file (its somewhere in your logical host) and restart the logical host.

  • Help with input output .txt files!

    Hi i'm a student and totally new to programming. I need the program to read a .txt file and then output it:
    import java.io.*;
    import java.util.*;
    public class Reading{
         public static void main(String[] args)throws Exception{
              Scanner scanner = new Scanner(new File(args[0]));
              while(scanner.hasNext()){
                   System.out.println(scanner.next());
              scanner.close();
    and
    import java.io.*;
    public class Writing{
         public static void main(String[] args)throws Exception{
              String outputFile = args[0];
              PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(outputFile)));
              for(int i = 0; i < 100; i++){
                   writer.println(i * i);
              writer.close();
    How would i merge these together? I also changed the command line to java Reading Input.txt but it wont run on DrJava on my computer or laptop and i get an error? How do i then store the strings into an arraylist and iterate throught the arraylist to reverse the strings?
    Please help.

    You could do this...
    import java.io.*;
    import java.util.*;
    public class FileIO2
         public static void main(String argsp[])
              String readfile="ajr.txt";
              String writefile="ajr2.txt";
              try{
              read(readfile);
              write(writefile);
              catch(Exception e)
              {e.printStackTrace();}
         public static void read(String filename) throws Exception
              Scanner scanner = new Scanner(new File(filename));
              while(scanner.hasNext()){
                   System.out.println(scanner.next());
              scanner.close();
         public static void write(String filename) throws Exception
              String outputFile = filename;
              PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(outputFile)));
              for(int i = 0; i < 100; i++){
                   writer.println(i * i);
              writer.close();
    }

  • How to set input/output "use" attribute in the WSDL file of BPEL process?

    Hello,
    I have a BPEL process that I want to deploy it as an RPC web service. I want to access it from a Java module (via an automatic generated Java stub from the WSDL file exposed by the BPEL process).
    I wrote manually the corresponding WSDL file for my BPEL process, where I stipulated for the operations exposed by my process ( in <soap:binding> tag) the value of the attribute "style" to "rpc". Also, for each <input> and <output> of the operations (inside the <operation> tag), I set manually the attributes "use" to the values "encoded". Something like this:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers"/>
    <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </input>
    <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </output>
    </operation>
    The issue is that, when the BPEL process is built and deployed, the WSDL file generated automatically by BPEL (based on the one manually writen) set the values of the "use" attributes to "literal". This is what is generated:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers" />
    <input>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </input>
    <output>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </output>
    </operation>
    Is there any chance to keep the original values (written by hand) for the "use attributes?
    Many thanks in advance!
    Regards,
    Marinel

    I am not sure I understand your question. If you want all your BPEL service to be rpc still by default, you can change the templates: C:\eclipse\plugins\bpelz_0.9.XXX\templates.
    The BPEL PM engine support both style of invocation.
    I hope this helps. -Edwin

  • I'm trying to backup a my harddrive with disk utility but I'm getting an error  Unable to create Backup.dmg" (input/output error). Is there any other way to save my data? I believe my hard drive is failing or corrupt file. I can't boot up. Grey screen

    I'm trying to backup a my hard drive with disk utility but I'm getting an error  Unable to create Backup.dmg" (input/output error). Is there any other way to save my data? I believe my hard drive is failing or corrupt file. I can't boot up. Grey screen and spinning wheel. I've tried everything https://discussions.apple.com/message/20580424#20580424
    any help will be greatly appreciated.

    Check here. Also have you done a TimeMachine back up?
    http://support.apple.com/kb/TS2570

  • SOLVED: Getting an Input/Output error when accessing certain files

    My system started failing a few days ago because of sudden Input/Output errors when trying to access certain files. It was running fine until various applications started crashing like for example Pidgin (in retrospect probably because of DBus crashing). I decided to reboot and now can't login anymore because the DBus module fails to load which in turn means that HAL doesn't load either and so I can't use my keyboard to login.
    The error message I get from DBus is that it can't access the file /etc/dbus-1/system.d/org.freedesktop.PolicyKit.conf because of an Input/Output error. I tried to fix/see what was wrong using the arch livecd. Because I thought my problem had to do with a pacman update that had failed before I'd rebooted, I updated my system and I noticed that when pacman tried to access other files it came back with the same error message. The files seemed pretty random, one of them was fakeroot.conf and then several library files like libfaad (sorry this is kind of vague but I'm away from home right now and can't go online very often so I'm writing this from memory).
    I'm guessing its a hard drive problem because checking the filesystem for errors came back with nothing. I was just wondering whether anyone had any other ideas before I go and reinstall. I'm going back home tomorrow so I'll be able to follow any advice/reinstall then.
    Last edited by siell (2010-04-08 17:01:37)

    UPDATE
    It seems to be fixed! The second run of e2fsck fixed some more issues and the files that were causing the problems earlier seemed to have bad inodes. Boots fine now and I can get into my system. I checked and I still have a reasonable amount of free space so I don't think that was the reason ... I have no idea how the filesystem got so corrupted out of nowhere.
    A few things are different, for example, it asked me to unlock the keyring and I couldn't mount my external encrypted drive anymore and had to do it manually with cryptsetup. e2fsck made quite a few changes so I imagine it's due to that. Shouldn't be to hard to fix though.
    Thanks for your help!

  • Problem Removing Files: Input/Output Error

    I recently posted this article
    http://discussions.apple.com/thread.jspa?messageID=4596969#4596969
    about my struggles to repair my hard drive. I'm currently in Single-User Mode, in the process of manually removing files that returned the error "Overlapped Extent Allocation" during fsck. Everything's going well for the most part, but a few of the files I'm finding can't be removed. When I try, I receive this message:
    hfs: WARNING - blocks on volume Garfunkel not allocated!
    rm: [path name]: Input/output error
    It all sounds very dire and life-threatening, but I have no idea what this means. I can only assume it means there is a permissions issue. Am I close? Is there a way I can remove these files? So far all of the files have been iCalendar files or iApps preference files. If it's important, I can list the exact files. I hope someone can help me, because I know very little about Unix.
    Thanks to everyone who makes an attempt at rescuing me!

    Thanks. I did that, as per the Apple Support article instructions, but apparently I have to do it before every remove command. And sometimes, I have to input the command twice for it to work. Thanks for the tip.

  • Failed to execute default file manager (Input /Output Error) [SOLVED]

    I'm having an issue in XFCE where the default Terminal, Browser and File Manager launch correctly - but with this error:
    Failed to execute default [file manager] [terminal emulator] [browser]
    Input /Output Error
    I have the requisite  "Preferred Application" set as Chrome/Thunar/xfce4-terminal.
    If I run
    exo-open --launch FileManager
    From terminal, it says:
    [1]    4281 segmentation fault (core dumped)  exo-open --launch FileManager
    Remember, it launches the app successfully - and the apps themselves launch correctly, it's only exo-open that I have a problem with!  Everything else works great on this system.
    Last edited by yochaigal (2015-04-28 11:10:06)

    demolitions wrote:
    I got the same problem, I observed the problem appearing with those lines in "dmesg", the same library (libpthread-2.21.so) is also present in other software errors (critical and not) since my last update (friday 24th).
    I'll try downgrading glibc, see if that works around the problem.
    [ 587.042204] traps: xfce4-terminal[1022] general protection ip:7f6500100150 sp:7ffe14c978d8 error:0 in libpthread-2.21.so[7f65000ee000+18000]
    [ 592.113288] traps: xfce4-terminal[1026] general protection ip:7fbf1c97a150 sp:7ffe2f916188 error:0 in libpthread-2.21.so[7fbf1c968000+18000]
    [ 620.913826] traps: xfce4-notifyd[494] general protection ip:7fa4859a2150 sp:7fff84dd7708 error:0 in libpthread-2.21.so[7fa485990000+18000]
    [ 974.008983] traps: xfce4-terminal[1384] general protection ip:7f519df84150 sp:7ffe3573e4f8 error:0 in libpthread-2.21.so[7f519df72000+18000]
    [ 974.850083] traps: xfce4-terminal[1387] general protection ip:7f6ed57f8150 sp:7ffec58369c8 error:0 in libpthread-2.21.so[7f6ed57e6000+18000]
    [ 975.521687] traps: xfce4-terminal[1390] general protection ip:7f5e91d00150 sp:7ffd70179d18 error:0 in libpthread-2.21.so[7f5e91cee000+18000]
    [ 979.179030] traps: exo-open[1393] general protection ip:7fbdd2a24150 sp:7ffe9e0c5608 error:0 in libpthread-2.21.so[7fbdd2a12000+18000]
    [ 984.286944] traps: exo-helper-1[1395] general protection ip:7fd5d8473150 sp:7ffd53706a08 error:0 in libpthread-2.21.so[7fd5d8461000+18000]
    [ 1012.318773] traps: xfce4-terminal[1502] general protection ip:7ffb62b1b150 sp:7fffd5c986f8 error:0 in libpthread-2.21.so[7ffb62b09000+18000]
    [ 1101.456187] traps: xfce4-terminal[1521] general protection ip:7f3285cf2150 sp:7fff3c6df158 error:0 in libpthread-2.21.so[7f3285ce0000+18000]
    [ 1102.120447] traps: xfce4-terminal[1525] general protection ip:7fdd50c3a150 sp:7ffe96656ce8 error:0 in libpthread-2.21.so[7fdd50c28000+18000]
    [ 1103.246180] traps: xfce4-terminal[1529] general protection ip:7f93f2b49150 sp:7ffc539d34e8 error:0 in libpthread-2.21.so[7f93f2b37000+18000]
    [ 1103.976302] traps: xfce4-terminal[1532] general protection ip:7f6a55204150 sp:7ffd13eb77f8 error:0 in libpthread-2.21.so[7f6a551f2000+18000]
    [ 1118.718286] traps: xfce4-terminal[1953] general protection ip:7efc94fb9150 sp:7ffd6f5fbed8 error:0 in libpthread-2.21.so[7efc94fa7000+18000]
    [ 1160.851856] traps: xfce4-terminal[1992] general protection ip:7f39aaddb150 sp:7ffdb4478aa8 error:0 in libpthread-2.21.so[7f39aadc9000+18000]
    [ 1165.279367] traps: xfce4-terminal[2004] general protection ip:7f3a50756150 sp:7ffd743c07b8 error:0 in libpthread-2.21.so[7f3a50744000+18000]
    [ 1173.696850] traps: xfce4-terminal[2008] general protection ip:7f0930b98150 sp:7ffc5cd54e78 error:0 in libpthread-2.21.so[7f0930b86000+18000]
    [ 1177.567234] traps: xfce4-terminal[2011] general protection ip:7f5ea2222150 sp:7ffd81d4e898 error:0 in libpthread-2.21.so[7f5ea2210000+18000]
    Tried downgrading glibc from 2.21-3 to 2.21-2 as this is the package which contains libpthread.so, and on my other arch workstations I don't have the issue, but to no avail, same error box pops up when using exo-open, and my IDEs are not starting.
    I'll try comparing installed packages versions on both workstations.

  • Failed to execute default file manager (input/output error) After Firefox Reset? [Any more help? you guys/gals rule!]

    after resetting firefox it seems I cant open anything from the menu as i get the above error msg.

    Are you using ubuntu? [http://askubuntu.com/questions/42682/failed-to-execute-default-file-manager-input-output-error]

  • RMAN Level 0 Backup ORA-27072: File I/O error ... Input/output error

    Hi, All -
    I am receiving the following error messages while running a level 0 backup. Please assist!
    ====================================================================================================
    RMAN-03009: failure of backup command on d1 channel at 11/17/2008 01:08:34
    ORA-19502: write error on file "/NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5313.1.670986008.DB", blockno 82945 (blocksize=8192)
    ORA-27072: File I/O error
    Linux-x86_64 Error: 5: Input/output error
    RMAN-03009: failure of backup command on d2 channel at 11/17/2008 01:08:34
    ORA-19502: write error on file "/NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5314.1.670986008.DB", blockno 84609 (blocksize=8192)
    ORA-27072: File I/O error
    Linux-x86_64 Error: 5: Input/output error
    Additional information: 4
    Additional information: 84609
    Additional information: -1
    channel d2 disabled, job failed on it will be run on another channel
    released channel: d1
    released channel: d2
    released channel: d3
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on d3 channel at 11/17/2008 01:08:34
    ORA-19502: write error on file "/NEW_backups/backups/admin/CCPROD/bkups/CCPROD.5315.1.670986008.DB", blockno 98433 (blocksize=8192)
    ORA-27072: File I/O error
    Linux-x86_64 Error: 5: Input/output error
    Additional information: 4
    Additional information: 98433
    Additional information: -1

    Since it is a <b>write</b> error, I'd look at permissions on the target directory, and available disk space on the target file system.

  • How to save input and output in file

    hi ni
    i have program that has some input and some output
    i try to save the input and output in file word office or excel like this
    error
    extended
    ideal
    value
    wq
    wp
    value
    xq
    xp
    0.857143
    0.7
    0.6
    2
    0.5
    1
    1
    thank in advace 
    best regards
    m.s
    lab view  2011
    hi ?Q>
    Solved!
    Go to Solution.
    Attachments:
    adder in exteded stochastic.vi ‏37 KB

    johnsold wrote:
    Read from and Write to Spreadsheet File VIs should do what you want.
    I did not take the time to try to decipher what your program is doing, but I think you could replace all those feedback nodes and Build Arrays with an integer data type and the Rotate function from the Numeric >> Data Manipulation palette.  You will still need one shift regsiter or rfeedback node for each of the four signals.
    You have duplicated code: Divide by 65535, multiply by 2, and subtact 1 followed by a > comparison.  Make that a subVI and place 4 instances on your block diagram.
    Those simple changes will make you diagram understandable, reduce its size to the size of a postcard, and make any future changes easier.
    Lynn
    thank
    hi ?Q>

  • Nvidia Input/Output error. Could not open the device file /dev/nvidia0

    Hello, I finally have Arch running on my MacBook pro 3,1 (mid 2007) but when I startx after installing Nvidia drivers it gives the Input/Output error and states "could not open device file /dev/nvidia0." I tried everything from the Nvidia wiki, and nothing seems to work. Does anyone please have any other ideas or things to try? My Nvidia card is 8600M GT and I have installed xorg-server, xorg-apps and Nvidia-utils already.  Also is it possible my graphics card is not compatiable with this new kernel? Thank you for your time.

    You know that this posts a huge list - and I couldnt remember how to trim for certain keywords (which one would you be interested in?).
    So here the last few things regarding Video: from dmesg:
    [..] nvidia: module license "NVIDIA" taints kernel.
    [..] Disabling lock debugging due to kernel taint.
    [..] nvidia 0000:01:00.0: enabling device (0002 -> 0003)
    [..] vgaarb device changed decodes: PCI:0000:01:00.0,oldcodes=io+mem,decodes=none:owns=none
    [..] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 304.37 Wed Aug 8 19:52:48 PDT 2012
    then comes Swap, wlan, eth0 etc..

  • 10 dukeroonies!  File input output

    Hi, i would truly love to put this little bugger to bed...
    can you help me...
    (if you cant help me, then maybe you could call the men-in-white?)
    http://forum.java.sun.com/thread.jsp?forum=54&thread=347108&tstart=0&trange=30

    file input output?
    why not...
    // Reading Text from a File
    try {
    BufferedReader in = new BufferedReader(new FileReader("infilename"));
    String str;
    while ((str = in.readLine()) != null) {
      process(str);
    in.close();
    } catch (IOException e) {
    // Writing to a File
    try {
    BufferedWriter out = new BufferedWriter(new FileWriter("outfilename"));
    out.write("aString");
    out.close();
    } catch (IOException e) {
    }http://www.javaalmanac.com/cgi-bin/search/find.pl?words=java.io%2Breading%2Bwriting%2Bfile

  • Try to mount a dmg file -- Input/Output error

    I have certainly searched thru postings, but I cannot quite find a solution.
    [1] An external FireWire drive holds a lot of dmg files of application installers.
    [2] Double-clicking some, not all, of them results in an Input/Output error.
    [3] Toast is always able to mount them.
    [4] When the error happens, an attempt to copy the dmg file onto the Desktop results in another error message "The Finder cannot complete the operation because some data in "<name>.dmg" could not be read or written. (Error code -365)". At this point, clicking on OK brings up a Copy window which hangs. The only way out is to Force-Quit the FInder.
    What should I do to rectify these issues?

    I appreciate your suggestions.
    The external drive in question is OWC's Mercury Elite-AL Pro with FireWire 800 (2) and 400 (1) ports
    It was purchased in February, 2008. Its original connection was thru FireWire 800 to my G5 Tower.
    [1] Ports
          The G5 has only one FireWire 800 port, while the OWC enclosure has two.
          So, I used the other FireWire 800 port on the OWC.
          The same intermittent I/O error in mounting dmg files.
    [2] Cables 
          I tried another FireWire 800 cable with either of the two FireWire 800 ports on the OWC.
          The same intermittent I/O error in mounting dmg files.
          So, I switched the connection to FireWire 400 between my G5 and the OWC.
          No I/O errors after trying to mount numerous dmg files.
    [3] MacBook Pro
          I disconnected the OWC and connected it to a MacBook Pro's FireWire 800 port.
          No I/O errors after trying to mount numerous dmg files.
    From [1], [2], and [3] above, can I deduce that something is wrong with the FireWire 800 port on my G5 Tower? I thought that both FireWire 800 and 400 ports on the G5 Tower were controlled by the same chip.
    Please advise.

  • External Hard Drive Input/Output error

    I recently started having problems with an external hard drive setup that I did not have problems with prior to upgrading to 10.5.5 and trying to setup the drive to be compatible with Time Machine.
    The hard drive enclosure that I have has 2 bays for two SATA drives. I have used this enclosure without any problems until I tried to get 1 drive to act as the backup drive for Time Machine and the other to be storage. I formatted them using Drive Genius. I used the option for GUILD or GUIL which it said was the better format for using with Time Machine.
    The first problem I ran into since upgrading and reformatting the drives is I got an "input/output" error the first couple times I connected the drive via USB to my Mac. I could still use the drives but I got weird errors every once in a while like "input/output error" or "device was not ejected properly" even though the device had not been unplugged.
    Now the drives will not mount using OS 10.5.5. The drives show up when I open Disk Utility, but I cannot get them to mount. I have ran Disk Utility First Aid, and it says the drives are fine. There is one error that shows up when I run the "Repair Disk" feature. It reads "Invalid content in Journal". But Disk Utility also says "The volume was repaired successfully".
    I have seen some posts when I do a search in google about this issue and it seems this is a known issue. Every suggestion I see says to insert your Tiger DVD and reformat the drive using that and the problem will be solved. The only problem with that is I have a lot of important files on the drive that I cannot lose. I had the files backed up until I moved them to the new drive a while back. Now I do not have a backup because I was in the process of switching to bigger drives and erased the old drives after doing so because everything was working fine.
    I am hoping someone out there may have some suggestions (other than erasing the drive) to get my dives to mount so I can transfer the data off to another drive and reformat after.
    Thanks,
    Paul Rugg

    Thanks for the suggestion.
    Do you think that would work better than Drive Genius? I bought Drive Genius 2 and it does not even see the drives when they are plugged in unlike Disc Utility which can see the drives but cannot mount either one.
    Maybe this following post I made to a different questions may help. The data on the drive is other buying another program for if it will work. I think my next step may be to go over to a friends place and try to mount the drives on his computer and transfer stuff off if they connect.
    text below posted to other question relating to external hard drive problem.
    I have recently had the same mounting issue with my new external hard drive. I just purchased a new 750Gb Western Digital Sata drive and got everything transfered over to it. Immediately, I got an error saying that the drive had been ejected incorrectly even though it was still plugged in. I was a little curious. I restarted the computer (hard drive still plugged in via USB 2.0) and the drive showed up just fine. I plugged another 250Gb drive into the same case (2 bays) and the 250GB drive showed up just fine.
    Well, I then noticed there was an OS upgrade available when I ran Software update so i ran it and when I rebooted the drives were gone. I can see the drives in Disc Utility, but they will not mount. Drive Genius cannot see either disc. Disc Utility says I need to repair the drives, but when I do it says they are fixed but they don not mount.
    The problem really seems to be related to mounting USB external drives. I got ahold of 2 seperate external firewire hard drives and one shows up just fine while the other has the same problem (both work on other systems. I would try wiping the drives and reformatting but ALL MY stuff is on them and not everything has been backed up. Yuck! I have not tried connecting my hard drive to another Mac yet.
    The drives being used are #1 Maxtor Maxline Plus II 250GB SATA/150 HDD 1.5b/s 7Y250m00654ra
    and #2 Western Digital WD7500AACS WD Caviar GP Green Power drive.
    I have another post similar to this and I have not received any feedback, but I have been doing my own searching and have found similar posts on the net.
    Anybody have any clue what might be going on here? It really seems to be related to my upgrade.

Maybe you are looking for

  • Creation of customer with contact person detials using BAPI

    Hi,  What is the standard BAPI for creating customer.  I need to create the customer with contact person details, what BAPI i can use for this, i was trying with 'BAPI_CUSTOMER_CREATEFROMDATA1' by populating structure personal data and copy reference

  • Code generation using Visual cafe

    I'm using visual cafe for GUI development. It includes it's own libraries though the equivalent ones are available in JDK. For example: to place a component in GRid Bag layout it generates code with symantec's constructor new com.symantec.itools.awt.

  • Specs on "Optimized" media

    What are the specs on "optimized" media?  ProRes 422, 422 (HQ), 444? And when I am exporting a project and I'm in "Original/Optimized" and all of my original clips have been optimized... which clips is FCPX using for export?  The original or the opti

  • Emailing and saving and editable form

    Hi there HELP! I have converted an existing legal agreement to an editable pdf form, which will be filled out by users. Once it has been filled out, I would like the user to have the option to either email/save this form. The user will need to email

  • Can't reactivate phone number

    I am trying to reactivate a phone number for one of the users in my Skype Manager. When I click Buy as part of the reactivation process, I am taken to a page that says "Service Unavailable", and says come back in a few minutes.  This has been true fo