Ask Your Question

USB disk from Centos to F17: "The folder contents could not be displayed"

asked 2012-09-30 19:17:31 -0500

Panzas gravatar image

updated 2014-09-28 13:04:42 -0500

mether gravatar image

Hi guys,

I came from Centos and install Fedora 17, everything is perfect, but, when I plug my usb Disk drive Fedora send me this horrible message "The folder contents could not be displayed" and "You do not have the permissions necessary to view the contents of "BlackEd""

I tried to solve the problem and look for a solution, and find this other fedora forum

and I know it was an error, I followed the instructions in that note and nothing happens, besides I did not check the /etc/passwd config file before just after, obviously my UID and the GID change from "I do not know" to 1000,

I do not know how to solve this issue — can anyone help me? Thanks a lot!

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2012-10-04 06:46:33 -0500

mattdm gravatar image

Do you know what filesystem the USB drive was formatted with?

If it's a VFAT filesystem, the permissions are irrelevant and it should be mounted with all files assigned to the current user by default, so if that's the case something is going wrong.

If it's a filesystem which knows about user ids, that could be the problem. When the drive is mounted, from a terminal window, find its location — probably under /media. Do ls -n in that directory — the n means "show numeric user id", and you'll find the answer in the third column. For example, on my system in my home directory, I get something like:

  $ ls -n
  drwxrwxr-x.   3 18281 18281  4096 Sep 27 15:53 bin
  drwxrwxr-x    2 18281 18281  4096 Jul 25 11:40 etc
  drwx------   26 18281 18281 12288 Jul 25 13:14 priv
  drwxrwxr-x    3 18281 18281  4096 Jul 26 14:48 lib

and there, 18281 is the number for both my user and my group.

But, this is really just informational — as long as you make it match your current UID, the problem described in the Fedora Forum answer should be solved. (You can find your current UID by typing id, which is sometimes easier than looking in /etc/passwd.)

edit flag offensive delete link more

answered 2012-10-04 03:51:47 -0500

Hiisi gravatar image

Chown your files! Open terminal window, navigate to usb stick and (as root) execute the follovwing command: chown -R <new_user_name> *

edit flag offensive delete link more

Question Tools


Asked: 2012-09-30 19:17:31 -0500

Seen: 1,699 times

Last updated: Oct 04 '12