Mettre à jour 'partitions.sh'

This commit is contained in:
Jeremy MANSON 2017-10-15 13:32:02 +02:00
parent 38c766250f
commit b7afae3af5

View File

@ -5,7 +5,7 @@ MEM=`free -m | grep "Mem:" | awk -F' ' '{print $2}'| sed 's/m//'`
#trouver la taille du disque sda #trouver la taille du disque sda
DISK=`fdisk -l | grep sda | awk -F' ' '{print $3}'` DISK=`fdisk -l | grep sda | awk -F' ' '{print $3}'`
SDA="$DISK"000 SDA="$DISK"000
SDA1=$(("$SDA"-"$MEM")) SDA1=$(($SDA-$MEM))
# Partitioner ! # Partitioner !
( (
@ -23,4 +23,4 @@ echo # default, extend partition to end of disk
echo a # make a partition bootable echo a # make a partition bootable
echo 1 # bootable partition is partition 1 -- /dev/sda1 echo 1 # bootable partition is partition 1 -- /dev/sda1
echo w # Write changes echo w # Write changes
) | sudo fdisk ) | sudo fdisk /dev/sda