ajout du trim_enable.sh
This commit is contained in:
parent
41cf9fc93f
commit
7b1d549fcb
16
trim_enable.sh
Executable file
16
trim_enable.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
# Get HD UUID
|
||||
HDUUID=`vboxmanage showvminfo kaz-vm --machinereadable | grep ImageUUID | cut -d= -f2 | sed -e "s/\"//g"`
|
||||
|
||||
# Get storage controller
|
||||
STCTRL=`vboxmanage showvminfo kaz-vm --machinereadable | grep storagecontrollername0 | cut -d= -f2 | sed -e "s/\"//g"`
|
||||
|
||||
#echo -e $HDUUID
|
||||
#echo -e $STCTRL
|
||||
|
||||
vboxmanage storageattach kaz-vm --medium="$HDUUID" --storagectl="${STCTRL}" --port=0 --discard=on --nonrotational=on
|
||||
|
||||
echo "Trim enabled !"
|
Loading…
Reference in New Issue
Block a user