Displaying 1 result from an estimated 1 matches for "meduia".
Did you mean:
media
2008 Jul 03
3
Running shell scripts from external media
OS=CentOS-5.2
media=Kingston 512Mb usb key
Problem:
As 'root', when running a script resident on the external drive mounted at
/media/disk I receive the following error:
/bin/sh: bad interpreter: Permission denied
The meduia is a 512Mb USB key formatted as ext2/3
# ll
-rwx------ 1 root root 28 Jul 2 17:30 hello.sh
# cat hello.sh
#!/bin/sh
echo Hello World!
# which sh
/bin/sh
I believe that this can be resolved by an entry in /etc/fstab but I cannot
determine what entry to make.
# cat /etc/fstab
/dev/VolGroup0...