Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to remove duplicate entry in Devices list in Nautilus

📅 2013-Mar-17 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive


The Devices list shown at the top of the Sidebar in Nautilus lists the other partitions found in the hard disk or any other storage devices plugged into the computer. Since I dual-boot between Windows and Ubuntu, the Devices list shows the NTFS partitions on the hard disk. I added a line to /etc/fstab to mount one of my NTFS partitions automatically at boot. After I did this, the Devices list in Nautilus started to show a duplicate entry for this partition, with one of it mounted and the other unmounted.


There seems to be a simple solution to this bizarre problem. The fstab entry I am using to mount the NTFS partition uses the UUID of the partition. Replacing this with the old style /dev/sda partition name fixed this problem.

For example, my fstab entry read UUID=A5190634180941Z5. I changed that to /dev/sda5 You can list the dev and UUID entries for all your partitions by using the command sudo blkid

Tried with: Ubuntu 12.04.2 LTS