More modern disk partitionning (compilation)

This commit is contained in:
Adrien Bourmault 2019-11-25 23:13:22 +01:00
parent 313c69a05b
commit 92edd61c44
1 changed files with 1 additions and 10 deletions

View File

@ -36,16 +36,7 @@ dd if=/dev/zero of=$1 bs=512 count=131072 status=progress
## Partition the image
echo ${CL2}[create_disk.sh]${NC} Partitionning image... \(parted\)${CL3}
#sudo parted --script $1 mktable msdos mkpart primary 2048s 100% set 1 boot on
sudo fdisk $1 > /dev/null <<EEOF
n
p
1
a
w
EEOF
sudo parted --script $1 mktable msdos mkpart primary 2048s 100% set 1 boot on
## Mount
echo ${CL2}[create_disk.sh]${NC} Mount image... \(losetup\)${CL3}