Path: utzoo!mnetor!uunet!cbmvax!schein From: schein@cbmvax.UUCP (Dan Schein CATS) Newsgroups: comp.sys.amiga Subject: Re: Disk Errors. AmigaDOS file system. Message-ID: <3084@cbmvax.UUCP> Date: 5 Jan 88 15:22:01 GMT References: <1338@sugar.UUCP> <3080@cbmvax.UUCP> <7638@sunybcs.UUCP> Reply-To: schein@cbmvax.UUCP (Dan Schein CATS) Organization: Commodore Technology, West Chester, PA Lines: 58 In article <7638@sunybcs.UUCP> jmpiazza@gort.UUCP (Joseph M. Piazza) writes: >In article <3080@cbmvax.UUCP> schein@cbmvax.UUCP (Dan Schein CATS) writes: >>In article <1338@sugar.UUCP> peter@sugar.UUCP (Peter da Silva) writes: >>>I'm starting to get a mite tired of losing files to disk errors when I >>>ZZ out of Z. I can't see why a bad block should ever produce a file with >> >> I use Z on 4 different Amigas. Some with floppies only and some with >> floppies and hard drives. Some with ram: some with vdk: and I have never >> lost a file when exiting (ZZ) from Z. I have no idea what is causing your >> problems, but here is a workaround. Use the ":" "r filename" > > Just a few corrections ... > > That should be "w" for write, rather than "r" for read. Also, using >"w" without a file name will write to the file specified when running Z -- no >need to type out the entire filename each time (I hate typingk). >If you didn't give a filename (perfectly legit) it responds "Can't open output >file" (I just tested it -- ah, multi-tasking). > OPPS! (Red faced) You are right - I did mean "w" and not "r". >> ... approach >> to save your file. This way you write the file without exiting Z. So is >> and error occurs, the file is not lost. If the write is sucessfull, use >> the ":" "q!" approach to exit Z. >> > Use the "q" command WITHOUT the "!" and Z will protect you from >throwing away your changes by refusing to quit. Using the "!" in the >command ( as in "q!") over-rides this protection. You would use the >over-ride in cases when you DON'T want the file saved to disk (like >when you screwed up your file and DON'T want it saved, or like when you >just want to read a file). I recommended the r filename approach so that the file *WOULD* be written under a new (different) name, then exiting using the q! option would leave the original file untouched and the edited file under the new name. (Similar to what ZZ does by saving the unedited original as filename.bak) > It amazes me that many Amiga applications don't even give you this >simple form of protection. > > I've never had any problems and have never used the ZZ command >(well, maybe once or twice when I didn't know what I was doing. :-) > >Flipside, > > joe piazza > -- Dan Schein uucp: {ihnp4|allegra|burdvax|rutgers}!cbmvax!schein Commodore AMIGA ARPANET: cbmvax!schein@uunet.uu.net 1200 Wilson Drive Bix: dschein Plink: Dan*CATS West Chester PA 19380 phone: (215) 431-9100 ext. 9542 +----------------------------------------------------------------------------+ All spelling mistakes are a result of my efforts to avoid education :-) +----------------------------------------------------------------------------+ I help Commodore by supporting the AMIGA. Commodore supports me by allowing me to form my own suggestions and comments.