| Author |
Message |
|
|
Post subject: I♥QNX in file system
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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... |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: I♥QNX in file system
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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
Tim |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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 & |
|
|
| |
|
|
|
 |
|
|