Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Data Loss Bug In OS X 10.5 Leopard

Posted by kdawson on Monday November 05, @06:33PM
from the first-do-no-harm dept.
An anonymous reader writes "Leopard's Finder has a glaring bug in its directory-moving code, leading to horrendous data loss if a destination volume disappears while a move operation is in progress. This author first came across it when Samba crashed while he was moving a directory from his desktop over to a Samba mount on his FreeBSD server."

Related Stories

Data Loss Bug In OS X 10.5 Leopard | Log In/Create an Account | Top | 603 comments (Spill at 50!) | Index Only | Search Discussion
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • That's silly. (Score:5, Funny)

    by ackthpt (218170) * on Monday November 05, @06:36PM (#21248189)
    (http://www.dragonswest.com/ | Last Journal: Monday November 05, @07:35PM)

    Normally while moving you ensure the copy completed before deleting the original. Apple must be using some discount programmers.

    • by eniac42 (1144799) on Monday November 05, @06:53PM (#21248409)
      (Last Journal: Wednesday November 14, @06:15PM)
      Advert on Amazon Mechanical Turk:
      Write OS-X compatible application to Move a file between two filesystem devices..
      Time Allotted:: 6 hours. Reward: $10.00..
    • Apple must be using some discount programmers

      Of course not! Don't be a troll.

      Everyone knows that Apple's products Just Work, and that's no different in this case. The files were moved just like you asked, and if you can't find them. well, that's not Apple's fault, is it? You don't blame the contractor who built you home when you lose your keys, do you?

      In any case, you should be using Shadow Copy...er...Time Machine which would have protected you from going and losing track of your own files.
      • Temporal problem (Score:5, Funny)

        by Roger W Moore (538166) on Monday November 05, @09:59PM (#21250203)
        In any case, you should be using Shadow Copy...er...Time Machine which would have protected you from going and losing track of your own files.

        Great! So now not only don't we know where our data is but when it is. Perhaps in a week or two's time the data will materialize in the folder it was supposed to be moved to with an accompanying "whorping" sound coming from the speakers?
      • Re:That's silly. by vanyel (Score:2) Monday November 05, @11:51PM
      • Re:That's silly. by cyber-dragon.net (Score:2) Tuesday November 06, @02:02PM
      • Re:That's silly. by graviplana (Score:1) Tuesday November 06, @04:44PM
      • 2 replies beneath your current threshold.
    • Re:That's silly. by Eq 7-2521 (Score:3) Monday November 05, @07:04PM
    • Re:That's silly. by vought (Score:1) Monday November 05, @07:11PM
      • Re:That's silly. by doxology (Score:3) Monday November 05, @07:18PM
      • Re:That's silly. (Score:5, Informative)

        by ackthpt (218170) * on Monday November 05, @07:19PM (#21248739)
        (http://www.dragonswest.com/ | Last Journal: Monday November 05, @07:35PM)

        So what happens if you're moving a 120GB folder one directory level on a 150GB disk?

        Typically if you are moving within the same logical device the file pointer is moved and no copying need take place.

        When moving to another device your code reads and writes, within a loop and traps exceptions (such as the device suddenly vanished, where the OS should raise an exception and your application traps it.) A wide variety of errors could occur while moving and in the event any of them happen the user should be notified in an appropriate manner and the original data not deleted.

        I've written a number of applications which moved files or data between databases and it's fundamental your application is on the watch for any problems. Not to have an exception raised or to trap any and all, well, that's simply an inexcusable lapse.

        This sort of thing is extremely critical if you happend to be defragmenting a disk drive. Long before Macs and PCs we had to defrag our mainframe drives and the applications which did the work were quite careful. Often the best practice, if you had the resource of a second drive, was to simply defrag to a new drive then re-assign the new dist as the original.

      • Re:That's silly. by FromellaSlob (Score:1) Monday November 05, @10:01PM
      • 2 replies beneath your current threshold.
    • Re:That's silly. by 777a (Score:1) Monday November 05, @10:19PM
    • Re:That's silly. by Ultimate Statement (Score:1) Tuesday November 06, @07:12AM
      • 1 reply beneath your current threshold.
    • Re:That's silly. (Score:5, Informative)

      by Hatta (162192) on Monday November 05, @06:59PM (#21248483)
      (Last Journal: Monday November 28 2005, @12:21PM)
      Why don't you just use rsync [anu.edu.au]?
      • Re:That's silly. (Score:5, Informative)

        by Frothy Walrus (534163) on Monday November 05, @07:04PM (#21248575)
        Oh yeah, rsync. Is that one still broken on 10.5? Apple's build of rsync on 10.4 consistently choked on a few files when my dad started using it on his Mac Pro.
        • Re:That's silly. by passion (Score:3) Monday November 05, @10:02PM
          • Re:That's silly. (Score:5, Funny)

            by delire (809063) on Tuesday November 06, @06:01AM (#21252805)

            resource fork... from Apple's rsync manpage: -E --extended-attributes copy extended attributes, resource forks
            With cryptic commands just to copy files Apple will ALWAYS have ~.001% market share. When will Apple get it into their head that programmers shouldn't design user interfaces?

            Why doesn't Apple just copy the way Ubuntu does it and get with the 2000's?

            Pride is what it is. That damned pride!
            • STOP by anomaly (Score:3) Tuesday November 06, @11:59AM
              • Woosh by Anonymous Coward (Score:1) Tuesday November 06, @12:13PM
              • Re:STOP by dreamchaser (Score:2) Tuesday November 13, @09:25AM
        • works for me by softweyr (Score:2) Wednesday November 07, @11:39AM
          • 1 reply beneath your current threshold.
        • Re:That's silly. by porkchop_d_clown (Score:3) Monday November 05, @08:43PM
        • 2 replies beneath your current threshold.
      • Re:That's silly. by linuxtelephony (Score:2) Monday November 05, @09:12PM
      • 1 reply beneath your current threshold.
    • Re:That's silly. (Score:5, Insightful)

      by Taagehornet (984739) on Monday November 05, @07:55PM (#21249115)

      this is not what current generation of typical user would do, but I believe they should be educated on this anyway

      Reeducate the user, you say. Surely you must be joking, right?

      Let's ignore for a moment that Leopard may have a few bugs that will have to be ironed out. That's only to be expected with *_any_* newly released OS and the reason why no sane person would ever dare to update the OS on a mission critical machine within the first few months of the release.

      However, if you can't rely on your OS to perform a simple file move without risking data corruption, then the right solution is definitely not to verify every single operation by hand. Automating tedious tasks is exactly what computers do best, and that the OS ensures the integrity of the copy before throwing away the original is definitely something you should expect.

    • Re:That's silly. by kc2keo (Score:1) Monday November 05, @08:25PM
    • That's silly? You're silly. by Nirvelli (Score:3) Monday November 05, @08:36PM
    • Re:That's silly. (Score:5, Informative)

      by Matt Perry (793115) on Tuesday November 06, @01:00AM (#21251417)

      I think you misunderstand something.
      No, I understand perfectly.

      I know for a fact that I've successfully canceled FTP-moves on Windows (brand); I also know for a fact that I've successfully canceled FTP-moves on all modern instances of the Windows OS with various FTP clients (programs).
      I'm not talking about other clients. I'm talking about using Windows XP as the client.

      What program were you using that fragged your FTP server directory exactly?
      Windows XP, service pack 1.

      I suspect you're a fud-fucking idiot
      You need to work on your social skills.

      although at the moment, I'm interested to hear if there's more than fabrication here. Pray tell: how can I reproduce this bug?
      You might need to use WinXP service pack 1. I'm unable to reproduce it now on my home machine which has SP2 installed. At work we've just upgraded to service pack 2 within the last six months. Anyway, about a year ago I was trying to move nearly 40 gigs of data from a Solaris server at another site to my local machine. The Solaris server was an FTP server and that's the only access I had to it. I opened Internet Explorer and typed in ftp://servername [servername] and was prompted for a username and password which I entered. Then I saw the files in the explorer view just like I see files on my local machine. Since I was moving so much data I decided to do it one top-level directory at a time. To move the files I selected the folder, dragged it to a folder on my local machine, and held down shift when I let go of the mouse pointer so it would move instead of copy. I noticed that Windows went through three steps when it moved from the FTP site:
      1. A dialog appears with the title Moving... and it says it's calculating how much time it'll take. This took a while itself.
      2. Then the dialog says it's moving the files and the progress meter shows the progress
      3. After the progress meter fills up, it goes to empty again and then says it's deleting the files it moved
      I did this with most of the folders until I reached one that had about 18GB of data in it. I performed the same procedure as above to start the move and after it was copying files for about a minute or two I realized that I was moving them to the wrong location (my desktop instead of a directory on my C drive). At work our desktops are retargeted to a file server and not our local hard drives. I knew that by copying to the desktop I would hit my quota limit on the server whereas if I had copied to the C drive like I did with the other folders I had no limit aside from the free hard drive space. Not copying there in the first place was just a mistake. I clicked cancel to stop the transfer. When I did that, the dialog that had the progress bar changed to the empty progress bar and said it was now deleting. By the time I realized what was going on, it had deleted that folder and all of its content from the FTP site.

      Now this could have been some weird bug or interaction between the fact that I was using a machine with SP1 instead of SP2, that my desktop and profile were retargeted to another machine, or that I was moving so much data. It wasn't a lot of files as these were data files for desktop publish programs for some brochures and catalogs, along with large print-ready images. I don't know what items worked together to cause the problem. I do know that it did happen and that I had to deal with the IT group at our other site (that had the Solaris server), open the helpdesk ticket to get them to restore the files from backup, wait for them to get around to it, etc. It was a huge pain and delayed what I was working on, causing grief for myself and my internal customer. One thing's for sure; I'll never use the built-in Windows FTP client again.
    • Re:That's silly. by Matt Perry (Score:2) Tuesday November 06, @02:28AM
    • Re:That's silly. by jo42 (Score:1) Tuesday November 06, @01:25PM
    • 6 replies beneath your current threshold.
  • Tiger has this problem as well!!! (Score:5, Informative)

    by itsybitsy (149808) on Monday November 05, @06:36PM (#21248191)
    I lost a huge amount of data being MOVED (not copied) from one volume into a virtual volume DMG file. Lost and gone forever, lots of important files. What happened? I simply bumped the laptop Mac Book Pro during the move... zap... gone forever. The DMG file was blank! Yes, complely zero bytes except for a bit of header non-file data. It sucks bad.

  • Wierd by darkcmd (Score:1) Monday November 05, @06:36PM
  • by syylk (538519) on Monday November 05, @06:38PM (#21248223)
    (http://www.mekwars.org/)
    ...As if millions of fanboys suddenly cried out in terror and were suddenly silenced.
  • Terrible bug (Score:3, Informative)

    by thegrassyknowl (762218) on Monday November 05, @06:39PM (#21248231)
    But entirely fixable.

    Knowing it exists means you can also work around it by doing copies every time and only manually deleting the source entry when you're sure the copy has completed properly. Now all you need to do is be mindful every time you want to move a file anywhere.

    Sucks to be a Mac user (I am one, I know) but I'm sure Apple will have this fixed pretty quick.
    • Re:Terrible bug (Score:5, Insightful)

      by Liquidrage (640463) on Monday November 05, @06:43PM (#21248281)
      Yes, that's easily avoidable. If you know it exists. And hopefully the first time you get bitten by this it isn't something critical. Would be garbage to have to work around that one.

      TFA looked decent in it's details. Even step by step recreation. But it's a pretty serious bug, that as you mention, *needs* to be fixed quick and I didn't see any other sources confirming it.
    • Re:Terrible bug by thegrassyknowl (Score:3) Monday November 05, @06:48PM
      • Re:Terrible bug by Dephex Twin (Score:1) Monday November 05, @07:09PM
      • Re:Terrible bug (Score:5, Insightful)

        by Knara (9377) <swalsh76@NOsPAm.gmail.com> on Monday November 05, @07:11PM (#21248653)

        You're asking if a bug wherein entire folder hierarchies can go *poof* in the event a network share drops should be considered critical? Are you serious?

      • Re:Terrible bug by SnoopJeDi (Score:2) Monday November 05, @07:11PM
      • Re:Terrible bug by LM741N (Score:2) Monday November 05, @07:22PM
      • Re:Terrible bug by laffer1 (Score:2) Monday November 05, @07:25PM
      • Re:Terrible bug by nine-times (Score:2) Monday November 05, @07:30PM
      • Re:Terrible bug (Score:5, Insightful)

        by TheNetAvenger (624455) on Monday November 05, @08:02PM (#21249207)
        is this even that critical? Doesn't leopard have the time machine in it? Can't you just go back and get your files out of the time machine if they were that important?


        Only if a backup of the files was run, which is a requirement of Time Machine.

        If this was Vista, then there would be a good chance to use 'previous versions' to recover the folder data, as it does not 'solely' rely on external backup for timeline file recovery. Vistas use volume level file version snapshots(a feature of NTFS that HPS+ doesn't support), so there are backups even on the drive if it hasn't ever been backed up.

        (Remember Time Machine usually only runs once an hour, and all versioning or changes made in that hour are never kept or tracked.)

        -PS Not trying to troll, but this is a perfect example of the difference between Vista's previous versions and Apple's Time Machine I have tried to point out in the past.

        Vista does both volume level backups and external backups, unlike just external backups like Time Machine does.

        See why IT people prefer Vista's method, even if a backup hasn't run that hour, even users themseleves can access files and folders rather easily that got deleted or changed. And since this has been around Since Windows 2003 Server, in corporate environments, even XP users accessing 2003 servers have had this feature for over 4 years now.

        Vista's claim to fame is that it enables these features on the local hard drive, and also integrates with the Vista backup system, so file versions appear from the backups in addition to the 'snapshot versions' on the main hard drive.
      • Re:Terrible bug by imuffin (Score:2) Monday November 05, @08:38PM
      • Re:Terrible bug by heinousjay (Score:1) Monday November 05, @10:45PM
      • Re:Terrible bug by Tim Browse (Score:2) Tuesday November 06, @02:37AM
      • 1 reply beneath your current threshold.
    • Re:Terrible bug (Score:4, Interesting)

      by El Lobo (994537) on Monday November 05, @07:00PM (#21248507)

      but I'm sure Apple will have this fixed pretty quick.
      Well, the problem is, this bug exists even in TIGER and has been repported many times! And no, not fixed yet. Abble is a coorporation like any other, and not the superpower that some users seem to think they are.
    • Re:Terrible bug by RobertM1968 (Score:1) Monday November 05, @07:42PM
      • Re:Terrible bug by Reaperducer (Score:1) Monday November 05, @08:02PM
      • Re:Terrible bug by Hierarch (Score:3) Monday November 05, @08:30PM
        • Re:Terrible bug (Score:4, Informative)

          by RobertM1968 (951074) on Monday November 05, @09:08PM (#21249809)
          (http://www.geocodeengine.com/)

          Error code 51 doesnt neccesarily mean the transfer failed. It can also mean lost connection to the share - which could have happened (in OSX's "mind") after it thought/was told the transfer was complete.

          For instance, what if in stopping the share on the Windows session (incorrectly listed in the /. article as a FreeBSD Share), the SMB crap in Windows is "cleaning up" while shutting down and generating a "complete" code that it sends back to the Apple machine, which then in trying to communicate with the share, realizes it no longer can, and generates the correct error code as noted (51).

          OSX did NOT generate a disk write error or any other error that would have been more applicable (like 43 or a bunch of other possibilities). It generated an error stating it lost communication with the other machine.

          Again, still not enough info without knowing more about what the WinShare does when closed.

      • Re:Terrible bug by rice_burners_suck (Score:1) Monday November 05, @09:03PM
      • Re:Terrible bug by acvh (Score:2) Monday November 05, @09:37PM
      • Re:Terrible bug by noidentity (Score:1) Monday November 05, @10:21PM
      • Re:Terrible bug by RobertM1968 (Score:2) Monday November 05, @09:25PM
      • 1 reply beneath your current threshold.
    • Aye, there's the rub by ackthpt (Score:2) Monday November 05, @07:43PM
    • Re:Terrible bug by LeafOnTheWind (Score:1) Monday November 05, @08:47PM
    • Re:Terrible bug by Onan (Score:2) Tuesday November 06, @05:53AM
    • 3 replies beneath your current threshold.
  • You just don't get it... (Score:5, Funny)

    by juanfgs (922455) on Monday November 05, @06:42PM (#21248275)
    (http://juanfgs.wordpress.com/)
    This is the new Leopard "iLostMyFrigginFiles" feature, next version they will add a badass black hole effect when it does that!
  • Par for the course? (Score:5, Informative)

    No offense meant here, but normal move/copy operations are traditionally highly destructive events on MacOS anyway. For instance there is absolutely no simple way to merge two folders contents together on the mac. If you drag a folder called "Documents" into your home directory and click on "OK", the Mac OS will happily delete your entire documents folder. I was reminded of this enormous frustration while recovering from some multi-volume backups recently, having to resort to an obscure OS X commandline tool 'pax' and Leopard's newfound support of hardlinks to make some simple file copies play nice and not unnecessarily consume 3 times the disk space they should have.

    For all of the flack the Windows file copy interface gets, it is both safer and more flexible than trying to use the Finder: an interface that makes file management so stupefying it becomes impossible.
    • Re:Par for the course? by rbanzai (Score:2) Monday November 05, @06:57PM
      • Re:Par for the course? (Score:5, Insightful)

        by JunoonX (1171445) on Monday November 05, @07:07PM (#21248607)
        When two folders, both named "Documents", where one is dragged and dropped into the home directory containing another "Documents" folder, Windows prompts if you want to replace content from the dropped folder on to the one being dropped on. At this point, if any files with same name are encountered, they will be replaced with the one from the first directory; however, all other files in folder will stay intact.
      • Re:Par for the course? by bunco (Score:1) Monday November 05, @07:18PM
        • Re:Par for the course? (Score:4, Interesting)

          by TheNetAvenger (624455) on Monday November 05, @08:26PM (#21249435)
          Basically, it nukes the conflicting /alpha/baz and then performs the copy. Brain dead behavior if you ask me.

          Vista works very differently, not only Folders are confirmed but every file in the folders are confirmed with options to replace/don't copy/create second copy...

          So ya this sucked in older versions of Windows, but Vista does a great job of handling this, better than any other GUI file manager I have ever seen to date.

          Maybe you should try Vista instead of OSX... But again if MS was doing their job and was touting features like this in Vista, people would find more reasons why Vista has a lot of things to offer. Instead MS's marketing is retarded and nice features like this are NEVER mentioned and none of even the tech press notices them or points them out to users.

          And trust me when I say there are literally 1000s of features like this that make the difference between Vista and XP night and day for daily usage.
        • Re:Par for the course? by AJWM (Score:2) Monday November 05, @11:39PM
      • Re:Par for the course? by complete loony (Score:2) Monday November 05, @07:55PM
      • Re:Par for the course? (Score:5, Informative)

        by TheNetAvenger (624455) on Monday November 05, @08:16PM (#21249347)
        I haven't noticed different behavior in any version of Windows. How do you merge similarly named folders during a copy/move in Windows? In my experience you get the same "Do you want to replace this?" type prompt you get in OS X.


        Serious answer...

        XP offers a basic, do you want to replace folder and a basic do you want to replace files. (Very generic, but more than OS X does)

        Vista on the other hand, asks if you want to replace/merge folder and then if conflicting files are found in the folders it asks you if you want to overwrite the files, don't overwrite them, or create a second copy of the file in the same folder. File by File and Folder by Folder if you want, or you can hit a check box to mimic your response for all file and folders if you are moving a lot of files/folders.

        It also will show you the two versions of the file or folder so you can make a decision based on which files/folders are newer, and you even get a thumbnail of the file for documents and pictures to be sure you are keeping the one you want.

        (Very simple interface, but more has the functionality of the power geek that was always left to using tools like XCopy in the past.)

        This is one of the 'little' Vista features that doesn't get any press, but is a lifesaver for people that move around a lot of data, as you can merge and update folders and files much easier.

        Stuff like this is the reason I said if MS did a 'new features' list like the pety list Apple did with their 300 new features, Vista would have several thousand new features to list.

        (Again MS's marketing sucks, since most people don't even know stuff like this exists in Vista, and it is both powerful, easy, and just works.)
      • Re:Par for the course? by crabpeople (Score:2) Monday November 05, @08:13PM
      • Re:Par for the course? by TheNetAvenger (Score:2) Monday November 05, @08:20PM
      • 3 replies beneath your current threshold.
    • Re:Par for the course? (Score:5, Interesting)

      by Blakey Rat (99501) on Monday November 05, @07:04PM (#21248553)
      That's left over from the original spatial Finder design in Mac Classic. Apple hasn't really decided whether they want to get rid of the spatial interface, so instead they've made this horrible frankenstein half-spatial, half-browser interface which pretty much everybody hates.

      Doing a "replace" for that operation makes sense in a spatial system because all spatial icons are treated the same way. You'd wouldn't expect dragging a Word file named "happy.doc" into a folder already containing a "happy.doc" to perform a merge operation; so why would you expect that with a folder in the same situation?

      That said, if you've never used Mac Classic, you'd think OS X has nothing but a browser interface, in which case all metaphors and ideals are out the damned window, and the OS might as well do a merge operation. Since you most likely came from Windows, or a Linux environment ripped-off from Linux, you'd expect dragging identically-named folders together to do a merge operation because that's what you're used to.

      Apple needs to make up its mind what Finder is. It gets worse and worse every version.
    • Re:Par for the course? (Score:5, Insightful)

      If you drag a folder called "Documents" into your home directory and click on "OK",

      To be fair, I don't think it asks you whether it's ok to move that directory. It will warn you that it's going to replace that folder, and the buttons will either say, "Replace" or "Stop". It's not that ambiguous.

      The only thing that makes it problematic is if you're accustomed to working in a file manager that will automatically merge directories, then you might think it's going to merge when it's actually going to replace. I would say that neither behavior is "wrong", but you certainly can get unhappy results if you're expecting one behavior and get another.

      Honestly, it took me a little while to get used to it, but now that I expect it, it's fine. Usually, if I'm doing anything complicated with copying/moving lots of stuff recursively, I'm going to want to use a command line anyhow. In the command-line, "cp" and "mv" work in normal unix fashion.

    • Re:Par for the course? by Just Some Guy (Score:3) Monday November 05, @07:11PM
      • 1 reply beneath your current threshold.
    • Re:Par for the course? by GaryPatterson (Score:2) Monday November 05, @07:19PM
    • Re:Par for the course? by k2enemy (Score:2) Monday November 05, @07:19PM
    • Re:Par for the course? (Score:4, Insightful)

      by node 3 (115640) on Monday November 05, @07:20PM (#21248765)

      For instance there is absolutely no simple way to merge two folders contents together on the mac.
      Open a folder, "Select All", drag into destination folder.

      If you drag a folder called "Documents" into your home directory and click on "OK", the Mac OS will happily delete your entire documents folder.
      It does state this is going to happen in the window with the OK button.

      I was reminded of this enormous frustration while recovering from some multi-volume backups recently, having to resort to an obscure OS X commandline tool 'pax' and Leopard's newfound support of hardlinks to make some simple file copies play nice and not unnecessarily consume 3 times the disk space they should have.
      If you were going with the command line, you could have just used "cp" or "rsync". Your mention of hardlinks is perplexing, though. OS X has supported hard links forever. It recently added support for hard linking folders (extending hard links beyond the standard). Since you're comparing with Windows, does Windows somehow know if you are copying a file that's identical to one that already exists, and makes a hard link? I'm fairly sure it doesn't.

      For all of the flack the Windows file copy interface gets, it is both safer and more flexible than trying to use the Finder
      How so? This bug aside, I don't see how it's safer *or* more flexible. The difference--the *only* difference--here is whether folders replace or merge. Windows isn't more flexible, as it does one way, not both. As for safer, they both tell you when something destructive is going to happen.

      the Finder: an interface that makes file management so stupefying it becomes impossible.
      Impossible? Really? All because it replaces folders (and tells you, with a chance to abort) instead of merging them?
    • Re:Par for the course? by CODiNE (Score:2) Monday November 05, @07:25PM
    • Re:Par for the course? by smcdow (Score:2) Tuesday November 06, @12:24AM
    • Re:Par for the course? by Echnin (Score:2) Tuesday November 06, @02:26AM
    • PEBCAK by Doctor O (Score:2) Tuesday November 06, @11:34AM
      • 1 reply beneath your current threshold.
    • Re:Par for the course? by solios (Score:2) Tuesday November 06, @02:20PM
    • Re:Par for the course? by mooncaine (Score:1) Thursday November 08, @04:29PM
    • 2 replies beneath your current threshold.
  • No Big Deal by Mordaximus (Score:2) Monday November 05, @06:47PM
    • 1 reply beneath your current threshold.
  • by tji (74570) on Monday November 05, @06:49PM (#21248363)

    Not to be glib, but.. This would be a great demonstration of the value of "Time Machine" backups. Time Machine is not perfect, but it is a good start on a backup system well integrated into the OS. The example problem, data loss, would be really easily recovered via Time Machine.

    Beyond the basics that every decent backup app does, the things I like about Time Machine are:

    - Integration into Applications. For example: "Show me what my iTunes library or iPhoto library looked like last Thursday"

    - Integration into OS install. In the case of disk failure, recovery to previous state is simple - rather than multi-step with a separate backup app.

    Some things that need improving:

    - Better handling of file exceptions. I keep work data in encrypted disk volumes (DMGs). If I change one byte, the whole huge file needs to be backed up as each change is detected (generating MANY copies of that big DMG). The only other choice is to say "ignore this file/directory". Same thing applies to any large file, such as a VMware VM file. A better option would be to say "Back this file up, but only keep 'n' versions".

    - Time Machine has gotten twice, pegging the CPU/fans on my MacBook Pro.
  • Nothing to see here, folks by ciaohound (Score:2) Monday November 05, @06:50PM
  • Youth by headkase (Score:2) Monday November 05, @06:50PM
  • Wow (Score:5, Interesting)

    by Zebra_X (13249) on Monday November 05, @06:52PM (#21248393)
    Unbelieveable. Forgot to check the result of the copy operation eh? So basically this is a catastropic defect for people who deal with very large media files to and from remote stores or people who deal with virtual machine images.

    Back in the day when I used to use my mac I dropped a directory (A) into another directory (B) but there was an existing directory (C) with the same name as (A). The finder asked me something, I clicked OK. I was dismayed to find that the dialog had asked me "Would you like to replace directory C, with A?" - Why on earth would that ever be the default option for a directory move? From the users perspective you aren't really moving the directory, the intention is to move the files, thus the sane response would be to merge A with C not replace it.

    Whatever.
    • Re:Wow by Tack (Score:3) Monday November 05, @07:01PM
      • Re:Wow by Zebra_X (Score:2) Monday November 05, @07:06PM
      • Re:Wow by Tack (Score:2) Monday November 05, @07:08PM
      • Re:Wow by VGPowerlord (Score:2) Tuesday November 06, @12:33AM
      • 1 reply beneath your current threshold.
    • Re:Wow by Blakey Rat (Score:2) Monday November 05, @07:09PM
      • Re:Wow by MichaelSmith (Score:2) Monday November 05, @08:14PM
        • Re:Wow by amliebsch (Score:2) Tuesday November 06, @02:39AM
        • Re:Wow by Cro Magnon (Score:2) Tuesday November 06, @10:23AM
        • Re:Wow by mindstrm (Score:1) Tuesday November 06, @11:52AM
      • Re:Wow by p0tat03 (Score:2) Monday November 05, @08:58PM
        • Re:Wow by Blakey Rat (Score:2) Monday November 05, @09:51PM
          • Re:Wow by bar-agent (Score:2) Tuesday November 06, @07:34PM
          • 1 reply beneath your current threshold.
      • Re:Wow by jyoull (Score:2) Monday November 05, @10:04PM
        • Re:Wow by Zebra_X (Score:2) Tuesday November 06, @09:35PM
    • Re:Wow by Inf0phreak (Score:2) Monday November 05, @07:10PM
      • Re:Wow by nuzak (Score:2) Monday November 05, @08:06PM
        • Re:Wow by martinX (Score:2) Tuesday November 06, @12:01AM
          • Re:Wow by nuzak (Score:2) Tuesday November 06, @12:55AM
    • Re:Wow by JonathanBoyd (Score:2) Monday November 05, @07:10PM
    • Whats the problem? by bussdriver (Score:2) Tuesday November 06, @01:52AM
    • Re:Wow by Chaset (Score:1) Tuesday November 06, @03:14AM
      • Re:Wow by Culture20 (Score:1) Tuesday November 06, @11:17AM
        • Re:Wow by Smurf (Score:2) Tuesday November 06, @03:20PM
    • Re:Wow by itsdapead (Score:2) Tuesday November 06, @06:07AM
    • Why not rename? by spitzak (Score:2) Tuesday November 06, @12:32PM
    • Re:Wow by The_reformant (Score:2) Tuesday November 06, @12:38PM
    • Re:Wow by DJSpray (Score:2) Friday November 09, @02:24PM
    • Re:hee hee hee by Zebra_X (Score:2) Tuesday November 06, @09:43PM
    • 5 replies beneath your current threshold.
  • My Mac sucks by sootman (Score:2) Monday November 05, @06:53PM
  • I don't understand by DarkOx (Score:2) Monday November 05, @07:03PM
    • Re:I don't understand by EastCoastSurfer (Score:3) Monday November 05, @07:14PM
      • Re:I don't understand (Score:5, Funny)

        by myowntrueself (607117) on Monday November 05, @07:39PM (#21248967)
        I agree. I always copy then delete, especially when dealing with network shares.

        Despite its many shortcomings, Windows ME (*NOT* the more recent ME2) had this truly wonderful feature where if you delete something from a network share it would *copy* the data across the network into your trash folder.

        Really handy when you delete 10G of data on a network share and your local hard drive has 5G available and you are on a 10mbps network.
    • Re:I don't understand by Knara (Score:2) Monday November 05, @07:19PM
    • Re:I don't understand by javelinco (Score:2) Monday November 05, @07:37PM
    • Re:I don't understand by sponga (Score:1) Monday November 05, @07:40PM
    • Re:I don't understand by CaseyB (Score:3) Monday November 05, @07:42PM
    • Re:I don't understand (Score:5, Informative)

      by t35t0r (751958) on Monday November 05, @07:43PM (#21249007)
      NFS write failure on Linux 2.4, check your data is gone.

      Uhh no. In linux mv's always make sure the data moved then delete the original file (as far back as 2.4). You can test this by dd'ing a large file (use if=/dev/urandom), then run a md5sum on it, then do a mv within the same drive, over nfs, over samba/cifs, to floppy (not sure what happens here because linux caches writes to floppies until umount), to usb drive, whatever. While the mv is in operation just pull the plug on the system (target or source system). Your old file will still be there!
    • Re:I don't understand by crabpeople (Score:3) Monday November 05, @08:32PM
    • Re:I don't understand by Anonymous Coward (Score:1) Monday November 05, @08:43PM
    • Re:I don't understand by Emetophobe (Score:2) Monday November 05, @11:18PM
    • 2 replies beneath your current threshold.
  • Thread bug? (Score:3, Insightful)

    by mveloso (325617) on Monday November 05, @07:20PM (#21248761)
    This may be a bug in the Finder thread code. Why?

    Think about it: safe data movement has been around since filesystems existed. However, the new Finder is multi-threaded. It could be that the error handler is doing the wrong thing with the thrown exception...after all, what -do- you do with an exception in a subthread? What mechanism do you use to throw it upwards to the parent thread?

    That's the joy of error handling, which is totally separate (though completely integral) to your normal architecture issues.
  • Finder Has A 'Move' Now? (Score:3, Insightful)

    by GaryPatterson (852699) on Monday November 05, @07:28PM (#21248849)
    Okay, this is a terrible bug, but to me the real news is that the Finder has a move operation. I've only ever used the simple drag (ie copy) when transferring files to other disks. That might also be why I've never had this disconnection-delete problem.

    The workaround is trivial - copy files until you're certain. In fact, I'd recommend doing that in all OSs anyway. Moves or cut-pastes are fraught with potential badness. I've lost files in Windows doing that, and always wondered what's wrong with just moving and deleting manually later on.
    • Shift+drag by SanityInAnarchy (Score:2) Monday November 05, @09:43PM
      • Re:Shift+drag by warrigal (Score:1) Tuesday November 06, @12:07AM
  • "haha" (Score:5, Interesting)

    by MutantEnemy (545783) on Monday November 05, @07:31PM (#21248879)
    (http://slashdot.org/)

    Why is every destructive computer bug that happens tagged with "haha"?

    Data Loss Bug In OS X 10.5 Leopard
    bug, macosx, apple, haha

    Symantec Updates Cause Chaos in China
    haha, security, bug, windows, feature

    Banner Ad on Myspace Serves Adware to 1 Million
    haha, myspace, pwnd, security, adware

    Ubuntu May Be Killing Your Laptop's Hard Drive
    linux, haha, storage, bug, spam

    Islamists exploit buffer overflow, hack U.S. nuclear command; world doomed
    eschaton, religion, waronterror, haha

    OK, I made one of those up. But it doesn't even matter what OS or company is responsible for the problem - whoever makes the tags seems to take great delight in all computer snafus. How does the tagging system work anyway? It's always been mysterious to me.

    • Re:"haha" by GaryPatterson (Score:2) Monday November 05, @07:34PM
      • Re:"haha" by Joe U (Score:1) Monday November 05, @07:56PM
        • Re:"haha" by GaryPatterson (Score:2) Monday November 05, @08:44PM
          • 1 reply beneath your current threshold.
      • 1 reply beneath your current threshold.
    • Re:"haha" by gsking1 (Score:2) Monday November 05, @08:04PM
      • Re:"haha" by MutantEnemy (Score:2) Monday November 05, @08:30PM
    • Re:"haha" by Yosho (Score:2) Monday November 05, @08:47PM
      • Re:"haha" by NewbieProgrammerMan (Score:2) Monday November 05, @09:42PM
    • Re:"haha" by I'm Don Giovanni (Score:2) Monday November 05, @10:59PM
    • Re:"haha" by zanderredux (Score:1) Tuesday November 06, @06:38AM
    • Re:"haha" by yabos (Score:2) Tuesday November 06, @10:41AM
  • Not default behavior (Score:4, Informative)

    by Have Blue (616) on Monday November 05, @07:42PM (#21248999)
    (http://www.seizurerobots.com/)
    Someone should point out that by default, the Finder will copy files dragged to a different volume. You have to hold down a modifier (Command) to force a move operation. So while this is a severe bug that should be fixed immediately, it's much less likely to happen by accident than the article implies.
  • two questions by cyfer2000 (Score:2) Monday November 05, @07:48PM
  • Data deletion in Mac OS X by Neo-Rio-101 (Score:1) Monday November 05, @08:00PM
  • Bad finder, bad, bad finder... by flyingfsck (Score:2) Monday November 05, @08:01PM
  • Not just 10.5 by rir (Score:2) Monday November 05, @08:02PM
  • people actually use the finder? by zojas (Score:2) Monday November 05, @08:29PM
  • Back to School... Ole school by starglider29a (Score:2) Monday November 05, @08:45PM
  • This may not be a bug in Leopard (Score:4, Insightful)

    by ChrisA90278 (905188) on Monday November 05, @09:07PM (#21249803)
    There is a good chance the disk drive or the networked computer is giving the finder an "OK I got it" signal BEFORE the data is actually written to the physical disk drive. So it gives this signal, then the finder deletes the old data and then the disk drive "goes away" before the data is written out of the cache and to the drive. Don't blame Finder, blame those huge disk caches where many megabytes sit and wait to be written to the drive.

    If this is true then the bug is im the copy of Samba running on the file server. We do not yet have enough information to know.
    • Re:This may not be a bug in Leopard by El_Oscuro (Score:2) Monday November 05, @09:33PM
    • Re:This may not be a bug in Leopard (Score:4, Insightful)

      by Cantus (582758) on Tuesday November 06, @12:43AM (#21251321)
      The default Finder behavior when you drag a file from one volume to another is to copy the file. To do a move you press the Command key and drag the file to its new destination.

      The second you drop the file, it begins copying the file to the destination volume, but the original file disappears... poof, gone. If you stop the move operation, you're left with an incomplete file in the destination volume and with nothing in the original volume. This is to me a major bug.

      This is why, for large files, I always copy.
  • by Lisandro (799651) on Monday November 05, @09:08PM (#21249805)
    That's it, moving a file, network failure and poof, moved files deleted from the source. Most probably a bizarre coincidence, but after it happened a few times i now copy and then delete when working on a SMB network.

    (Or maybe Samba has something to do with it?)
  • Why doesn't move act like copy? by antdude (Score:2) Monday November 05, @09:08PM
  • Macs are made for human beings by rpp3po (Score:1) Monday November 05, @09:12PM
  • mv? by fishbowl (Score:1) Monday November 05, @09:31PM
    • 1 reply beneath your current threshold.
  • *gasp* by spaxxor (Score:1) Monday November 05, @09:33PM
  • I notice the example REQUIRED WINDOWS by wardk (Score:1) Monday November 05, @09:39PM
  • How not to demonstrate this by g-san (Score:2) Monday November 05, @09:48PM
  • Seriously? by seandiggity (Score:1) Monday November 05, @10:35PM
  • FIX THE FUCKING FINDER by argent (Score:2) Monday November 05, @11:05PM
  • Couldn't replicate this bug by TechnicolourSquirrel (Score:1) Monday November 05, @11:06PM
  • Alternative by Jerry Smith (Score:2) Tuesday November 06, @12:34AM
  • Worse Bug - Archive and Install Fails by jordan314 (Score:1) Tuesday November 06, @01:39AM
  • Could easily happen in Linux... by Creepy Crawler (Score:2) Tuesday November 06, @01:56AM
  • Already learned that lesson thanks by dave562 (Score:2) Tuesday November 06, @02:24AM
  • Problem is older than Leopard by Absentminded-Artist (Score:2) Tuesday November 06, @04:33AM
  • Undo by Hozza (Score:1) Tuesday November 06, @04:35AM
  • This goes back a long way by simong (Score:2) Tuesday November 06, @06:08AM
  • osx ? (Score:3, Informative)

    by l3v1 (787564) on Tuesday November 06, @06:35AM (#21252931)
    I don't think this is an OSX specific bug. Just this weekend I moved some video files over from a Windows desktop pc to my also Windows media pc (Windows based custom box) to a shared folder, then I went out for a tea, came back in, and I forgot the move was in process, and I switched off the media pc. About half an hour later I went back to my desktop pc, to see an error message about a failed write, then all the files I wanted to move have been deleted from the desktop pc. Checking the media pc, the first file was there, but damaged.

    • Re:osx ? by Ash-Fox (Score:2) Tuesday November 06, @08:39AM
    • Semantics by ratboy666 (Score:2) Tuesday November 06, @09:59AM
    • Re:osx ? by essinger (Score:1) Tuesday November 06, @12:03PM
      • Re:osx ? by l3v1 (Score:2) Tuesday November 06, @01:12PM
    • Re:osx ? by wdolez00 (Score:1) Tuesday November 06, @01:36PM
  • Use Copy first! by cycler (Score:1) Tuesday November 06, @07:07AM
  • All O/Ses have it wrong. (Score:3, Interesting)

    by master_p (608214) on Tuesday November 06, @07:51AM (#21253257)
    First of all, files should never be deleted, they should only be hidden, unless the disk is full, of course.

    Secondly, "move" across different devices should be copy and then delete.

    Thirdly, if you copy a folder over another one with the same name, the computer should ask you what the purpose is: merge or replace? merge is often as catastrophic as replace if merging results in undesirable file combinations.

    Forthly, files should be versioned by the O/S, as in VMS. It was a great feature, I don't know why it's missing from all modern O/Ses.
  • Command line by Legion303 (Score:2) Tuesday November 06, @08:44AM
  • This may not get read, but still (Score:4, Informative)

    by analog_line (465182) on Tuesday November 06, @09:50AM (#21254259)
    This is a bug with the FINDER ONLY, just so everyone is clear. The Unix "mv" command in Leopard is NOT affected by this.

    http://www.macintouch.com [macintouch.com] Obviously this is the front page story today.

    This only affects "move" operations between logical volumes. You have to hold down Command while you're doing this, inside the Finder, to get this to happen. Yes, it's a bad bug. It's not something, however, that you're going to run into if you're thinking sensibly about how you treat important data, or if you didn't know that the Command-drag functionality was built into the Finder (which I didn't, and I can't think of a time when I would use it now that I do, even if it was working correctly).

  • I'm sure Win95 had the same bug by gonzoxl5 (Score:1) Tuesday November 06, @09:54AM
  • Very unfortunate because it penalizes "switchers" by 5n3ak3rp1mp (Score:2) Tuesday November 06, @10:45AM
  • From Apple's Discussion forums by IwarkChocobos (Score:1) Tuesday November 06, @12:50PM
  • I'd make a comment... by PHAEDRU5 (Score:2) Tuesday November 06, @01:24PM
  • More ways to lose your data on Mac OS X by ernst_mulder (Score:1) Tuesday November 06, @06:14PM
  • Never move, copy, verify & delete instead by MMHere (Score:2) Tuesday November 06, @08:17PM
  • I don't see what the big deal is about ____ by Bushido Hacks (Score:1) Wednesday November 07, @12:11AM
  • Jeez, get over it. This'll be fixed... by Zhe Mappel (Score:2) Saturday November 10, @04:30AM
  • Data Loss by relikmu (Score:1) Wednesday November 14, @01:48PM
  • Apple fixes potential data loss wit OSX 10.5.1 by itsybitsy (Score:1) Thursday November 15, @04:41PM
  • Every System have critical bugs by El Lobo (Score:2) Monday November 05, @06:54PM
  • Re:Haha by CtrlShiftEsc (Score:1) Monday November 05, @07:40PM
  • Re:defectivebydesign (Score:5, Funny)

    by klubar (591384) <ken@lubar.net> on Monday November 05, @08:48PM (#21249629)
    (http://emiboston.com/)
    You have to word the dialog box more precisely. "Do you wish to not allow data corruption or success on loss of destination meda?" Cancel? Retry? Abort? Ok?
  • Re:How Dare You by Jaerin (Score:1) Monday November 05, @09:01PM
  • Re:Problems (Score:4, Funny)

    by Space cowboy (13680) * on Monday November 05, @09:34PM (#21249991)
    (Last Journal: Friday April 27 2007, @02:20PM)
    No need to mod you down. You're just wrong.

    simon% dd if=/dev/zero of=test bs=1m count=17
    17+0 records in
    17+0 records out
    17825792 bytes transferred in 0.297437 secs (59931329 bytes/sec)
     
    simon% ls -l test
    -rw-r--r-- 1 simon 501 17825792 Nov 5 18:32 test
     
    simon% /usr/bin/time cp test ~/Desktop
            0.44 real 0.00 user 0.03 sys
     
    simon% ls -l ~/Desktop/test
    -rw-r--r-- 1 simon 501 17825792 Nov 5 18:33 /Volumes/Users/Users/simon/Desktop/test
     
      simon% uname -a
    Darwin mac 9.0.0 Darwin Kernel Version 9.0.0: Tue Oct 9 21:35:55 PDT 2007; root:xnu-1228~1/RELEASE_I386 i386
    ... I suspect you have a hardware problem if it's really taking that long to copy files. The above 0.44 secs (wall-clock time) is on a standard internal SATA disk. No RAID or anything special.

    Simon.
    • Re:Problems by Daengbo (Score:3) Monday November 05, @10:58PM
    • Re:Problems by S.Rowsby (Score:1) Tuesday November 06, @04:10AM
  • Re:Macs suck! not only they lose data.. by rpp3po (Score:1) Monday November 05, @09:42PM
  • Re:Problems by primalamn (Score:1) Monday November 05, @10:21PM
    • Re:Problems by dreddnott (Score:2) Monday November 05, @11:11PM
  • 27 replies beneath your current threshold.