I have a script which uses the following command to add a partition to /dev/sda
cat <<-EOF |fdisk /dev/sda
n
w
EOF
I want to use parted instead of fdisk (fdisk is not compatible with my Linux). Can i use simply parted instead of fdisk in the above script or how can achieve this?
info parted
... – derobert Jul 24 '13 at 14:08