
在知道我的第一台也是唯一一台Ubuntu 電腦在啟動部分損壞後,我不知道為什麼,並得到將我的資料移至全新安裝的建議(它仍然可以啟動並工作正常,除了我無法再升級)到較新的Ubuntu 版本,我堅持使用16.04),我決定首先採取「安全方式」來做到這一點,基於我在網上沖浪的一些視頻和調查,並在我的電腦上安裝了VirtualBox,安裝了Ubuntu 18.04虛擬機器上的LTS 系統,當嘗試安裝某些軟體時,出現一個警告,提示我的磁碟已滿且沒有空間,但在「磁碟」中卻顯示我有大量可用空間(遠遠超過了4GB)已使用)。我讀到了有關“空間未分配”的一些問題,但在磁碟程式中說我的所有可用空間都在 211 GB“ext4”分區中(是的,我的主硬碟也有很多可用空間,靠近我製作虛擬機器後有500 GB)。當我安裝虛擬機器時,Ubuntu 詢問我有關“LVM”的問題,以便“更輕鬆”地管理我的磁碟,但我並沒有獲得非常“友好”的體驗...
我沒有雙啟動,也沒有另一台電腦可以嘗試,顯然我不想丟失我的資料。我已經有一張裝有Ubuntu 18.04 LTS 的磁碟(我在一本雜誌上得到的)和一個存儲了我最重要數據的隨身碟,但我不想重新安裝Ubuntu 並遇到“磁碟上沒有空間”的無意義問題「安裝並僅複製 4 GB 資料後。你能幫助我嗎?
有以下輸出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