LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2010, 09:50 PM   #1
mv6688
LQ Newbie
 
Registered: Jun 2010
Distribution: fedora
Posts: 11

Rep: Reputation: 0
Inode problem (I think)


Hi

I'm running FC13, and suddenly, when I try to connect a camera for picture download, the desktop icon that would otherwise open the camera's memory directory opens a network directory instead. Seems the inode is munged and misdirecting.

If I go

cd .gvfs
ls -i

I get

2 gphoto2 mount on usb%3A002,005

an inode of 2???

gphoto2 is broken too, but I'm not as worried about that.

Any ideas? Thank you!
 
Old 06-26-2010, 12:11 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
YUM has a reinstall option, so you could try to reinstall the application.

But an inode problem may indicate a hard disk problem, and a fsck may be in order. (CAUTION: Running fsck on a partition containing a Logical Volume will destroy the logical group containing the logical volume.)

Alternatively, you're looking a the GNOME Virtual File System (.gvfs) ls output, so the values you see for the inode may be "virtually" correct.

Finally, if you installed F13 from the live CD, or if you can download and burn the live CD, try booting from it and seeing if the camera's data can be read. Perhaps all that's happening is that your camera has failed, and can't be accessed, so the "icon" is asking you to tell "it" where it's supposed to find the images to read.
 
Old 06-26-2010, 09:07 AM   #3
mv6688
LQ Newbie
 
Registered: Jun 2010
Distribution: fedora
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme View Post
YUM has a reinstall option, so you could try to reinstall the application.

But an inode problem may indicate a hard disk problem, and a fsck may be in order. (CAUTION: Running fsck on a partition containing a Logical Volume will destroy the logical group containing the logical volume.)

Alternatively, you're looking a the GNOME Virtual File System (.gvfs) ls output, so the values you see for the inode may be "virtually" correct.

Finally, if you installed F13 from the live CD, or if you can download and burn the live CD, try booting from it and seeing if the camera's data can be read. Perhaps all that's happening is that your camera has failed, and can't be accessed, so the "icon" is asking you to tell "it" where it's supposed to find the images to read.
Thanks PT. Have reinstalled gvfs (and gphoto), but the behavior persists. The camera(s) is(are) OK because it happens with any camera, the camera info is read correctly, and the cameras work fine on other machines.

The history on the problem is that I clicked and dragged the contents of a camera onto my desktop, then copied that folder to my network server. Now, the camera desktop icon launches Nautilus in the usual way, but Nautilus looks at the network server, it doesn't look at the contents of the camera. To me, that means that somehow the wrong inode has been picked up and associated with the camera icon. And that's my knowledge barrier - don't know enough to know where to look next.

Last edited by mv6688; 06-26-2010 at 11:02 AM.
 
Old 06-26-2010, 12:35 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Can you post the contents of the ....desktop file used to create the icon? (Look in the Desktop directory for the file.) Perhaps a simple edit of the file will fix your problem.
 
Old 06-26-2010, 01:28 PM   #5
mv6688
LQ Newbie
 
Registered: Jun 2010
Distribution: fedora
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme View Post
Can you post the contents of the ....desktop file used to create the icon? (Look in the Desktop directory for the file.) Perhaps a simple edit of the file will fix your problem.
What kind of edit? Sorry, you'll have to explain again.

As for contents, it just lists what's on my server. In graphics mode, if i right click the camera icon and click "properties", gvfs freaks out and pretty much locks my machine for a few minutes.
 
Old 06-26-2010, 05:04 PM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
You need to open a terminal and enter a few commands. Here's an example:
Code:
[Peter@dv9810us ~]$ ls Desktop/
autoten.desktop  trash.desktop
[Peter@dv9810us ~]$ cat Desktop/autoten.desktop 

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=autoten
Comment=Dangermouse's script
Exec=autoten
Icon=autoten
Terminal=true
Type=Application
Categories=System;Application;X-Fedora;
X-Desktop-File-Install-Version=0.15
Name[en_GB]=autoten
Name[en_US]=Automatic Install

[Peter@dv9810us ~]$
(I don't actually display icons on my desktop, so my "Desktop" directory is quite sparse.)
 
Old 06-26-2010, 09:13 PM   #7
mv6688
LQ Newbie
 
Registered: Jun 2010
Distribution: fedora
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme View Post
You need to open a terminal and enter a few commands. Here's an example:
Code:
[Peter@dv9810us ~]$ ls Desktop/
autoten.desktop  trash.desktop
[Peter@dv9810us ~]$ cat Desktop/autoten.desktop 

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=autoten
Comment=Dangermouse's script
Exec=autoten
Icon=autoten
Terminal=true
Type=Application
Categories=System;Application;X-Fedora;
X-Desktop-File-Install-Version=0.15
Name[en_GB]=autoten
Name[en_US]=Automatic Install

[Peter@dv9810us ~]$
(I don't actually display icons on my desktop, so my "Desktop" directory is quite sparse.)
Thanks Peter

I just get:
$ ls Desktop
<snip>
canon contents

$ cat Desktop/canon\ contents/
cat: Desktop/canon contents/: Is a directory
 
Old 06-27-2010, 01:42 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Try, first, a ls -l Directory to see if Canon\ contents is a link or an actual directory. Then do a ls "Directory/Canon contents" to see what's in it. (Or if it just pops the same file manager you see when you click on the folder icon.)

Is the icon on which you're "clicking" labeled "Canon contents?" Is that icon always present on your desktop, or just when you have the camera connected.

What I'm thinking is that somehow you created a link from your Desktop directory to the network folder where you saved your backup, and that link is now sitting on your desktop. (The copy you used may have done that automatically if you did it using a GUI file manager.) If that's the case, all you'll need to do is change the link to point to (I guess) /media/Canon\ contents instead of wherever it's now pointing. (To change a link, first remove it with a rm "Desktop/Canon contents"command, and then recreate it with a ln -s "/media/Canon contents" "Desktop/Canon contents" command.)

Here's an example output of my home directory, with the links highlighted in red:
Code:
$ ls -l
total 62660
drwxrwxrwx. 91 Peter peter     4096 Mar 25 19:48 Books
drwxrwxr-x.  2 Peter peter     4096 Jan  6 08:22 Compiz
lrwxrwxrwx.  1 Peter peter       25 Feb 15 11:40 Compressed Books -> /Backups/Compressed Books
drwxrwxrwx.  2 Peter peter     4096 Jun 26 13:45 Desktop
drwxrwx-wx. 10 Peter peter     4096 Jun 17 13:23 Documents
lrwxrwxrwx.  1 Peter peter       18 Feb 15 11:34 Downloads -> /Backups/Downloads
lrwxrwxrwx.  1 Peter peter       17 Feb 15 11:37 Pictures -> /Backups/Pictures
drwxrwxr-x.  9 Peter peter     4096 May  2 12:32 Scripts
drwxrwxr-x.  2 Peter Peter     4096 Jun 16 11:15 smb4k
drwxr-xr-x. 18 Peter peter     4096 Apr 11 14:05 tmp
drwxrwxr-x.  3 Peter peter     4096 May 26 15:51 TSS-4
 
Old 06-27-2010, 02:14 PM   #9
mv6688
LQ Newbie
 
Registered: Jun 2010
Distribution: fedora
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme View Post
Try, first, a ls -l Directory to see if Canon\ contents is a link or an actual directory. Then do a ls "Directory/Canon contents" to see what's in it. (Or if it just pops the same file manager you see when you click on the folder icon.)

Is the icon on which you're "clicking" labeled "Canon contents?" Is that icon always present on your desktop, or just when you have the camera connected.

What I'm thinking is that somehow you created a link from your Desktop directory to the network folder where you saved your backup, and that link is now sitting on your desktop. (The copy you used may have done that automatically if you did it using a GUI file manager.) If that's the case, all you'll need to do is change the link to point to (I guess) /media/Canon\ contents instead of wherever it's now pointing. (To change a link, first remove it with a rm "Desktop/Canon contents"command, and then recreate it with a ln -s "/media/Canon contents" "Desktop/Canon contents" command.)

Here's an example output of my home directory, with the links highlighted in red:
Code:
$ ls -l
total 62660
drwxrwxrwx. 91 Peter peter     4096 Mar 25 19:48 Books
drwxrwxr-x.  2 Peter peter     4096 Jan  6 08:22 Compiz
lrwxrwxrwx.  1 Peter peter       25 Feb 15 11:40 Compressed Books -> /Backups/Compressed Books
drwxrwxrwx.  2 Peter peter     4096 Jun 26 13:45 Desktop
drwxrwx-wx. 10 Peter peter     4096 Jun 17 13:23 Documents
lrwxrwxrwx.  1 Peter peter       18 Feb 15 11:34 Downloads -> /Backups/Downloads
lrwxrwxrwx.  1 Peter peter       17 Feb 15 11:37 Pictures -> /Backups/Pictures
drwxrwxr-x.  9 Peter peter     4096 May  2 12:32 Scripts
drwxrwxr-x.  2 Peter Peter     4096 Jun 16 11:15 smb4k
drwxr-xr-x. 18 Peter peter     4096 Apr 11 14:05 tmp
drwxrwxr-x.  3 Peter peter     4096 May 26 15:51 TSS-4

Yup, "canon contents" is a directory.

$ ls -l
e.g.
-rw-rw-r--. 1 x x 148945 Jun 24 15:31 campy_shifters.jpeg
drwxrwxr-x. 3 x x 4096 Jun 23 08:43 canon contents
etc

ls -l canon\ contents/
total 4
drwxrwxr-x. 2 x x 4096 Jun 23 08:43 100CANON

and from there, the contents of 100CANNON is the contents of the camera. BUT, going through the gui and nautilus, "canon contents" is my nfs server's output. (Utterly weird, but at least I can access it - I thought I'd be stuck with removing the camera's media and using a card reader - thank you!)

The desktop icon is generated automatically on connection and disappears when the camera is disconnected or unmounted via the right-click option.
 
Old 06-27-2010, 03:21 PM   #10
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
So it now seems that it is probably something in the nautilus settings. I don't use nautilus as a file manager, so can't suggest much. There might be something in the hidden .nautilus directory, but perhaps it's as simple as something in the nautilus settings tab.
 
Old 06-27-2010, 10:48 PM   #11
mv6688
LQ Newbie
 
Registered: Jun 2010
Distribution: fedora
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme View Post
So it now seems that it is probably something in the nautilus settings. I don't use nautilus as a file manager, so can't suggest much. There might be something in the hidden .nautilus directory, but perhaps it's as simple as something in the nautilus settings tab.
There's nothing I see there that makes a difference. But I did discover a stupid mistake - the desktop icon is not a directory - I have a number of things on my desktop, including something called "canon contents", and I mistook that for the icon when I did "ls -l". In fact, that command reveals nothing no desktop icon as a directory, so I have no idea where it's generating that thing from.

Regarding Nautilus, I went into the .nautilus directory and cleared everything out. It makes no difference.

 
Old 06-28-2010, 08:50 AM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
As I said, I seldom use Nautilus, but I just opened my copy and noticed left-hand panel has several different display options available from the pull-down selection list at the top of that panel. If you switch to the "Places" display option, do you have a "Canon contents" place defined below the separator? If so, click on it and see if that "place" is defined as the network location. If it is, try removing that "place" definition by right-clicking on it and selecting "remove."

I'm shooting in the dark here, and don't think I can offer much more.

Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hard links problem: how to delete all pointers to an inode at once? onufry Linux - General 6 11-18-2007 07:27 PM
Can't boot, LVM and inode problem Raoul68 Linux - General 2 11-01-2005 02:34 PM
Can't boot, LVM and inode problem Raoul68 Linux - Hardware 0 10-30-2005 04:14 AM
Slackware 10 setup problem. "error reading inode" xadis Slackware - Installation 5 01-20-2005 11:52 AM
inode muthiahm Linux - Newbie 2 06-11-2004 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration