Created
May 8, 2016 11:23
-
-
Save Kwpolska/450534d6728dfb2b01a35edc3922ef24 to your computer and use it in GitHub Desktop.
ext3 → ext4 converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Convert drive to ext4. | |
# License: CC0. | |
if [ "$1" = "" ]; then | |
echo "Which device?" | |
exit | |
fi | |
tune2fs -O extents,uninit_bg,dir_index $1 | |
fsck -f $1 | |
$EDITOR /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment