Pop-OS 설치를 250GB HDD에서 128GB SSD로 옮겨야 합니다. 지금까지 저는 GParted(동일한 크기의 드라이브 간에 Ubuntu 설치를 이동하는 기능)를 사용하려고 했습니다.
복구 및 부팅 파티션은 올바르게 복사되지만 기본(루트) 파티션을 복사하려면 먼저 축소해야 합니다(충분한 공간이 있어야 함). GParted를 사용하여 축소하려고 하면 시간이 좀 걸리는 것 같지만 매번 같은 지점에서 오류가 발생합니다(진행률 표시줄로 판단). (A/B 문제를 피하기 위해 제목은 이 질문과 관련이 없습니다.)
GParted 세부 정보 파일에 작성된 e2fsck 명령을 실행한 후 컴퓨터를 다시 시작했습니다. 이 중 어느 것도 수축 작업을 수행하지 않습니다. 파티션 축소 없이 설치를 더 작은 드라이브로 이동하는 방법을 모르겠습니다.
다음은 오류로 인해 생성된 gparted_details.htm의 내용이다.
OS를 이동하는 방법에 대한 모든 아이디어에 감사드립니다.
GParted 1.3.1
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.4
========================================
Device: /dev/nvme0n1
Model: CT1000P5PSSD8
Serial:
Sector size: 512
Total sectors: 1953525168
Heads: 255
Sectors/track: 2
Cylinders: 3830441
Partition table: gpt
Partition Type Start End Flags Partition Name Filesystem Label Mount Point
/dev/nvme0n1p1 Primary 34 32767 msftres Microsoft reserved partition unknown
/dev/nvme0n1p2 Primary 32768 819232767 msftdata Basic data partition ntfs New Volume
========================================
Device: /dev/nvme1n1
Model: RPFTJ128PDD2EWX
Serial:
Sector size: 512
Total sectors: 250069680
Heads: 255
Sectors/track: 2
Cylinders: 490332
Partition table: gpt
Partition Type Start End Flags Partition Name Filesystem Label Mount Point
/dev/nvme1n1p1 Primary 2048 250068991 ext4 /
========================================
Device: /dev/sda
Model: ATA CT250MX500SSD1
Serial: 2013E298798B
Sector size: 512
Total sectors: 488397168
Heads: 255
Sectors/track: 2
Cylinders: 957641
Partition table: gpt
Partition Type Start End Flags Partition Name Filesystem Label Mount Point
/dev/sda1 Primary 2048 1050623 boot, esp EFI System Partition fat32 /boot/efi
/dev/sda2 Primary 1050624 1083391 msftres Microsoft reserved partition ext4
/dev/sda3 Primary 1083392 487322748 msftdata Basic data partition ntfs
/dev/sda4 Primary 487323648 488394751 hidden, diag ntfs
========================================
Device: /dev/sdb
Model: ATA ST31000528AS
Serial: 5VP2CLXV
Sector size: 512
Total sectors: 1953525168
Heads: 255
Sectors/track: 2
Cylinders: 3830441
Partition table: msdos
Partition Type Start End Flags Partition Name Filesystem Label Mount Point
/dev/sdb1 Primary 63 1953520127 boot ntfs ExtDisk
========================================
Device: /dev/sdc
Model: ATA ST500DM002-1BD14
Serial: Z2AXE6DG
Sector size: 512
Total sectors: 976773168
Heads: 255
Sectors/track: 2
Cylinders: 1915241
Partition table: msdos
Partition Type Start End Flags Partition Name Filesystem Label Mount Point
/dev/sdc1 Primary 2048 976769023 ntfs stuff
========================================
Device: /dev/sdd
Model: ATA WDC WD2500BEVT-7
Serial: WD-WXR1A60R1236
Sector size: 512
Total sectors: 488397168
Heads: 255
Sectors/track: 2
Cylinders: 957641
Partition table: gpt
Partition Type Start End Flags Partition Name Filesystem Label Mount Point
/dev/sdd1 Primary 4096 2097150 boot, esp fat32
/dev/sdd2 Primary 2097152 10485758 msftdata recovery fat32
/dev/sdd3 Primary 10485760 480004462 ext4
/dev/sdd4 Primary 480004464 488393070 swap linux-swap
========================================
Device: /dev/sde
Model: USB DISK
Serial:
Sector size: 512
Total sectors: 15730688
Heads: 255
Sectors/track: 2
Cylinders: 30844
Partition table: msdos
Partition Type Start End Flags Partition Name Filesystem Label Mount Point
/dev/sde1 Primary 8192 15728639 ntfs NTFS /media/yee/NTFS
/dev/sde2 Primary 15728640 15730687 lba fat16 UEFI_NTFS /media/yee/UEFI_NTFS
========================================
Shrink /dev/sdd3 from 223.88 GiB to 107.42 GiB 00:11:10 ( ERROR )
calibrate /dev/sdd3 00:00:02 ( SUCCESS )
path: /dev/sdd3 (partition)
start: 10485760
end: 480004462
size: 469518703 (223.88 GiB)
check filesystem on /dev/sdd3 for errors and (if possible) fix them 00:00:15 ( SUCCESS )
e2fsck -f -y -v -C 0 '/dev/sdd3' 00:00:15 ( SUCCESS )
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
527061 inodes used (3.59%, out of 14680064)
962 non-contiguous files (0.2%)
411 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 502974/140
24348903 blocks used (41.49%, out of 58689837)
0 bad blocks
15 large files
454992 regular files
45072 directories
15 character device files
1 block device file
7 fifos
4994 links
26959 symbolic links (23910 fast symbolic links)
6 sockets
------------
532046 files
e2fsck 1.46.5 (30-Dec-2021)
shrink filesystem 00:10:53 ( ERROR )
resize2fs -p '/dev/sdd3' 112640000K 00:10:53 ( ERROR )
Resizing the filesystem on /dev/sdd3 to 28160000 (4k) blocks.
Begin pass 2 (max = 10272100)
Relocating blocks XXXXXXXX--------------------------------
resize2fs 1.46.5 (30-Dec-2021)
resize2fs: Attempt to read block from filesystem resulted in short read while trying to resize /dev/sdd3
Please run 'e2fsck -fy /dev/sdd3' to fix the filesystem
after the aborted resize operation.
답변1
해결책은 간단합니다.
파티션을 축소하고 복사하지 마십시오.
대신, 대상 SSD에 새 파티션을 생성하고 이전 파티션에서 파일을 복사하세요. 그렇게 하지 말아야 할 이유가 없으며, 그게 더 쉽고 안전합니다.