From 340801e0b7b06e972c35c0f21ae564100453a25d Mon Sep 17 00:00:00 2001 From: gotbletu Date: Thu, 14 Jul 2016 08:04:44 -0700 Subject: [PATCH] format2usb v2 --- format2usb.md | 155 +++++++++++++++++++++++++++++++------------------- 1 file changed, 95 insertions(+), 60 deletions(-) diff --git a/format2usb.md b/format2usb.md index 365fde6..d6cc984 100644 --- a/format2usb.md +++ b/format2usb.md @@ -3,13 +3,13 @@ A couple of functions i created to format my drives. It will delete existing par I could of used just mkfs to format but from my experience linux likes to have at least one partition so that is why we used fdisk to create a partition before we format with mkfs. -* tutorial video: [Link](https://www.youtube.com/watch?v=ypKjq5KIxSk) +* tutorial video: [Link](https://www.youtube.com/watch?v=7txO1cdNJsQ) * offical website: [Link](https://www.youtube.com/user/gotbletu) ### install requirements mkfs fdisk -### configuration +### code add to ~/.bashrc or ~/.zshrc #-------- Color Code {{{ @@ -35,7 +35,8 @@ add to ~/.bashrc or ~/.zshrc # Format USB Stick/Hard Drive # It will create a single partition that fills the whole drive space - format2usb-fat32() { + + format2usb-ext2() { if [ $# -lt 2 ]; then echo -e "format and create a partition that fills up the whole device" echo -e "\nUsage: $0