From c3dad584b8a855b335910f4a58d10a22fd242936 Mon Sep 17 00:00:00 2001 From: xiaosuGW Date: Tue, 30 Nov 2021 21:57:05 -0500 Subject: [PATCH] correct error for add_partition.sh --- add_partition.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/add_partition.sh b/add_partition.sh index 84dca35..9317a47 100755 --- a/add_partition.sh +++ b/add_partition.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash setVim(){ echo "hi comment ctermfg=3 @@ -47,9 +47,10 @@ add_partition() { mount_partition() { sudo mkdir /my_mount - sudo mount /dev/sdb1 /my_mount + sudo mount /dev/sda4 /my_mount df -h } -add_partition +#add_partition +sudo mkfs.ext4 /dev/sda4 mount_partition sudo chmod 777 /my_mount