Sha256: cb943de4698b3e1739056fff980a4b099d53e7885c8252a0e4548b83b328312a

Contents?: true

Size: 650 Bytes

Versions: 813

Compression:

Stored size: 650 Bytes

Contents

#!/bin/bash

(
echo d # Delete a partition
echo 5 # Choosing Logical /dev/sda5 for deletion
echo d # Delete a partition
echo 2 # Choosing Extended /dev/sda2 for deletion
echo n # Create a partition
echo e # Create an Extended partition
echo -e "\n" # Choose default begin sector
echo -e "\n" # Choose default end sector
echo n # Create a partition
echo -e "\n" # Choose default begin sector
echo -e "\n" # Choose default end sector
echo t # Change partition ID
echo 5 # Choose /dev/sda5
echo 8e # Change to Linux LVM partition ID
echo w # Write changes to disk
echo y # Confirm changes
echo q # Quit
) | sudo fdisk -W never /dev/sda
echo "complete."

Version data entries

813 entries across 813 versions & 1 rubygems

Version Path
pwn-0.5.236 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.235 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.234 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.233 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.232 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.231 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.230 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.229 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.228 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.227 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.226 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.225 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.224 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.223 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.222 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.221 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.220 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.219 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.217 vagrant/provisioners/userland_fdisk.sh
pwn-0.5.216 vagrant/provisioners/userland_fdisk.sh