BufferedReader == reader.mark()  ERROR

This is a basice i/o program. It reads data, stores it in an array and then writes a file based on a filtering system.
The code:
import java.io.*;
import java.util.StringTokenizer;
import java.util.NoSuchElementException;
import java.util.ArrayList;
import java.lang.String;
import java.lang.IndexOutOfBoundsException;
public class bigbook{
     public bigbook()
          Day = 0;
          Open = 0;
          High = 0;
          Low = 0;
          Close = 0;
          Vol = 0;
          Trade = 0;
          Shares = 0;
          TradingDay = 0;
          PL = 0;
          ExitDay = 0;     
     public void enterDay(double date)
          Day = date;
     public void enterOpen(double open)
          Open = open;
     public void enterHigh(double high)
          High = high;
     public void enterLow(double low)
          Low = low;
     public void enterClose(double close)
          Close = close;
     public void enterTradingDay(int day)
          TradingDay = day;
     public void enterPL(double pandl)
          PL = pandl;
     public void enterVol(double vol)
          Vol = vol;
     public void enterExit(double dayfive)
          ExitDay = dayfive;
     public void enterExitPrice(double exitspot)
          ExitPrice = exitspot;
     public double getExitPrice()
          return ExitPrice;
     public double getExit()
          return ExitDay;
     public double getHigh()
          return High;
     public double getPL()
          return PL;
     public double getClose()
          return Close;
     public double getShares()
          return Shares;
     public double getDate()
          return Day;
     public double getPosition()
          return Trade;
     public int getTradingDay()
          return TradingDay;
     public double getVolume()
          return Vol;
     public void numShares()
          Shares = 100000/Close;
     public void goLong()
          Trade = 1;
     public void sellShort()
          Trade = -1;
     private double Day;
     private double Open;
     private double High;
     private double Low;
     private double Close;
     private double Vol;
     private double Trade;
     private double Shares;
     private int TradingDay;
     private double PL;
     private double ExitDay;
     private double ExitPrice;
     private static void ReadFile(BufferedReader reader) throws IOException {
          String nextLine = reader.readLine(); // read first line from br
          int runCount = 0;
          int closeCount = 0;
          ArrayList theDayList = new ArrayList();
          ArrayList theResultsList = new ArrayList();
          StringTokenizer td;
          do
               while ( runCount<2500 && nextLine != null) {
                    int roc = 10;
                    // roc == run overlap count
                    runCount++;
                    bigbook Zbigbook = new bigbook();
                    td = new StringTokenizer(nextLine, ",");
                    while (td.hasMoreTokens()){
                    Zbigbook.enterDay(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterOpen(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterHigh(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterLow(Double.parseDouble((String)td.nextToken()));
                    td.nextToken();
                    Zbigbook.enterVol(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterClose(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterTradingDay(closeCount);
                    theDayList.add(Zbigbook);
                    nextLine = reader.readLine();
                    if(runCount == 2000)
                              reader.mark(roc);
                    if(runCount == 2500 || nextLine == null)
                              reader.reset();
                              closeCount += runCount;
                              ArrayList theInterimList = (ArrayList)Test(theDayList);
                              for (int i=0; i<theInterimList.size(); i++) {
                                   try{
                                        bigbook Xbigbook = (bigbook)theInterimList.get(i);
                                        theResultsList.add(Xbigbook);
                                   catch (IndexOutOfBoundsException e){
                                        break;
                              if(nextLine == null){
                                   PrintWriter pw;
                                   System.out.print("Send output where? ");
                                   String dest = (new BufferedReader (new InputStreamReader(System.in))).readLine();
                                   if (dest.equals("System.out"))
                                        pw = new PrintWriter(System.out);
                                   else
                                        pw = new PrintWriter(new FileWriter(dest));
                                   pw.println("Runs " + closeCount + " closes.");
                                   for (int i=0; i<theResultsList.size(); i++) {
                                        try{
                                        bigbook Ybigbook = (bigbook)theResultsList.get(i);
                                        pw.println(Ybigbook.getDate()+ "," + Ybigbook.getVolume()+ ","
                                        +Ybigbook.getClose());
                                        catch (IndexOutOfBoundsException e){
                                             break;
                                   pw.close();     
                              runCount = 0;
                              theDayList = new ArrayList();
          while(nextLine != null);
     private static ArrayList Test(ArrayList list) throws IOException {
          ArrayList theRelayedList  = list;
          ArrayList theVolList  = new ArrayList();
          for ( int i = 0; i<theRelayedList.size(); i++)
                    try{
                         bigbook Abigbook = (bigbook)theRelayedList.get(i);
                         double volume = Abigbook.getVolume();
                         if(volume > 1000)     
                                   theVolList.add(Abigbook);
                    catch (IndexOutOfBoundsException e){
                         break;
          return theVolList;
     public static void main(String[] args) {
          String filename;
          // Prompt user for file name
          System.out.print("Enter file name: " );          
          // Read user's input from System.in
          InputStreamReader isr = new InputStreamReader(System.in);          
          BufferedReader br = new BufferedReader(isr);
          FileReader fr;
          // Iteratively prompt user until file found
          try {
               while (true) {
                    filename = br.readLine();
                    try {
                         fr = new FileReader(filename);
                         break;
                    catch (FileNotFoundException e) {
                         System.out.print("Re-enter file name: ");
               ReadFile(new BufferedReader (fr));
          catch (IOException e) {
               System.out.println(e);          
               return;
}The problem is that the mark() method is becoming invalidated.
This is the first time I've tried to implement the mark method. I know that the reset() method is supposed to start the reader back at the place where I called mark().
Does it have something to do with the if statement where the mark() call is?

private static void ReadFile(BufferedReader reader) throws IOException {
          String nextLine = reader.readLine(); // read first line from br
          int runCount = 0;
          int closeCount = 0;
          ArrayList theDayList = new ArrayList();
          ArrayList theResultsList = new ArrayList();
          StringTokenizer td;
          do
               while ( runCount<2500 && nextLine != null) {
                    int roc = 1000;
                    // roc == run overlap count
                    runCount++;
                    bigbook Zbigbook = new bigbook();
                    td = new StringTokenizer(nextLine, ",");
                    while (td.hasMoreTokens()){
                    Zbigbook.enterDay(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterOpen(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterHigh(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterLow(Double.parseDouble((String)td.nextToken()));
                    td.nextToken();
                    Zbigbook.enterVol(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterClose(Double.parseDouble((String)td.nextToken()));
                    Zbigbook.enterTradingDay(closeCount);
                    theDayList.add(Zbigbook);
                    nextLine = reader.readLine();
                    if(runCount == 2000)
                              reader.mark(roc);
                    if(runCount == 2500 || nextLine == null)
                              reader.reset();This is where the problem occurs.
In the previous post the readAheadLimit was set at 10, now I have it at 1000.
All that's happening between the mark() and reset() really is tokenizing each line and storing it to the the DayList ArrayList.
The way I understand it is that - each time the reader reads a line, that counts as 1 .................................
OH! this is defined it terms of Characters, not lines from the reader!
This may make a difference.

Similar Messages

  • HP g7 Laptop - "A Read Disk Error Has Occured - Use Ctrl Alt Delete to restart"

    I recently ran into a problem with my HP g7 Laptop. Purchased from Fry's less than 8 months ago.
    The issue i ran into is - when turning on the Laptop
    1st the monitor did not appear to come on...but it had its just that the montior was not
    showing illuminence...
    i ran into the DOS message:
    "A read disk error has occured
    Use ctrl alt delete to restart"
    which i did but did not work. I took apart the laptop to examine the hard drive and based on visual review did not appear to be damaged. Though I was shocked to see the hard drive is a SEAGATE product! which i have found to be a NOT RELIABLE hard drive product. I feared the worst knowing i had lost what I had saved and backed up on the C/D drive portion of the Hard Drive. Using a Flashlight to see what appeared on the monitor, I was able to perform the HP Recovery options on the computer but each option ended with the computer replying to the effect the it could not detect or there was no hard drive or c: - anything...which confused me because why was the laptop allowing to performing the recovery options. The last option i tried was to restore laptop to original factory settings. When it completed and I click the button for the system to restart the next error message i received was that "BOOTMRG missing - use ctrl alt delete to restart"
    which again did not work.
    Can you please bottom line it for me...have i experienced a HD crash and if so how can i know if this is covered under manufacture warrenty? It is upsetting to know that only after 8months of having this product, which i have been very happy with, until now, that the HD experiences a crash. none of the reviews for this product that i have read indicates this problem occuring!
    if this is a HD crash, also i am going to have to purchase a new HD correct, if not covered under warrenty?
    please help! spending over $600 for the Laptop and it only lasting a little over 8 months is not acceptable!
    Sincerely
    Frustrated Customer
    San Jose, CA

    Hi admiral74,
    Call in and speak to a customer service rep. That will be the only way to know if it is still covered by warranty.
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • UK spell checker - correct 1 word and the other marked errors dissapear

    I use the UK spell checker quite often a few red marked errors appear during typing an e-mail. When I fix one the other marked text are unmarked. Pressing the spell check button just brings up the message you are using a spell as you go bla bla. The problem stared a few weeks ago.
    == This happened ==
    Every time Firefox opened
    == Some weeks ago

    How do you mean "don't know what software I'm using?"
    If the phenomenon occurs across most apps that are word intensive, then it appears not to be tied to any one.
    Something is recognizing a problem not there & "correcting" it, because I can see it happen & its not all due to operator error typos.
    I gather there's predominantly one spell checker engine across most applications, not one for each, if the symptoms are broad. IF that can be pinned on a "spellcheck" function. It isn't strictly a spellcheck.
    "Substitutions" yes is more accurate than calling it true spellchecking & I might be rmisrepresenting the phenomenon to call it that.
    Whatever is causing it, is learning & auto-correcting words that were may or may not be wrong. 2 letter pairs is mostly what happens. Or a capitalization of the 2nd letter in a word, to match the first letter: "IT" paired at the beginning of a sentence is a common manifestation.
    I can't find anything that could be left from an uninstalled test driven application.
    Your pointing to "Language & Text" may be valuable. The "ie" & "ei" substitutions are fairly common & German was one of the language options turned on, along with French & Italian – although I'm not sure what that panel even controls. I'm removing all options except English.
    I haven't seen a lot about this kind of thing on here, so I am assuming that its rare & likely something not part of the Apple suite of applications. I'm simply trying to narrow down what's going on.

  • Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    it seems my subscription had expired so I signed up again.. It was still having trouble so I repeated the sign up process again.. Then it worked perfectly.. Unfortunately, I think I just subscribed twice and need to cancel one of them. Ugh. Such a pain when I'm trying to get this project completed. I'll be canceling at least one of the subscriptions in the morning. Adobe is not my favorite company right now. None of this was intuitive. And trying to get help was an absolute waste of an hour.
    Regards,
    Nathaniel
    [removed by moderator]

  • IMAQ AVI read frame error

    Hello,
    What does the IMAQ AVI read frame error "Trigger Time out" mean ?
    Thank you.

    Hello Vanessa,
    In some applications, when a trigger occurs after several minutes or when integration takes several seconds, the timeout parameter may be too small to wait the amount of time it takes to acquire an image. If the image you request is not ready by the timeout parameter, the acquisition code generates a timeout error.
    To prevent this problem, check the acquisition status and request an image only when you know one is ready. By just checking the acquisition status and not requesting an image, you could wait indefinitely for an image without receiving an error.
    Sanaa TAZI
    Application Engineer
    National Instruments

  • Print Problem - PDF is OK on Windows 7, but OK on Windows XP with "Acrobat Reader An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem."

    I have received a PDF which prints fine in Windows 7 but with Windows XP I get "Acrobat Reader An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem." and a blank piece of paper passes through the printer. I appreciate that Windows XP is no longer supported but I would like to think that the solution to this problem is not too difficult!
    I have tried Acrobat 9, 10 and 11.
    Any advice (apart from use Windows 7! ) would be most welcome.
    Many thanks.

    If you use the same Adobe Reader versions with the same PDF on Windows 7 and XP, then I would expect the outcome to be the same.
    Is this a local or online PDF?
    If local, is the file really exactly the same?
    If online, in what browser?

  • "Unable to read file" error in Excel 2010 when downloading .xls file from IE11

    We have lots of reports that have links for our users to be able to download report results in Excel format. We accomplish this by using the Excel mime type in our .asp pages. Sporadically, we are seeing "Unable to read file" errors in Excel 2010
    after choosing Open from the IE11 save dialog. Choosing Save/Save As and the file will open just fine.
    Also, we can sometimes cause the error to occur more frequently by switching windows during the time when the file is downloading.
    If the file is opened directly from /Temporary Internet Files then it opens just fine.
    Window 7 64-bit
    Thanks in advance!

    Hi,
    I found you replied in a similar thread, did you try the workaround (Reset the IE) that provided there? Did you change a browser to test?
    Then, I suggest we use Process Monitor to do further troubleshooting. Please collect all the actions of IE.exe and Excel.exe, and check the if there are some
    error message/code during you open XLS file from IE 11.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Illustrator CC PDF opens in Reader with error message

    When I save an Illustrator file as a PDF, Adobe Reader users get an error message when opening the file – "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem." Why is this happening?

    My apologies. We should have been more specific with our question.
    We should have asked this:
    Has anyone else seen this message in Acrobat Reader when opening PDFs
    created in Illustrator CC since the most current update (v.17.1.0)?  If so,
    would you be so kind as to reply with any general or specific information,
    or even thoughts, as to what might be causing it in this newest version of
    Illustrator?
    The error message reads:
    "An error exists on this page. Acrobat may not display the page correctly.
    Please contact the person who created the PDF document to correct the
    problem."  (Oddly, the message says "Acrobat," even though the application
    it appears in is Reader.)
    The message appears to Adobe Reader users (current version v.11.0.06,
    running in Mavericks); and started appearing after we updated Illustrator.
    The file content (except for one minor type revision), the PDF settings, the
    Adobe Reader users (clients), etc., haven't changed since before then. There
    were no issues with PDFs created in the past from the same file, but when we
    created new PDFs, our clients received the error message upon opening them.
    The files do open, and seem to be fine otherwise; but the recurring message
    does annoy our clients, and erodes our credibility as digital designers.
    We have tried several strategies to resolve this problem saving the PDFs
    with different settings; altering the file format of the linked image files;
    embedding the images files; outlining the type; using alternative typefaces;
    expanding appearances of objects; etc. anything we could think of to
    simplify the file or remove an offending file component all to no avail.
    We even opened the PDFs in Acrobat XI Pro CC (v. 11.0.06) and resaved with
    new file names, and were still met with the same difficulty.
    Other details: sRGB color profile in AI file and images; 3 - 11 x 8.5" art
    boards; PNG-24 images; PDF settings used: Illustrator Default, PDF/X-4:2008,
    Smallest File Size, High-Quality Print, plus a few custom settings from
    printers and developers
    So . . . We were hoping that if anyone had encountered this same message,
    they might have a clue as to what it relates. Any insight would allow us to
    troubleshoot further with that information in mind.
    Many thanks in advance.

  • Acrobat read-only error message

    http://forums.adobe.com/message/4117896
    Hello I am following on from a previously reported issue.
    We have a client who are using Adobe Acrobat 9 and have .PDF's saved in a Share Folder. Is the creator of the document but is still faced with the read only prompt when trying to save the document after making an edit (e.g rotating). Upgrading to Adobe Acrobat 9 isn't an option.
    Folder permissions in both Share and NTFS is okay.
    User's profile has full control of the folder it is being saved in. I've also ensured the reading pane is Windows Explorer is off when they're opening it.
    Have run a repair on Adobe Acrobat 9 and tried with other documents with the same result.
    Saving locally does not have the same issue.
    Please advise a solution for using .PDF for Adobe Acrobat 9 in a Share Folder environment.
    Server is SBS2008 and user's PC is Windows 7 Professional.
    Eagerly await a fix.

    I am having the same issue. Acrobat X was working fine for me for months, then out of the blue, it starts having this problem TODAY! (There must be something about the month of November when people have this problem with Acrobat! )
    Each time I open a PDF file in Acrobat and make an edit, (such as highlighting text or adding a link to a web page), I cannot save the file by the same name. I get the "read only" error message:
    "The document could not be saved. The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."
    I installed the latest updates for Acrobat after this problem occurred, but the "read only" error message persists. In a previous thread, one person suggested turning off Acrobat's Protected Mode by going to Edit/Preferences/General and unchecking the Enable Protected Mode At Startup. I do not see this option in Acrobat X.
    The only work-around I've found is to save the PDF file with a temporary name, then after making the edits in Acrobat, save the file as the original name that you wanted the file to be in the first place.
    I'd rather not have to mess with work-arounds. I just want to make this problem go away. Any help or suggestions would be appreciated!
    regards,
    ChristyGTWE

  • Adobe Reader won't open  Tried installing updated Adobe Reader and error came up in the process and told me to contact software manufacturer.  Could I uninstall current Adobe Reader and then try installing the current AR?  Any ideas?

    My Adobe Reader wouldn't download tickets.  Tried opening Adobe Reader application but it would not open.  I saw my Adobe Reader needed to be updated, so I attempted to install new Adobe Reader.  When it came to finalizing, it said there is an error and can't do.  Any ideas?  I have no functioning Adobe reader.  Should I uninstall old Adobe Reader and then try installing the updated AR?

    (Had to step away & do things) I can't even open up the Adobe Reader application to uninstall; get message it won't open. And now have more things needing to be downloaded to print.  Any ideas on how to open the app, so I can uninstall.  I have a MAC OS X 10.9.4  When the installation initially failed I received this message from Adobe, " Adobe Reader Installation Error  Package name Adobe Reader xi (11.0.07)  Installer: installing abase path/installer: The install failed  (The install encountered an error that caused the installation to fail.  Contact the software manufacturer for assistance.)  It did not specify what the error was

  • In Adobe reader "An error occured when signing in"

    In Adobe reader "An error occured when signing in"

    Hi there Katie,
    I just checked your account, and see that it's active. Are you trying to sign in via Adobe Reader? If so, please choose Help > Check for Updates in Reader and make sure that it-s up-to-date. The most current version, 11.0.07, should alleviate that sign-in error.
    Best,
    Sara

  • Read only error message when trying to save updates in Acrobat 10.6.3

    Hello
    Hopefully I'm missing something obvious here but when I try to edit a PDF in Acrobat 10.6.3 I receive a read only error message, I have been using 'Save As' and tweaking the name each time but this seems to be a clumsy way to go about a simple save.
    I am on a network and have read a previous thread that explained Adobe can sometimes be flakey on networks for saving PDFs.
    Any suggestion gratefully received.

    You may be stuck with copying the files locally and editing and then copying back to the network drive. I am not good with networks, but have noticed posts about network problems over the years -- often focused on specific networks. The solution is typically to deal with the PDFs locally and then copy to the network. In creating PDFs, it seems that some of the results had to do with the TMP folder usage, but I have no clue why.
    As far as AA 10.6.3, you must have a cloud version or something. The latest AA is 10.1.7.

  • Time Machine Read only error launches airport

    I have a partitioned external and use Time Machine on an OSX10.5, and SilverKeeper for the OSX10.4.11 Mac. Everything's been fine until yesterday. Backed up the 10.4 machine with the designated partition, drive 'hung', computer crashed. So, now, the partition for the Time Machine computer doesn't work, the MAC Silverkeeper appears fine and I get the "Time Machine Read only error" on the MacB Pro 10.5. I can "read/write" for the other partitioned, can verify and repair. No go to repair the "Time Machine" partition. And here's the best part: If I choose "NONE" in Time Machine Preferences to unchoose that particular drive, The computer launches the Airport Express Utility and offers my Airport express as a choice for a drive. What's up with that?

    I have a partitioned external and use Time Machine on an OSX10.5, and SilverKeeper for the OSX10.4.11 Mac. Everything's been fine until yesterday. Backed up the 10.4 machine with the designated partition, drive 'hung', computer crashed. So, now, the partition for the Time Machine computer doesn't work, the MAC Silverkeeper appears fine and I get the "Time Machine Read only error" on the MacB Pro 10.5. I can "read/write" for the other partitioned, can verify and repair. No go to repair the "Time Machine" partition. And here's the best part: If I choose "NONE" in Time Machine Preferences to unchoose that particular drive, The computer launches the Airport Express Utility and offers my Airport express as a choice for a drive. What's up with that?

  • Time Machine read only error & dissapears

    I have been running time machine on a MacBookPro MacOS x 10.5.8 for 2 years.
    Last week for the first time I got the "External Drive is Read Only" error. I followed the instructions in Troubleshooting on verify and repair but it didn't work (details below). I bought a new external drive configured for MAC OS Extended Journaled format and it worked for 5 days before giving me the same error and the same problems reported on verify. I don't want to use the install disk again because it didn't work last time (and it is 10.4.9 not Leopard - I upgraded by download).
    I am at my wits end here. Given that the problem occurred on two different external drives I suspect a problem with my OS.
    Details of errors (more or less the same both times):
    Time Machine Error - Time Machine "Backup volume is read only"
    Finder initially showed that the back up folder was read/write for my user ID and the drive was read/write for the system (not sure because the drive now doesn't appear in finder or in Time Machine ("storage location cannot be found" message)
    Disk Utilities: Repair disk option was unavailable Verify disk was available
    Verify disk showed a lot error messages including a lot in red: e.g. "Incorrect number of directory hard links" "Incorrect number of threads" "Invalid Directory Item Count" "Invalid volume file count" - on the second drive (not the first) it could not complete the verify - error message Verify disk failed: Error: 'Filesystem verify or repair failed.'
    Repair disk was available on the Installation disk (10.4.9) - I ran it on the first external drive but it could not repair ANY of the errors. I haven't tried to run it on the second drive

    mysteryrare wrote:
    I upgraded to Leopard by going to the Apple site and purchasing the upgrade from there. It was a download.
    I never heard of that. I've always been told that OSX isn't available that way. (It must have been a massive download!)
    I will try Apple support but I am in Australia and it can take a while for things to get here.
    Yes, but if you ever have to reload, or even do a +*Repair Disk+* on your boot drive, you'll need it.
    The Disk utility is v 11.1 (252.4) dated 2007.
    Yes, that's the right one (I was afraid you had a Tiger version).
    I did not format the second drive myself. I purchased it as a Mac only external drive. I checked the format before and in Disk utility - it is definitely Mac OS Extended (Journaled) in both the disk and the partition. The Partition Map Scheme is "Apple Partition Map" which is supposed to be alright for an intel machine (which mine is). Should I change it to GUID?
    No, that's fine for TM. Only if you want to install OSX on it do you really need GUID. It's likely not a problem here, but most drives come with various software from the makers, often backup and/or management apps. On occasion, some will be running occasionally or constantly, interfering with TM or other things. That's why we usually recommend that a new drive be erased and reformatted.
    I did format the first drive myself before I used it. My memory of how I set it up is a little fuzzy but it worked for a long time. After the Time Machine failure, the Disk Utilities showed different format for the drive and the partition - which bothered me a little and was one of the reasons I bought a new drive. I was thinking about reformatting the drive but now I won't until I know what has gone wrong.
    That could have been part of the problem with the first one, but it's doubtful.
    So what do we do now?
    I don't recall hearing that DU wouldn't even offer +*Repair Disk+* on a drive it could recognize. But if DU won't repair the file system, and you don't have +Disk Warrior+ or other such apps, your only choice is to erase it and let TM start over. In this case, it's probably worth the time to see if DU can write to the entire disk.
    Select the top line of the drive, then click the Erase tab. Then click +Security Options+ at the bottom, then +Zero Out Disk+ and OK on the next screen, then confirm.
    That will, of course, take quite a while. If it fails, the disk is toast. But it should be covered by warranty, at least.
    If the zero-out succeeds, it doesn't necessarily mean the disk is good, but since it's new, it probably is. TM will, of course, do a new, full backup, which will also take a while.
    What sort of disk is this? LaCie had a run of bad power supplies lately (your symptoms don't seem to be the same, though), and WD has some firmware updates. You might want to check with the maker for driver and/or firmware updates.

  • Time Machine "read-only" error across multiple drives

    Hello,
    I've been having an ongoing problem for more than a year now. I continually get a "read-only" error message from Time Machine. To be specific, the message is: "Time Machine could not complete the backup. Files can’t be copied onto the backup disk because it appears to be read-only. You may need to repair or reformat the disk using Disk Utility. If the disk can’t be repaired, you must use a different disk for backups. Open Time Machine preferences to select a different backup disk."
    The problem is, this has happened with three separate backup drives. They are all G-Tech 2TB 4th Generation G-Drive external hard drives. So I'm wondering if there may be a Mac OS software problem, or perhaps a hardware problem.
    There's a lot to this story, so if you're game, read on.
    First, about a year ago, I noticed that my Mac Pro frequently spontaneously ejected the backup drive, for no apparent reason. I didn't deal with the problem right away because I was having other, pressing troubles with my display (which took forever to solve).
    In early-mid 2013, I tried a few disk repairs of my backup disk, as well as erasing the disk (and correctly formatting as Mac OS Extended Journaled). The disk was failing to mount at that point, so G-Tech sent me a replacement drive (a refurbished drive of exactly the same type).
    With the replacement drive, I was getting the same "read-only" message. So I tried a few times erasing/reformatting/repartitioning this drive. No luck.
    So I was sent yet another replacement drive. I experienced the same problems, and in addtion, I once got a message saying the backup drive was full when it actually wasn't. So I tried a) using a different firewire cable, b) using this different cable on a different port. Same problems.
    In the meantime, I did some backups with an old Glyph drive, using the same FW800 port, and the same cable (the 2nd cable), and I had no problems. The reason I don't use this Glyph drive as my normal backup drive is that it is only 500 GB and not large enough to back up all three of my MP internal drives.
    A couple other items of note: back in August of 2013, one of my MP's internal hard drives had to be replaced (it was determined to be having multiple input/output errors). Also, I've had a intermittent problem with the MP spontaneoulsy ejecting a couple different Lexar USB flash drives, even after I reformatted them repeatedly (but this has never happened with my ADATA flash drives). I suppose these things may be unrelated, but for the sake of completeness, I thought I'd include them.
    So it seems like maybe it's a compatibility issue the G-Tech Drives? I'd be surprised...but I'm stumped. Anyone have any ideas?
    Thanks.

    Hello,
    I've been having an ongoing problem for more than a year now. I continually get a "read-only" error message from Time Machine. To be specific, the message is: "Time Machine could not complete the backup. Files can’t be copied onto the backup disk because it appears to be read-only. You may need to repair or reformat the disk using Disk Utility. If the disk can’t be repaired, you must use a different disk for backups. Open Time Machine preferences to select a different backup disk."
    The problem is, this has happened with three separate backup drives. They are all G-Tech 2TB 4th Generation G-Drive external hard drives. So I'm wondering if there may be a Mac OS software problem, or perhaps a hardware problem.
    There's a lot to this story, so if you're game, read on.
    First, about a year ago, I noticed that my Mac Pro frequently spontaneously ejected the backup drive, for no apparent reason. I didn't deal with the problem right away because I was having other, pressing troubles with my display (which took forever to solve).
    In early-mid 2013, I tried a few disk repairs of my backup disk, as well as erasing the disk (and correctly formatting as Mac OS Extended Journaled). The disk was failing to mount at that point, so G-Tech sent me a replacement drive (a refurbished drive of exactly the same type).
    With the replacement drive, I was getting the same "read-only" message. So I tried a few times erasing/reformatting/repartitioning this drive. No luck.
    So I was sent yet another replacement drive. I experienced the same problems, and in addtion, I once got a message saying the backup drive was full when it actually wasn't. So I tried a) using a different firewire cable, b) using this different cable on a different port. Same problems.
    In the meantime, I did some backups with an old Glyph drive, using the same FW800 port, and the same cable (the 2nd cable), and I had no problems. The reason I don't use this Glyph drive as my normal backup drive is that it is only 500 GB and not large enough to back up all three of my MP internal drives.
    A couple other items of note: back in August of 2013, one of my MP's internal hard drives had to be replaced (it was determined to be having multiple input/output errors). Also, I've had a intermittent problem with the MP spontaneoulsy ejecting a couple different Lexar USB flash drives, even after I reformatted them repeatedly (but this has never happened with my ADATA flash drives). I suppose these things may be unrelated, but for the sake of completeness, I thought I'd include them.
    So it seems like maybe it's a compatibility issue the G-Tech Drives? I'd be surprised...but I'm stumped. Anyone have any ideas?
    Thanks.

Maybe you are looking for