Month: September 2015

  • Btrfs raid6

    See archlinux for more… Create btrfs filesystem using raid6 for data and and raid 10 for metadata mkfs.btrfs -d raid6 -m raid10 -L alexandria_btrfs /dev/vd[bcdefghijk] Mount newly created partition with mount /dev/sdb /mnt/md0 Check file system usage with: btrfs filesystem df /mnt/md0 Removing devices Remove a drive from the file system. This should rebalance the […]

  • Btrfs with encription

    Make sure btrfs support is installed in your kernel File systems —> Btrfs filesystem Install needed packages emerge -av sys-fs/btrfs-progs sys-fs/cryptsetup Make sure the following flags are enabled for sys-fs/cryptsetupgcrypt: nls python udev pwquality. dev-libs/libpwquality is used for password quality checking. Prepare disk: parted -a optimal /dev/sdX (parted) help (parted) print (parted) mklabel gpt (parted) […]

  • Ext4 HD recovery

    To check superblock fsck.ext4 -v /dev/sdX1 If there is superblock corruption, the above command will output something like this: The superblock could not be read or does not describe a correct ext4 filesystem. If the device is valid and it really contains an ext4 filesystem (and not swap or ufs or something else), then the […]