Skip to content

Instantly share code, notes, and snippets.

@MooxxNew
Created January 15, 2016 14:48
Show Gist options
  • Select an option

  • Save MooxxNew/57a57952ea75381f3065 to your computer and use it in GitHub Desktop.

Select an option

Save MooxxNew/57a57952ea75381f3065 to your computer and use it in GitHub Desktop.
#!/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