
내 첫 번째이자 유일한 Ubuntu 컴퓨터가 부팅 섹션에서 손상된 이유를 알 수 없고 데이터를 새로 설치로 이동하라는 권장 사항을 받은 후(더 이상 업그레이드할 수 없다는 점을 제외하면 여전히 부팅되고 제대로 작동합니다) 최신 Ubuntu 버전에서는 16.04에 갇혔습니다.) 먼저 웹 서핑을 한 일부 비디오와 조사를 기반으로 "안전한 방법"을 사용하기로 결정하고 컴퓨터에 VirtualBox를 설치하고 Ubuntu 18.04를 설치했습니다. 가상 머신의 LTS 시스템, 일부 소프트웨어를 설치하려고 하면 디스크가 꽉 찼고 공간이 없다는 경고가 표시되지만 디스크에는 사용 가능한 공간이 많다고 표시됩니다(4GB보다 훨씬 더 많습니다). 이미 사용 된). "할당되지 않은 공간"과 관련된 몇 가지 문제에 대해 읽었지만 디스크 프로그램에는 211GB "ext4" 파티션에 여유 공간이 모두 있다고 나와 있습니다. (그렇습니다. 제 메인 하드 드라이브에도 여유 공간이 많이 있습니다. 가상 머신을 만든 후 500GB). 가상 머신을 설치했을 때 Ubuntu는 디스크 관리를 "더 쉽게" 만들기 위해 "LVM"이라는 것에 대해 물었지만 그다지 "친숙한" 경험을 얻지 못했습니다.
나는 이중 부팅을 할 필요도 없고 시도해 볼 다른 컴퓨터도 없으며 분명히 내 데이터를 잃고 싶지 않습니다. 이미 Ubuntu 18.04 LTS가 포함된 디스크(잡지에 실렸습니다)와 가장 중요한 데이터가 저장된 펜드라이브가 있지만 Ubuntu를 다시 설치하고 "디스크에 남은 공간이 없습니다"라는 말도 안되는 문제가 발생하고 싶지 않습니다. " 4GB의 데이터만 설치하고 복사한 후. 도와주세요?
다음과 같은 출력이 있습니다 df -h | grep ^/
.
/dev/mapper/ubuntu--vg-ubuntu--lv 3,9G 3,2G 545M 86% /
/dev/loop0 89M 89M 0 100% /snap/core/6964
/dev/loop1 57M 57M 0 100% /snap/powershell/34
/dev/loop2 87M 87M 0 100% /snap/core/4917
/dev/sda2 976M 145M 764M 16% /boot
/dev/sda1 511M 6,1M 505M 2% /boot/efi
이것은 다음의 출력입니다 sudo fdisk -l
.
Disk /dev/loop0: 88,4 MiB, 92733440 bytes, 181120 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 /dev/loop1: 57 MiB, 59719680 bytes, 116640 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 /dev/loop2: 86,9 MiB, 91099136 bytes, 177928 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 /dev/sda: 512 GiB, 549755813888 bytes, 1073741824 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 644FA88C-CC68-4888-B434-AFCB3B698E18
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 3147775 2097152 1G Linux filesystem
/dev/sda3 3147776 1073739775 1070592000 510,5G Linux filesystem
Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 4 GiB, 4294967296 bytes, 8388608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
그리고 이것은 다음의 출력입니다 vgdisplay -v
.
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <510,50 GiB
PE Size 4,00 MiB
Total PE 130687
Alloc PE / Size 1024 / 4,00 GiB
Free PE / Size 129663 / <506,50 GiB
VG UUID mbiIH0-9zwI-n3tk-eJ3k-Rh7Q-wD7E-QkLa03
--- Logical volume ---
LV Path /dev/ubuntu-vg/ubuntu-lv
LV Name ubuntu-lv
VG Name ubuntu-vg
LV UUID RlOC9o-3Eso-5rV2-N283-DCa2-fHfO-Fo0Ga0
LV Write Access read/write
LV Creation host, time ubuntu-server, 2019-06-19 22:56:57 +0000
LV Status available
# open 1
LV Size 4,00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Physical volumes ---
PV Name /dev/sda3
PV UUID T1Bo9k-LO1s-0w4E-MODj-9Mm0-9OrX-qjZ8zk
PV Status allocatable
Total PE / Free PE 130687 / 129663