#541 #548: Eliminar fichero {{{swapfile.sys}}} al reducir sistema de archivos de Windows 8; permitir clonar sistemas de archvios de tipo EFI.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@4135 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/debian-pkg
ramon 2014-02-03 09:04:59 +00:00
parent 499a7ece18
commit df097c22ed
2 changed files with 6 additions and 4 deletions

View File

@ -32,7 +32,7 @@ for ((dsk=1; dsk<=$disks; dsk++)); do
tam=${tam:-"0"}
# Sistema operativo instalado
case "$cod" in
""|82|8200|A502|BF02|EE|EF0[012])
""|82|8200|A502|BF02|EE)
soi="" ;;
*) soi=$(getOsVersion $dsk $par 2>/dev/null | cut -f2 -d:)
# Sistema de archivos para datos (sistema operativo "DATA")

View File

@ -729,7 +729,7 @@ echo $MNTDIR
#@exception OG_ERR_FORMAT Formato incorrecto.
#@exception OG_ERR_NOTFOUND Disco o particion no corresponden con un dispositivo.
#@exception OG_ERR_PARTITION Partición desconocida o no accesible.
#@warning En Windows, se borran los ficheros pagefile.sys e hiberfile.sys
#@warning En Windows, se borran los ficheros de hiberanción y de paginación.
#@warning El sistema de archivos se amplía al mínimo + 10%.
#@note Requisitos: *resize*
#@version 0.1 - Integracion para Opengnsys - EAC: ReduceFileSystem() en ATA.lib
@ -790,8 +790,10 @@ case "$(ogGetFsType $1 $2)" in
JFS) ;; # No se reduce (por el momento).
XFS) ;; # No se reduce (por el momento).
NTFS)
ogDeleteFile $1 $2 pagefile.sys
ogDeleteFile $1 $2 hiberfil.sys
# Borrar ficheros de hibernación y paginación de Windows.
ogDeleteFile $1 $2 hiberfil.sys 2>/dev/null
ogDeleteFile $1 $2 pagefile.sys 2>/dev/null
ogDeleteFile $1 $2 swapfile.sys 2>/dev/null
ogUnmount $1 $2 2>/dev/null
## NTFS: Obtiene tamaño mínimo en MB.
#SIZE=$(ntfsresize -fi $PART | awk '/resize at/ {print int($8*1.1)}')