LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-13-2010, 10:38 PM   #1
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Can't run script after hard disk was filled


I have a MythTV backend setup with videos also transcoded to a directory for streaming to my Roku frontend. A week ago, the backend had an issue that caused the hard disk to fill up, which borked a bunch of things up. I've since repaired the damage (and learned a lot about log size settings for logrotate.d). Anyway, my last problem is that a script I wrote to compare the files in the transcoded directory to the MythTV base directory and delete files no longer relevent doesn't work anymore. I get the following error when run by any user, including root:
Code:
bash: ./roku-autoexpire.sh: /bin/bash: bad interpreter: Permission denied
The script worked fine before the hard disk fill, but now I can't seem to get it to work. Both the original MythTV partition and the streaming partition are XFS. Here's the pertinent lines from fstab:
Code:
/dev/sdb1       /var/www/mythroku       xfs     defaults,auto,grpid,exec,user   0       0
/dev/sdc1       /mnt/mythtv     xfs     defaults,exec,user      0       0
Permissions for the directories are the following:
Code:
drwxrwxr-x  2 mythtv mythtv 16384 2010-12-13 19:21 /var/www/mythroku
drwxrwxr-x 2 mythtv  mythtv   20K 2010-12-13 20:13 /mnt/mythtv
Any ideas on where to begin? I tried fiddling with the mount options for the partition, but that didn't seem to solve the problem.

Last edited by pljvaldez; 12-13-2010 at 10:40 PM.
 
Old 12-14-2010, 03:23 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Have you had a look at the file /bin/bash to see if it:
a) exists
b) has at least executable permissions, I don't know if you'd need any others; you could set it to 777 temporarily just to see if it fixes the problem
c) works as you would expect
 
Old 12-14-2010, 03:31 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Original Poster
Rep: Reputation: 281Reputation: 281Reputation: 281
I did check \bin\bash and even wrote a quick script to touch file.txt. It works in ~ but not on the /var/www/mythroku directory. I CAN just run touch file.txt from bash in that directory. But if I put it in a script it fails to execute. So I think this is a mount/permissions issue related to execute permissions, but I can't see the problem.
 
Old 12-15-2010, 10:15 AM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
And I assume
Code:
echo $SHELL
returns /bin/bash as you'd expect, even from that directory? And have you tried installing another shell, like zsh, then running
Code:
cd /var/www/mythroku
/bin/zsh #prompt should change to zsh default
/bin/bash #prompt should change back
exit; exit
I only propose installing zsh so you can actually tell if it's running /bin/bash properly from the mythroku directory, you might be able to think of a better way...
 
Old 12-15-2010, 10:37 AM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Original Poster
Rep: Reputation: 281Reputation: 281Reputation: 281
I fiddled around with the fstab line some more and just set it to "defaults" and remounted the partition. It appears to be working now. It's weird to me that xfs doesn't take all the normal mount options of other linux filesystems. Thanks for the help.
 
  


Reply



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
[SOLVED] Hard Drive filled up? AKviking Linux - General 2 05-30-2010 05:24 PM
A script for looking at hard disk space wimnat Linux - Hardware 2 09-24-2009 09:09 PM
Filled hard disk with wrong CP command... buccaneere Linux - Software 37 02-21-2009 11:30 AM
Hard drive space filled, X fails, says connection reset by peer solar_64131 Linux - Software 5 08-28-2006 04:37 PM
possible to run linux from an external hard disk? hyderabadi Linux - Newbie 2 03-20-2003 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:26 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
Open Source Consulting | Domain Registration