Witam,
Mam problem z dyskiem po zmianie rozmiaru partycji Gpartedem (v0.6.2). Podobno to znany bug, jednak jego rozwiązanie nastręcza mi trochę kłopotów. Proszę o pomoc z wyjaśnieniem krok po kroku.
Do rzeczy,
podczas zmiany rozmiaru partycji ntfs (zmniejszenie o 30 GB) wystąpił błąd:
" ERROR: Current NTFS volume size is bigger than the device size! "
Oto log operacji.
GParted 0.6.2
Biblioteka libparted 2.3
Zmniejszanie /dev/sda5 z 500.00 GiB do 470.00 GiB 00:25:44 ( BŁĄD )
kalibracja /dev/sda5 00:00:00 ( UDANE )
ścieżka: /dev/sda5
początek: 105065163
koniec: 1153643714
rozmiar: 1048578552 (500.00 GiB)
sprawdzanie błędów systemu plików na /dev/sda5 i naprawianie w miarę możliwości 00:00:16 ( UDANE )
ntfsresize -P -i -f -v /dev/sda5
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 536872215040 bytes (536873 MB)
Current device size: 536872218624 bytes (536873 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 486816 MB (90,7%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 501282 MB 0
Multi-Record : 536858 MB 8699
$MFTMirr : 73732 MB 1
Sparse : 351661 MB 35
Ordinary : 534535 MB 8956
You might resize at 486815731712 bytes or 486816 MB (freeing 50057 MB).
Please make a test run using both the -n and -s options before real resizing!
zmniejszanie systemu plików 00:25:25 ( UDANE )
wykonanie symulacji 00:00:44 ( UDANE )
ntfsresize -P --force /dev/sda5 -s 504658291199 --no-action
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 536872215040 bytes (536873 MB)
Current device size: 536872218624 bytes (536873 MB)
New volume size : 504658285056 bytes (504659 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 486816 MB (90,7%)
Collecting resizing constraints ...
Needed relocations : 7525135 (30823 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.
rzeczywista zmiana rozmiaru 00:24:41 ( UDANE )
ntfsresize -P --force /dev/sda5 -s 504658291199
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 536872215040 bytes (536873 MB)
Current device size: 536872218624 bytes (536873 MB)
New volume size : 504658285056 bytes (504659 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 486816 MB (90,7%)
Collecting resizing constraints ...
Needed relocations : 7525135 (30823 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/sda5'.
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.
zmniejszanie partycji z 500.00 GiB do 470.00 GiB 00:00:02 ( UDANE )
stary początek: 105065163
stary koniec: 1153643714
poprzedni rozmiar: 1048578552 (500.00 GiB)
nowy początek: 105065163
nowy koniec: 1090725887
nowy rozmiar: 985660725 (470.00 GiB)
sprawdzanie błędów systemu plików na /dev/sda5 i naprawianie w miarę możliwości 00:00:01 ( BŁĄD )
ntfsresize -P -i -f -v /dev/sda5
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 536872215040 bytes (536873 MB)
Current device size: 504658291200 bytes (504659 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?
powiększanie systemu plików, aby wypełnił partycję 00:00:00 ( BŁĄD )
wykonanie symulacji 00:00:00 ( BŁĄD )
ntfsresize -P --force /dev/sda5 --no-action
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 536872215040 bytes (536873 MB)
Current device size: 504658291200 bytes (504659 MB)
ERROR: Current NTFS volume size is bigger than the device size!
Corrupt partition table or incorrect device partitioning?
========================================
Utwórz Partycja logiczna #1 (ext4, 30.00 GiB) na /dev/sda
========================================
Jak to naprawić i odzyskać dane (zależy mi na nich)
Przydatne informacje:
"fdisk -l -u"
Dysk /dev/sda: 640.1 GB, bajtów: 640135028736
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 77825, w sumie sektorów: 1250263728
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
Identyfikator dysku: 0xe938db77
Urządzenie Rozruch Początek Koniec Bloków ID System
/dev/sda1 2048 20973567 10485760 27 Nieznany
/dev/sda2 * 20973568 21178367 102400 27 Nieznany
/dev/sda3 21178368 105065099 41943366 7 HPFS/NTFS
/dev/sda4 105065161 1250258943 572596891+ f W95 Rozsz. (LBA)
/dev/sda5 105065163 1090725887 492830362+ 7 HPFS/NTFS
/dev/sda6 1157836743 1250258943 46211100+ 83 Linux
/dev/sda7 1153643778 1157836679 2096451 82 Linux swap / Solaris
Wpisy w tablicy partycji nie są w tej kolejności, co na dysku
"parted /dev/sda unit s print"
Model: ATA WDC WD6400BEVT-2 (scsi)
Dysk /dev/sda: 1250263728s
Rozmiar sektora (logiczny/fizyczny): 512B/512B
Tablica partycji: msdos
Numer Początek Koniec Rozmiar Typ System plików Flaga
1 2048s 20973567s 20971520s primary ntfs diag
2 20973568s 21178367s 204800s primary ntfs ładowalna, diag
3 21178368s 105065099s 83886732s primary ntfs
4 105065161s 1250258943s 1145193783s extended lba
5 105065163s 1090725887s 985660725s logical ntfs
7 1153643778s 1157836679s 4192902s logical linux-swap(v1)
6 1157836743s 1250258943s 92422201s logical ext4
Zrzut mbr
"dd if=/dev/sda of=sda-old.mbr bs=512 count=1"
http://www.mediafire.com/?wm2i7t5ap4r6tr1EDIT: Okazło się, że uszkodzona partycja znajduje się w GUID a nie w MBR (partycja logiczna) macie jakiś pomysł jak to naprawić?
Z góry dzięki za pomoc.