[mythtv-users] Problems with External USB Drives

Jonno jonnojohnson at gmail.com
Wed Nov 26 14:32:12 UTC 2008


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?


More information about the mythtv-users mailing list