Redimensionar partició (una imatge) NTFS amb linux

Hem fet l’imatge d’una partició windows…

ddrescue –no-split /dev/sda /media/usb250/ntfs.img /media/usb250/ntfs.log


Primer, mirem fins a quan la podem reduir…

$ /media/DISK/$ ntfsresize -i ntfs.img<br />
ntfsresize v2.0.0 (libntfs 10:0:0) Failed to startup volume: Invalid argument.<br />
ERROR(22): Opening 'sapbes.img' as NTFS failed: Invalid argument The device 'sapbes.img' doesn't have a valid NTFS.<br />
Maybe you selected the wrong partition? Or the whole disk instead of a partition (e.g. /dev/hda, not /dev/hda1)? This error might also occur if the disk was incorrectly repartitioned (see the ntfsresize FAQ).


Sembla que aquesta imatge no és vàlida, no pot ser del disc sencer, ha de ser només d’una partició. L’hem de crear així…

ddrescue --no-split /dev/sda1 /media/usb250/ntfspart1.img /media/usb250/ntfs.log


Ara si, la podem reduir…

ntfsresize -s 28G sapbes.img


Només ens falta eliminar l’espai buit amb fdisk o gparted o …


Recurs propi: 1

Comments are closed.