No interpereters for files on a specific partition?
From: Mike Mol (mikemol_at_gmail.com)
Date: 02/28/05
- Previous message: Tony: "Serial Port Bridge"
- Next in thread: zentara_at_highstream.net: "Re: No interpereters for files on a specific partition?"
- Reply: zentara_at_highstream.net: "Re: No interpereters for files on a specific partition?"
- Reply: Chris F.A. Johnson: "Re: No interpereters for files on a specific partition?"
- Reply: Markus Kossmann: "Re: No interpereters for files on a specific partition?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Feb 2005 04:30:15 -0800
When I run scripts that require a shebang to run, where the scripts are
on a specific partition, bash says something analogous to:
-bash: ./error.sh: /home/shortcircuit/sh: bad interpreter: Permission
denied
(contrived example using a friends system; I don't have access to my
machine from work/school. /home/shortcircuit/sh is a "chmod -x"'d copy
of /bin/sh)
First, my system specs:
* Duron 750MHz, 768MB RAM
* Debian sarge, last updated with packages from jigdo CDs made in early
December.
* / is mounted from /dev/hda1
* /home is mounted from /dev/hdb1
* /home/shortcircuit/data/external is mounted from /dev/sda2
* /home/shortcircuit/data/fat32 is mounted from /dev/sda1
* / and /home are ext3 filesystems. They work fine.
* /dev/hda is an internal IDE/ATA 20GB drive
* /dev/hdb is an internal IDE/ATA 40GB drive
* /dev/sda is an external 250GB drive connected to a PCI USB2 (EHCI)
add-on card
* /dev/sda1 is an 80GB FAT32 partition
* /dev/sda2 is a 170GB ext3 partition
* I have approx. 11GB free on /dev/hda1, 21GB free on /dev/hdb1, and
significantly more free on /dev/sda2.
When I run interpereted scripts from any folder under
/home/shortcircuit/data/external, I get an error similar to the error
given above (albeit with a proper path to the interpereter.). I've
confirmed this for scripts needing /bin/sh, /bin/bash, and
/usr/bin/perl.
When I copy any of the scripts to /home/shortcircuit/data,
/home/shortcircuit, or even /usr/src, they work fine.
running "mount" doesn't show any flags I don't recognize, nor does
running lsattr on the scripts relevant.
"fsck.ext3 -f -v /dev/sda2" doesn't show anything unusual. "fsck.ext3
-cc -f /dev/sda2" was still running as I left for work this morning,
but hadn't yet shown any errors after running for four and a half
hours.
Finally, dmesg didn't turn up any errors.
Am I missing something? Are there any other tests I can run? (Be
warned I won't get a chance to respond with results until Wednesday;
I'm not going to see that machine until tomorrow night.)
- Previous message: Tony: "Serial Port Bridge"
- Next in thread: zentara_at_highstream.net: "Re: No interpereters for files on a specific partition?"
- Reply: zentara_at_highstream.net: "Re: No interpereters for files on a specific partition?"
- Reply: Chris F.A. Johnson: "Re: No interpereters for files on a specific partition?"
- Reply: Markus Kossmann: "Re: No interpereters for files on a specific partition?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]