Qual é o significado desse atributo P?
extended attributes:
E Encrypted
C Compressed (128:read-only)
I Not content-indexed
L Symbolic link/Junction (64:read-only)
N Normal (0: cannot be used for file selection)
O Offline
P Sparse file
T Temporary
Fonte attrib - Exibe ou altera os atributos do arquivo.
O Windows 8 se recusa a montar a imagem .iso porque a imagem é 'esparsa'
Windows .iso mounting does not like 'sparse' files. I had used Acronis
backup to backup my original .iso files and this DOES use sparse
files. You can check if a file is 'sparsed' by looking at the files
details in properties. The 'P' in the attributes represents a sparse
file. See the screenshot below.
The result? When I restored my .iso images I could no longer mount
them.
The simplest solution I have found is to just copy the .iso to a new
file - this seems to create the new file without the sparse flag set.
Fonte O Windows 8 se recusa a montar imagem .iso porque a imagem é 'esparsa'
Erro de montagem ISO no Windows 8 & Windows 2012
The issue behind failing to mount ISO files is, it has got a sparse
flag set. You can read more about this particular file attribute at
this MSDN
page(http://msdn.microsoft.com/en-us/library/windows/desktop/aa365564%28v=vs.85%29.aspx).
In a nutshell, this sparse flag is facility supported in NTFS file
system that enables efficient use of disk space by not writing zeros
in a data stream. Instead it maintains an internal list containing the
location zeros in file.
So the solution is to remove that sparse flag to mount the ISO. At
this moment, I am not clear why the mounting will not work if this
flag is set. May be because CDFS file system cannot understand this
flag and hence the errors.
There are two ways you can remove the sparse flag:
- Just by simple copy & paste: You can copy & paste the ISO file into same folder or different folder. The sparse flag will be removed
when a copy of this file is made. You can use the copied file to mount
as CD/DVD drive
- Remove the sparse flag programmatically: You can use below approach to remove the sparse flag on one of multiple files.
function Remove-SparseFlag {
[cmdletbinding()]
param(
[string]$FileName
)
if(!(Test-Path $FileName)) {
Write-Host "$FileName No such filename present"
return
}
$Attribs = [System.IO.File]::GetAttributes($FileName)
if($Attribs.HasFlag([System.IO.FileAttributes]::SparseFile)) {
Invoke-Expression -Command "fsutil sparse setflag '$FileName' 0"
if($LASTEXITCODE -ne 0) {
Write-host "Failed to remove sparse flag on $FileName"
} else {
Write-Host "Successfully removed the sparse flag on $FileName"
}
} else {
Write-Host "$FileName has no sparse flag set"
}
}
Fonte Erro de montagem ISO no Windows 8 & Windows 2012
Leitura Adicional