LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Some files on a USB stick won't open (http://www.linuxquestions.org/questions/linux-general-1/some-files-on-a-usb-stick-wont-open-761146/)

ppb7 10-11-2009 08:29 AM

Some files on a USB stick won't open
 
here's the situation. I've got on a USB stick lots of files of different formats that open quite naturally when I double-click on them, EXCEPT files to do with the Net (HTML, CSS, PHP). i copied them to my desktop, where I can now open them with a preferred app. so why can I open a .doc file on my stick, but not a .css one? It seems I haven't got the necessary permissions needed to alter group permissions which are set to none (although other files like text files have the same set of permissions but i can still open them). I also checked the default.list and mime.types files ( as per suggested in another thread) and every thing is apprently as it should be; so I am puzzled:confused:. Can anybody help me find how to open those files while they're still on the stick?

Drakeo 10-11-2009 02:07 PM

type sudo nautilus ---> enter password now try it. right click the file and open with your choice

ppb7 10-12-2009 03:34 AM

Quote:

Originally Posted by Drakeo (Post 3715649)
type sudo nautilus ---> enter password now try it. right click the file and open with your choice

Indeed, the command works as a new nautilus window opens. However, as soon as it is closed, then another nautilus window opened, the files don't open any more. So that means that I have to go again through the process you suggested and i rather wanted not to have to do it again. Is there a configuration file that could be altered?
By the way, the following is the error message that I get when running "sudo nautilus":
Quote:

** (nautilus:3646): WARNING **: Unable to add monitor: Operation not supported

--- Hash table keys for warning below:
--> file:///media
--> file:///root
--> file:///media/KINGSTON8GB

(nautilus:3646): Eel-WARNING **: "nautilus-metafile.c: metafiles" hash table still has 3 elements at quit time (keys above)

(nautilus:3646): Eel-WARNING **: "nautilus-directory.c: directories" hash table still has 3 elements at quit time
ppb7@ordi-dfamilial:~$
could that give a clue as to what i have to change?
Thanks in advance for your replies,

lutusp 10-12-2009 03:48 AM

Quote:

Originally Posted by ppb7 (Post 3716176)
Indeed, the command works as a new nautilus window opens. However, as soon as it is closed, then another nautilus window opened, the files don't open any more. So that means that I have to go again through the process you suggested and i rather wanted not to have to do it again. Is there a configuration file that could be altered?
By the way, the following is the error message that I get when running "sudo nautilus":

could that give a clue as to what i have to change?
Thanks in advance for your replies,

Obviously if you can read the files while root, but cannot read the files while not root, the problem is file permissions. The solution is to change the file permissions.

Drakeo 10-12-2009 06:42 AM

right click the file click properties click permissions and change it to your user.

ppb7 10-12-2009 08:17 AM

Quote:

Originally Posted by Drakeo (Post 3716300)
right click the file click properties click permissions and change it to your user.

that's exactly what I did before I posted the thread. All the files on my stick and their copies on my desktop are owned by me, yet only the latter open when i double-click on them. The stick files do open if you right-click on them and do NOT choose the default application. you will agree that this not very convenient, especially with frequently-used files. I am not an experienced linux user, by far, but suspect that I need to change settings somewhere so as to alter permissions.
There are 2 more things i have noticed (are they clues?)
-I can't change any permissions of my stick files (group, others, execute files) and if i want to change the name of the group, I am told that I can't because I haven't got the necessary permissions
-The permissions of the stick do not appear (could not be determined)
Also, I had a go at using chmod to see to what extent i could alter file permissions but don't seem to have got anywhere. However, i've got to point out once again that I wouldn'trust myself in any way regarding performing any task whatsoever. So all manners of comments, suggestions are welcome. (And remember that .doc, .odt and other commonly used files open with no problem)

Drakeo 10-13-2009 08:31 AM

only time I have seen this is when the files were using encryption. this has happened many times.
Last resort down load puppy linux boot it up it runs in ram it is 96 mb a complete gui.
now open the usb drive then open your drive sda1 drive drag the files to sda1 this will ask you to move them or copy . copy them . now open them. If this does not work. You will have to go to that usb drives home website and read about there encrypted device. you may have to use M$ to access it.
Good luck.


All times are GMT -5. The time now is 10:37 PM.