0

I have done a backup using rsync and restored the system as a test. All went well except that I cannot click on the partition listing in nautilus anymore. When I do it complains about "This location cannot be displayed. You do not have the permission necessary to view the contents". Opening nautilus as root gives no such problem. My backup command was:

sudo rsync -av --one-file-system --hard-links --human-readable --numeric-ids --progress /media/myext4usbkey/backup /dev/sda5myubuntupartition

What do I need to do next time so I don't run into this problem anymore?

To clarify, I'm not asking for a better backup tool or how rsync would compare with other tools, just how I can solve this problem using rsync.

koen
  • 119

1 Answers1

0

Partitions are visible to users in the group disk. If you were in that group before you should still be if you saved and restored files in /etc. You can see which groups you are in with the commandid. To add group disk to your user id do

sudo usermod -aG disk $USER

You will need to login to see the change.

meuh
  • 3,211
  • In a fresh install this is the output of id: uid=1000(koen) gid=1000(koen) groups=1000(koen),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),115(lpadmin),131(sambashare). I can see partitions now though. – koen Aug 14 '15 at 05:11
  • @koen ok. I dont know what else it could be then. some simple things are just too complicated nowadays... – meuh Aug 14 '15 at 06:21