Skip to content

Instantly share code, notes, and snippets.

@jc00ke
Forked from ELLIOTTCABLE/gist:372110
Created April 20, 2010 06:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jc00ke/372111 to your computer and use it in GitHub Desktop.
Save jc00ke/372111 to your computer and use it in GitHub Desktop.
ext4 tweaks
parted /dev/sda
> mklabel msdos
> mkpart primary ext2 0% 128MB
> mkpart primary linux-swap 128MB 2176MB
> mkpart primary ext2 2176MB 2688MB
> mkpart primary ext3 2688MB 100%
> set 1 boot on
mkfs.ext4 -b 4096 -E "lazy_itable_init=1" -G 128 -i 4096 -I 256 »
-L "Puzzles' Journal" -m "0.5" -M "/" »
-O "none,large_file,huge_file,dir_index,filetype,flex_bg,extent,uninit_bg,sparse_super,ext_attr,dir_nlink,journal_dev" »
-t "ext4" /dev/sda3
mkfs.ext4 -b 4096 -E "lazy_itable_init=1" -G 128 -i 4096 -I 256 »
-j -J "device=/dev/sda3" -L "Puzzles' HD" -m "0.5" -M "/" »
-O "none,large_file,huge_file,dir_index,filetype,flex_bg,extent,uninit_bg,sparse_super,ext_attr,dir_nlink" »
-t "ext4" /dev/sda4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment