May 14, 2014

Linux Partitioning

On Disk Partitioning Scheme

  • I generally try to avoid using LVM on home PCs/laptops because LVM makes data restoration in case of failures more difficult.
  • When using full disk encryption, leave a boot partition unencrypted - the boot loader needs to read its files :-).
  • Here's my preferred way of disk partitioning for Linux:
  • /boot partition - 200MB (not needed in case of UEFI as it has its own system partion)
  • / (root) partition - 24GB at most
  • I generally disable SWAP, but if you want to use hibernate you need a swap partition equal or larger to your RAM. If you think you'll ever increase your RAM, allocate a swap partition as big as your projected future RAM.
  • /home - the rest of your free space. Why the home partition is separate from the root partition? Because in this case you can easily change your distro while preserving your data and applications settings.
  • I have several partitions for rarely changed files which are mounted read only - it's a good way to protect your data against misuse or attacks.
  • If you have an SSD disk and a usual magnetic disk, use SSD for your root partition, and HDD for your data.
  • Set noatime option for all your partitions (edit under root/sudo /etc/fstab and add ",noatime" (without quotes) as a mount option).
  • I generally disable journalling on ext4 partitions - it allows your disks to last longer.
  • Nowadays I format everything as ext4 - this file system is very robust and fast. Also it has the best support (and Google uses it on its million of servers).




Tool that i use for create Linux USB Starter Kit

http://www.pendrivelinux.com/linux-live-usb-creator/

I have been use ton's of software but this one works 100%

Linux Mint + Windows 8 in dual boot mode.