How to get my external and internal drives to show up on the desktop

I have a 2020 iMac running Catalina. I would like for my internal drive and my external drives to show up on my desktop. Currently I have a blank desktop. I have tried going to Finder/Preferences and selecting the General tab. From General I check the boxes for Hard Disks and Internal Disk but they don't show up. Is there a command line tool to display them?

When I first started my new computer the internal drive and the external drives all showed up on my desktop. Later that day I used migration assistant to transfer the files i wanted to to my new machine. Since then none of my drives show up on the desktop.


Solution 1:

In Terminal, run the following compound command:

defaults delete com.apple.finder; killall -HUP Finder

Then go to Finder > Preferences… > General and under Show these items on the desktop, check Hard disks and check External disks.