OpenQNX :: The QNX Community Portal

May 13, 2008 - 10:34 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 70 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
d_eberth
Post subject: I♥QNX in file system  PostPosted: Apr 30, 2008 - 01:09 PM
New Member


Joined: Jul 12, 2005
Posts: 6

Hi,

On our QNX4.25 system, the other day I was unable to use pipe "|" (as in sin|more). When I did, it seemed to try to execute every file in the directory I happend to be in.

Now many of the directories have what looks like a binary file called I♥QNX. Looks like the file system is messed up. What is going on? Any help is appreciated.

Thanks,
Dan
 
 View user's profile Send private message  
Reply with quote Back to top
ysinitsky
Post subject: RE: I♥QNX in file system  PostPosted: Apr 30, 2008 - 01:40 PM
Active Member


Joined: Dec 14, 2005
Posts: 34

Hello Dan,
What was the exact command that caused the problem? Was it just sin|more? Is the problem reproducible?
As to the file system being messed up, try to fix it with chkfsys.
Thanks,
Yuriy
 
 View user's profile Send private message  
Reply with quote Back to top
d_eberth
Post subject: RE: I♥QNX in file system  PostPosted: Apr 30, 2008 - 01:49 PM
New Member


Joined: Jul 12, 2005
Posts: 6

Hi,

Thanks for responding.

It seemed to happen when I used pipe "|". For example "sin|more" or "sin|less". It was OK when using sin by itself.
 
 View user's profile Send private message  
Reply with quote Back to top
ysinitsky
Post subject: RE: I♥QNX in file system  PostPosted: Apr 30, 2008 - 01:58 PM
Active Member


Joined: Dec 14, 2005
Posts: 34

Hello Dan,
Can you post (attach) one of the files with this strange name?
Thanks,
Yuriy
 
 View user's profile Send private message  
Reply with quote Back to top
d_eberth
Post subject: RE: I♥QNX in file system  PostPosted: Apr 30, 2008 - 02:33 PM
New Member


Joined: Jul 12, 2005
Posts: 6

Hello Yuriy,

I ran chkfsys and that fixed all the file problems. Everything looks normal and the I♥QNX files are gone. However, the pipe "|" thing is still a problem.

I can do ls, sin, cat, but when I try to use | it looks like it starts to execute each file in the /bin directory because I see on the display:

.. :not found
.best: not found
Audio: card type not specified
Blkfsys failed to attach name: Resource busy

If you ls the /bin directory, the first few entries are
..
.best
Audio
Blkfsys

So it appears that it's trying to execute each file that it finds.
Strange?
 
 View user's profile Send private message  
Reply with quote Back to top
ysinitsky
Post subject: RE: I♥QNX in file system  PostPosted: Apr 30, 2008 - 02:56 PM
Active Member


Joined: Dec 14, 2005
Posts: 34

Hello Dan,
Try the following:
On console 1:
ls –lR /usr | more

On console 2:
sin –P Pipe

Do you see something like
21 //1/bin/Pipe

Thanks,
Yuriy
 
 View user's profile Send private message  
Reply with quote Back to top
d_eberth
Post subject: RE: I♥QNX in file system  PostPosted: Apr 30, 2008 - 02:59 PM
New Member


Joined: Jul 12, 2005
Posts: 6

Hello Yuriy,

I've solved the problem. It wasn't pipe at all. It was "more" and "less" executables in /bin. They were overwritten with directory information. Once I copied more and less from another node everything was fine.

Thanks again for your help,
Dan
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: I♥QNX in file system  PostPosted: Apr 30, 2008 - 03:34 PM
QNX Master


Joined: Jun 25, 2003
Posts: 974

The I♥QNX is a file system marker that's helpful if you really mess up a disk and want to try to put it back together. It is in a part of the disk that you should never see unless you are looking directly at /dev/hd0t77 or /dev/hd0.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
MSchneider
Post subject: RE: I♥QNX in file system  PostPosted: May 01, 2008 - 02:36 PM
Active Member


Joined: May 28, 2003
Posts: 18

Dan,
I have seen more corrupted before. Someone mistakenly types "ls > more" instead of "ls | more", and instead of piping to more, the more file gets overwritten.
Just need to be aware.
ms...
 
 View user's profile Send private message  
Reply with quote Back to top
d_eberth
Post subject: RE: I♥QNX in file system  PostPosted: May 01, 2008 - 03:15 PM
New Member


Joined: Jul 12, 2005
Posts: 6

Reply to MSchneider:

Funny that you mentioned "more geting corrupted. That's exactly what happened. I was training someone on Monday and that is precisely what he typed by mistake.

"ls > more" which, of course, wrote the listing of /bin into the file "more". Then to add to the confusion, he also typed "ls > less" so that one was corrupted as well.

Thanks to everyone for responding.

Regards,
Dan
 
 View user's profile Send private message  
Reply with quote Back to top
Tim
Post subject:   PostPosted: May 01, 2008 - 05:01 PM
Senior Member


Joined: Mar 10, 2004
Posts: 512

Sounds like a good reason *not* to train newbies by using the root account Wink

Tim
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
KBOB
Post subject:   PostPosted: May 03, 2008 - 09:44 AM
Active Member


Joined: Jul 04, 2005
Posts: 35

Look in root directory. There's file "pipe".
If there isn't pipe don't work.
This file makes with /bin/Pipe utilite.
Put in sysinite next string to run it:
Pipe &
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.