Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Restore Deleted Printers

I've searched the forum for similar topics, but did not find any. Sorry if I missed any.

I had several printers installed, and was trying to install an unsupported printer (HP Color Laserjet 1600) by installing the HP driver packaged for the 2600n. It didn't work, but it deleted a few of my printers (HP and Epson).

I went to time machine, and restored my printers folder, but this did not work.

Is there some other way to restore this or to uninstall the HP software that I should not have installed?

thanks.

Mini, Mac OS X (10.6.6), PC Keyboard on KVM

Posted on Mar 8, 2011 11:19 AM

Reply
Question marked as Best reply

Posted on May 20, 2011 3:01 AM

Hi MacRussell,


I had a similar problem - I made a huge mistake yesterday by going into System Preferences, left-clicking on the printer I wanted to connect to, and clicking on the "Reset Printing System" which led to a box that said "Are you sure you want to reset all of your existing printer queues and all pending print jobs?" and then I clicked OK. I thought it would cancel any open print jobs (and there were none open) and reset the printer that I was trying to connect to. What the prompt SHOULD have said is "DO YOU REALLY WANT TO DELETE ALL OF YOUR PRINTERS???" Because that is exactly what happened. I searched for a very long time on these discussion boards and on the rest of the Internet for a way to get back all of my installed printers. Why not just reinstall them? Because I had way too many network printers, local printers, etc. and all with their own customized settings that I couldn't remember. But I finally found the answer, and I hope you don't mind me posting it as an answer to your question, but when I found your post I was upset that no one responded because I also really needed to know what to do. But I did fix it, everything is back to normal, so this is for all those folks out there that are in the same situation we were in.


Here's what I did:


Step 1: Open Finder, go to Macintosh HD > Users > (YourName) > Library > Printers. That folder should be empty since you deleted those files when you reset the printers. Leave that folder open. Open another Finder window and go to your Time Machine backup. For me, the path was TimeMachine > Backups.backupdb > (2011-05-19-034706 - use your latest backup date, this is just the date of my last backup) > Macintosh HD > Users > (YourName) > Library > Printers. That folder should have some files that have your printer name.app (i.e. hp officejet 5500 series.app). Copy all of those files , and paste them into the Printers folder on the first Finder window we opened above. Now, close both those Finder windows.


Step 2: This is a bit tricky, as we now need the Mac to show us some hidden files, copy those files, and then hide those files again when we are done. Do exactly as follows to avoid any problems:


Open the Application Terminal (in the Utilities subfolder)

At the prompt, type these two commands (hit enter after each command)


defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder


Now, hit Command-N to open a new Finder window (or just open it from your dock). Click on your Macintosh HD under Devices, then you will see a bunch of folders that are normally hidden. You want to go to the etc folder by double-clicking it. Then, expand the cups folder and you will see the ppd folder. On your Hard Drive, it will be empty since you deleted those files when you reset your printers. So here's the path in case I confused you: Macintosh HD > etc > cups > ppd. Now, open another Finder window and go to the same path on your Time Machine backup. For me, it was TimeMachine > Backups.backupdb > 2011-05-19-034706 > Macintosh HD > etc > cups > ppd. You will see that folder should have some files that have your printer name.ppd (i.e. hp officejet 5500 series.ppd). Copy all of those files , and paste them into the empty ppd folder on the Finder window on your hard drive. You will be asked if your sure and to type your password, so just go ahead. It will be okay.


Step 3: We are not done yet. There are some files in the cups folder that we also need to copy from the Time Machine backup into your hard drive. So keeping both those Finder windows open, go up one level to the cups folder (on your hard drive, Macintosh HD > etc > cups ; on your Time Machine backup, TimeMachine > Backups.backupdb > 2011-05-19-034706 > Macintosh HD > etc > cups. Copy the following files from your Time Machine backup to the hard drive:


cupsd.conf

cupsd.conf.bak

printers.conf

printers.conf.O


Now, there was a file on my hard drive in the cups folder that was not in my time machine backup called cupsd.conf.O that I didn't know what to do with, but I figured it couldn't be good. So I copied it into a temporary folder (just in case) and then deleted it from the cups folder on my hard drive.


Step 4: You are almost done. Go to System Preferences and click on Print & Fax, and you should now see all your printers back in the list. Congratulations, your printers have been restored! But we still need to hide all those pesty hidden files and folders in Finder, so close all open windows and go back to the Terminal application and type the following commands (hit enter after each command):


defaults write com.apple.finder AppleShowAllFiles FALSE

killall Finder


Then close your Terminal application and open a new Finder window and it will be back to normal with no hidden files or folders showing.


You now have your printers back to where they were before you hit the same "Reset Printers" button that I did (in error) and took me 2 hours of research to figure out how to undue the damage, or had some printers deleted in error when installing an unsupported printer.


If for any reason this doesn't work for you, all I can say is that it worked for me and I wanted to share the fruits of my labor with others who are in a similar predicament as I was. I am by no means an expert in this area, so although I don't see any reason why it wouldn't work, you just never know how one persons computer differs from another, so I apologize if it doesn't work out for you. But I really think it will, so good luck and happy printing!

54 replies

Feb 14, 2012 12:39 PM in response to Paul in LA

Unbelievable! This is just another in a PLETHORA of reasons why I'm really starting to despise my Mac computer (I adore all of my other Apple products, but the computer I want to throw out the window).


I thought the same as the other people - that I was deleting print jobs. It wasn't working for me to delete them in the que, so I tried that. How ignorant is it to not make that statement more clear? I can't be wrong when so many people read it the exact same way I did.


My problem is, I can't seem to find my backups so now I have no clue what to do. This is just ridiculous and I don't have time for it.

Feb 17, 2012 7:15 AM in response to MacRussell

On a 10.6 box with all printers gone, I just restored all 8 printers in about 20 seconds without TimeMachine like so:


Utilities -> Terminal. In the terminal paste in, one at a time, each of the one-line commands in bold below.


Stop the CUPS daemon with the following command:

sudo launchctl stop org.cups.cupsd


Assuming printers.conf.O is bigger, ovewrite the empty printers.conf with it:

sudo cp -p /etc/cups/printers.conf.O /etc/cups/printers.conf


Optionally (I did not need to do this myself) restore cupsd.conf from the O (older) one:

sudo cp -p /etc/cups/cupsd.conf.O /etc/cups/cupsd.conf


Restart the stopped CUPS daemon with the following command:

sudo launchctl start org.cups.cupsd


YMMV, but you might want to try above commands before all the overly complex machinations above and at https://discussions.apple.com/thread/2027997


And I agree that with the need for a clear warning "Do you *REALLY* want to delete *ALL* your printers?" That is not clear to most folks. Even detailed info at http://support.apple.com/kb/HT1341 bluntly speaks of deleting queues and jobs, with nary a mention of printers!

Feb 21, 2012 9:59 AM in response to MacRussell

MacRussell... DUDE!!! You saved me!


Thank You, thank you, thank you... for writing such detailed instructions.


You have no idea how much grief you saved me... just wished I found this article about 24 hours sooner.


Someone needs to buy this man a beer, oops I mean a refreshing beverage of his choosing!


FYI, you trick still works with OSX 10.7.3

Jul 24, 2012 2:34 PM in response to MacRussell

YOU ARE AMAZING. Thank you so much for posting your solution and such detailed instructions on how to fix it! So many people post "solutions" that are extremely complex and completely un-followable for us normal folk who are NOT computer geniuses...your instructions wer crystal clear and you even thoughtfully put the paths in there for us like Macintosh HD>etc>etc>etc. Thank you thank you thank you again!!

Jan 13, 2013 9:19 AM in response to Paul in LA

(A few months later....) I've done exactly the same thing with regards to accidentally 'resetting the print system'. I've read through your instructions which look invaluable. However I've got the slight extra problem of not having Time Machine backup on that side of things. I've only been using Time Machine to back up my external drive of files. Now I include the MacHD drive too but the horse has already bolted.

My Kodak 5250 printer won't show up in my Preferences when I try to add it. It shows up as being plugged in via USB but at Print Using:.. Choose a Drive or Printer Model, I just get options for Select Printer Software which takes me to an empty box, or Other which then leaves me stuck as to what to select.

Can you or anyone help me out here? What has Resetting Print System actually done and how can I get repair it? Many thanks Paul J

Jan 13, 2013 4:49 PM in response to pajcksn

pajcksn wrote:


What has Resetting Print System actually done and how can I get repair it?

Resetting the printer system has deleted your printers. Without a time machine backup, you can either reinstall your printer, or you can attempt the instructions of member @ncprius2 on the first page of this thread. I dunno if that will work or not, because like I said before, I'm not an expert by any means. But if his instructions work, then you won't need the time machine backup of the printers. Let us know how it goes. Good luck!

Restore Deleted Printers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.