[mythtv-users] Problems with External USB Drives

Jonno jonnojohnson at gmail.com
Wed Nov 26 14:47:00 UTC 2008


On Wed, Nov 26, 2008 at 8:41 AM, Aaron Klein <klein.aaron at gmail.com> wrote:
> On Wed, Nov 26, 2008 at 9:32 AM, Jonno <jonnojohnson at gmail.com> wrote:
>> On Wed, Nov 26, 2008 at 2:45 AM, Robin Hill <myth at robinhill.me.uk> wrote:
>>
>>> Fragmentation checking will depend on the filesystem.  There's no
>>> standard way of checking fragmentation (or defragging) an ext2 or ext3
>>> drive (though there are some third party tools - shake is one I've
>>> looked at).  I've no idea about JFS (never used that) but for xfs, you
>>> can check the fragmentation level with:
>>>    xfs_db -r -c frag /dev/sda1
>>>
>>> and run a full defrag with:
>>>    xfs_fsr /mnt/test
>>>
>>> Note that the first requires a device name (and will run on a mounted
>>> filesystem) whereas the second requires the mount point (and the
>>> filesystem to be mounted).
>>>
>>> HTH,
>>>    Robin
>>
>> Well it turns out it wasn't the eSATA/USB switch that was the problem
>> since I woke up this morning to a frozen drive.
>> I used xfs so I checked and the fragmentation level is 99.38%!!! Guess
>> that might be the cause of some problems.
>>
>> My drive /dev/sdb1 is mounted at /media/disk so what do I need to run
>> to defrag, xfs_fsr /media/disk?
>
> sudo xfs_fsr /media/disk

Ok cool got it running now. Any idea how long a 750GB 7200rpm HDD will
take? Also I'm wondering if I have enough space on the drive for it to
work well. I have 5GB set aside through Myth but many of the files
will be larger than that.


More information about the mythtv-users mailing list