(Tape) make sure the 'write protect tab' isn't punched out, if it is, you will need to cover the write protect hole with tape.
On the PET tape make sure sound is turned off: POKE 59464,0:POKE 59466,0:POKE 59467,0 The sound generator interferes with the tape operation.
The Commodore 2040,4040,2031,8050,8250,SFD-1001,1540,1541,1570,1571, and 1581 cannot reliably use high-density disks. Use Single or Double Density Disks on the 2040,4040,2031,1540,1541,1570,1571, and 1581. The 8050, 8250 and SFD-1001 use 96 track per inch Disks. Use them if you can find them, though you can use Double Density disks without problem.
If it is a previously used disk that is giving you heck, make sure to add the 2-character disk id (i.e. “N0:NAME,ID”) to do a complete disk format and not a simple directory erase.
Add a 0: (or 1: for second drive) before the file name of disk programs, this will make the disk attempt an Initialize before saving the file.
Are you using a unique file name? the Disk Drive will not automatically overwrite old files. Issue a 'scratch file' command before saving.
Beware of old commercial software disks, some nasty (and stupid) vendors punched holes (which can mess up the drives heads) in the recording area.
1581 diskettes are VERY prone to failure (called the click of death, as the disk starts making a clicking sound when unreadable), handle with care.