우분투 14.04를 16.04로 업그레이드하려고하는데 우분투가 설치된 드라이브의 공간이 부족하여 더 이상 프로세스를 진행할 수 없었고 컴퓨터에 30GB의 할당되지 않은 공간이 있습니다. Live USB에서 Gparted 소프트웨어를 사용하여 / dev / sda6을 이동 및 축소하여 / dev / sda5 측면에 약 30GB의 할당되지 않은 공간을 확보했습니다. 이동 및 축소가 완료된 후 이동 / 크기 조정 옵션을 사용하여 우분투 드라이브 / dev / sda5를 확장하려고 시도했지만 프로세스 중간에 오류가 발생하여 프로세스를 더 이상 진행할 수 없었습니다.
그런 다음 새로 재부팅 한 후 Live USB에서 Gparted를 다시 열었지만 이제는 동일한 초기 크기이며 파티션을 확장 할 수있는 우분투 파티션 (/ dev / sda5)에 오류가 표시됩니다.
나는 또한 이것을 사용하여 루트 파티션을 수정하려고했습니다.
sudo touch /forcefsck
sudo reboot
그러나 어떤 오류도보고하지 않았습니다. 이제 어떻게해야합니까? 할당되지 않은 공간에 무슨 일이 일어 났습니까? 이미지에서 볼 수 있지만 sda5 내부에는 없습니까?
편집하다:
결과 sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2253336f
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 136970189 68381671 7 HPFS/NTFS/exFAT
/dev/sda3 136986248 220984415 41999084 7 HPFS/NTFS/exFAT
/dev/sda4 220985343 625139711 202077184+ f W95 Ext'd (LBA)
/dev/sda5 220985344 318570495 48792576 83 Linux
/dev/sda6 318572544 432474111 56950784 7 HPFS/NTFS/exFAT
/dev/sda7 432633856 625139711 96252928 7 HPFS/NTFS/exFAT
이제 gparted 시작하면이 오류가 발생했습니다 (libparted 버그 발견).
/ dev / sda4 파티션 수정에 대해 커널에 알리는 오류-장치 또는 리소스 사용 중. 즉, Linux는 재부팅 할 때까지 / dev / sda4에 대한 변경 사항을 알지 못하므로 재부팅하기 전에 마운트하거나 어떤 방식으로도 사용해서는 안됩니다.
Looks like the partition /dev/sda5
got enlarged, but not the ext4 file system inside it which is still at the original size.
First of all, if you haven't done it yet, make a backup! Modifying partitions and file systems always has the risk of data loss!
Then make sure you are booting from a live system so that we can operate on the file system while it's unmounted.
First we must force a file system check using this command:
sudo e2fsck -f /dev/sda5
It should hopefully report no errors or be able to fix them.
After that we can resize the file system to match the size of the partition it's located in. We do that with the command below:
sudo resize2fs -p /dev/sda5
After that you might want to repeat the first command (e2fsck
) to check everything is okay.
Then your partition and file system should have the same size again and cause no more trouble regarding this issue.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다