Skip to content
Snippets Groups Projects
Commit 96d6fea7 authored by Bob Mottram's avatar Bob Mottram
Browse files

Add partitioning

parent e96f2aea
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,24 @@ if [ ! $1 ]; then
exit 1
fi
USB_DRIVE=/dev/${1}
USB_DRIVE=/dev/${1}1
LABEL='Freedombone'
echo 'Partitioning drive'
echo "o
d
2
d
1
n
p
1
a
1
w
" | fdisk /dev/${1};mkfs.ext4 -L "$LABEL" /dev/${1}1
echo "Formatting $USB_DRIVE as LUKS"
cryptsetup -y -v luksFormat ${USB_DRIVE}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment