You are not logged in.

#1 2008-04-08 00:44:49

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Restrict folder size

I couldn't decide if this should be here or in the multimedia section...please move if it shouldn't be here...

I have done some Google(tm) searching on this subject, but haven't found anything for linux. My MythTV server just got 'repaired' (read severly downgraded) and I lost my big boot drive. My origional partitioning was:

sda1 - 20GB boot
sda2 - 30GB home
sda3 - 110GB dedicated to mythtv recordings
md0 - 1.5TB of general storage

Basically, I've lost my capasity to have a seperate "sda3" partition in my system. I've put the recordings onto the md0, but I really really don't want the recordings taking over ALL of my storage space, which mythtv will do. I have not been able to find a way to have Mythtv set an overall storage size, so I'm looking for a way to have the OS restrict the size of the folder that the recordings are in. Any ideas?


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

#2 2008-04-08 01:26:07

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: Restrict folder size

Play with disk quotas.

(or quotas might not even be needed, just create a virtual filesystem image and mount that in a proper location so mythtv would use that, see the first section of the second google result)

Last edited by lucke (2008-04-08 01:32:25)

Offline

#3 2008-04-08 01:51:53

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Re: Restrict folder size

Thank you! That would actually work. Just do a dd of sda3 (the old one) into a file. Then just mount the file to my mythtv folder. I may have an overhead problem with a PIII running a mounted file on a software RAID 5 array, but it's so worth a shot.


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

Board footer

Powered by FluxBB