Created
January 15, 2016 14:48
-
-
Save MooxxNew/57a57952ea75381f3065 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
| fdisk /dev/sda <<EOF | |
| d | |
| d | |
| n | |
| p | |
| 1 | |
| w | |
| EOF | |
| #!/bin/sh | |
| mkfs.ext4 /dev/sda1 | |
| uuid1=`blkid | grep sda | awk '{print $2}'` | |
| mkdir -p /media/data_ssd | |
| echo "$uuid1 /media/data_ssd ext4 defaults 0 0" >> /etc/fstab | |
| reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment