Showing posts with label filesystem. Show all posts
Showing posts with label filesystem. Show all posts

Encrypt Filesystems



If you are using modules you need to load these first:
modprobe loop;modprobe cryptoloop;modprobe cipher-aes
Basically you:
losetup -e aes -k 256 /dev/loop0 /dev/partition
You will be asked for a password. Then
mount /dev/loop0 /path/to/mount


Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

Defragment your XFS partition



If one beautiful morning, you like me found yourself having performance problems with reading from your huge XFS partition, you probably will think about defragmentation for the partition (at last if you had former windows experience). And will be right, case XFS in difference of ReiserFS needs a defragmenation. So this is how you may do it.


Then you'll need to check if your partition needs a defragmentation in really

# xfs_db -r /dev/sda5
 
xfs_db> frag
actual 22222222, ideal 2342342, fragmentation factor 99.9%
xfs_db> quit


Once you see a scary fragmentation factor, run the command for the optimization

# xfs_fsr -v /dev/sda5
.......

This whill take some time.

Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

Popular Posts