LINUX.ORG.RU

Re: Чем можно изменить размер физического тома с NTFS

Fedore'овская anaconda может

router ★★★★★ ()

Re: Чем можно изменить размер физического тома с NTFS

ntfsresize (пакет ntfsprogs)

если не хочется читать кучу документации и сделать все быстро и безопасно

Gparted (пакет ntfsprogs все равно нужен)

Бэкап все же лучше сделать, проверка диска ntfs после изменения раздела обязательна, у меня там была куча каких то однообразных ошибок, все данные на месте

Sylvia ★★★★★ ()

Re: Чем можно изменить размер физического тома с NTFS

вот так оно поколдовало у меня в скукоживании раздела винды )


GParted 0.3.6

Libparted 1.7.1
Shrink /dev/hda2 from 32.46 GiB to 21.49 GiB 01:51 ( SUCCESS )
calibrate /dev/hda2 00:00 ( SUCCESS )
path: /dev/hda2
start: 3903795
end: 71971199
size: 68067405 (32.46 GiB)

calculate new size and position of /dev/hda2 00:00 ( SUCCESS )
requested start: 3903795
requested end: 48966119
requested size: 45062325 (21.49 GiB)
new start: 3903795
new end: 48966119
new size: 45062325 (21.49 GiB)

check filesystem on /dev/hda2 for errors and (if possible) fix them 00:09 ( SUCCESS )
ntfsresize -P -i -f -v /dev/hda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 512 bytes
Current volume size: 34850511360 bytes (34851 MB)
Current device size: 34850511360 bytes (34851 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 10063 MB (28.9%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 23666 MB 0
Multi-Record : 25197 MB 30191
$MFTMirr : 17426 MB 1
Compressed : 25200 MB 42034
Ordinary : 25201 MB 10941
You might resize at 10062664192 bytes or 10063 MB (freeing 24788 MB).
Please make a test run using both the -n and -s options before real resizing!


shrink filesystem 01:14 ( SUCCESS )
run simulation 00:11 ( SUCCESS )
ntfsresize -P --force --force /dev/hda2 -s 23071910399 --no-action
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 512 bytes
Current volume size: 34850511360 bytes (34851 MB)
Current device size: 34850511360 bytes (34851 MB)
New volume size : 23071909888 bytes (23072 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 10063 MB (28.9%)
Collecting resizing constraints ...
Needed relocations : 627610 (322 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
The read-only test run ended successfully.


real resize 01:03 ( SUCCESS )
ntfsresize -P --force --force /dev/hda2 -s 23071910399
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 512 bytes
Current volume size: 34850511360 bytes (34851 MB)
Current device size: 34850511360 bytes (34851 MB)
New volume size : 23071909888 bytes (23072 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 10063 MB (28.9%)
Collecting resizing constraints ...
Needed relocations : 627610 (322 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device '/dev/hda2'.
You can go on to shrink the device for example with Linux fdisk.
IMPORTANT: When recreating the partition, make sure that you
1) create it at the same disk sector (use sector as the unit!)
2) create it with the same partition type (usually 7, HPFS/NTFS)
3) do not make it smaller than the new NTFS filesystem size
4) set the bootable flag for the partition if it existed before
Otherwise you won't be able to access NTFS or can't boot from the disk!
If you make a mistake and don't have a partition table backup then you
can recover the partition table by TestDisk or Parted's rescue mode.



shrink partition from 32.46 GiB to 21.49 GiB 00:00 ( SUCCESS )
old start: 3903795
old end: 71971199
old size: 68067405 (32.46 GiB)
new start: 3903795
new end: 48966119
new size: 45062325 (21.49 GiB)

check filesystem on /dev/hda2 for errors and (if possible) fix them 00:09 ( SUCCESS )
ntfsresize -P -i -f -v /dev/hda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 512 bytes
Current volume size: 23071909888 bytes (23072 MB)
Current device size: 23071910400 bytes (23072 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 10060 MB (43.6%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 19454 MB 0
Multi-Record : 11950 MB 13110
$MFTMirr : 17426 MB 1
Compressed : 11180 MB 37966
Ordinary : 22379 MB 43721
You might resize at 10059788288 bytes or 10060 MB (freeing 13012 MB).
Please make a test run using both the -n and -s options before real resizing!


grow filesystem to fill the partition 00:19 ( SUCCESS )
run simulation 00:10 ( SUCCESS )
ntfsresize -P --force --force /dev/hda2 --no-action
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 512 bytes
Current volume size: 23071909888 bytes (23072 MB)
Current device size: 23071910400 bytes (23072 MB)
New volume size : 23071910400 bytes (23072 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 10060 MB (43.6%)
Collecting resizing constraints ...
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
The read-only test run ended successfully.


real resize 00:09 ( SUCCESS )
ntfsresize -P --force --force /dev/hda2
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 512 bytes
Current volume size: 23071909888 bytes (23072 MB)
Current device size: 23071910400 bytes (23072 MB)
New volume size : 23071910400 bytes (23072 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 10060 MB (43.6%)
Collecting resizing constraints ...
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device '/dev/hda2'.






========================================

Sylvia ★★★★★ ()

Re: Чем можно изменить размер физического тома с NTFS

Виста это умеет.

anonymous ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.