alignment is okay for our usb sticks
This commit is contained in:
parent
2d91dec1d6
commit
dfedda1454
2
kali/make_kali-usb-stick_persistent
Executable file → Normal file
2
kali/make_kali-usb-stick_persistent
Executable file → Normal file
@ -69,7 +69,7 @@ fi
|
|||||||
FREE="$( parted -m "${USBSTICK}" print free | grep -F free | tail -n 1 )"
|
FREE="$( parted -m "${USBSTICK}" print free | grep -F free | tail -n 1 )"
|
||||||
START="$( printf "${FREE}" | awk -F ":" '{ print $2; }' )"
|
START="$( printf "${FREE}" | awk -F ":" '{ print $2; }' )"
|
||||||
END="$( printf "${FREE}" | awk -F ":" '{ print $3; }' )"
|
END="$( printf "${FREE}" | awk -F ":" '{ print $3; }' )"
|
||||||
parted "${USBSTICK}" mkpart primary "${START}" "${END}"
|
parted --script "${USBSTICK}" mkpart primary "${START}" "${END}"
|
||||||
|
|
||||||
# format 3rd partition with ext3 and label "persistence"
|
# format 3rd partition with ext3 and label "persistence"
|
||||||
mkfs.ext3 -L persistence "${USBSTICK}"3
|
mkfs.ext3 -L persistence "${USBSTICK}"3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user