df는 장치의 전체 공간을 표시하지 않습니다.

df는 장치의 전체 공간을 표시하지 않습니다.

주문하다

df -h

다음을 출력

Filesystem                         Size  Used Avail Use% Mounted on
udev                               1.9G     0  1.9G   0% /dev
tmpfs                              377M  1.3M  376M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  3.9G  3.2G  504M  87% /
tmpfs                              1.9G     0  1.9G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/loop0                          97M   97M     0 100% /snap/core/9665
/dev/loop1                          97M   97M     0 100% /snap/core/9804
/dev/mmcblk1p2                     976M   78M  832M   9% /boot
/dev/mmcblk1p1                     511M  6.1M  505M   2% /boot/efi
tmpfs                              377M     0  377M   0% /run/user/1000

총 용량은 약 12GB입니다. 그러나 장치의 총 용량은 32GB여야 합니다. 나머지는 어디서 찾을 수 있나요? 그리고 /dev/mapper/ubuntu--vg-ubuntu--lv100%라면 기기에 스크립트 등을 저장할 공간이 남지 않는다는 걸 알아차렸습니다. 그래서 기본적으로 3.9GB만 사용할 수 있습니다. 32GB 전체를 저장 공간으로 사용하려면 어떻게 해야 합니까?

참고로 저는 OnLogic CL210G-10 에지 장치를 사용하고 있습니다.

편집하다:

sudo vgs

반품

 VG        #PV #LV #SN Attr   VSize   VFree
 ubuntu-vg   1   1   0 wz--n- <27.62g <23.62g

그리고

sudo fdisk -l

반품

Disk /dev/loop0: 97 MiB, 101695488 bytes, 198624 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: 96.6 MiB, 101318656 bytes, 197888 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/mmcblk1: 29.1 GiB, 31268536320 bytes, 61071360 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
Disklabel type: gpt
Disk identifier: 62E4C3F0-5C22-4483-98ED-8B82365DE29A

Device           Start      End  Sectors  Size Type
/dev/mmcblk1p1    2048  1050623  1048576  512M EFI System
/dev/mmcblk1p2 1050624  3147775  2097152    1G Linux filesystem
/dev/mmcblk1p3 3147776 61069311 57921536 27.6G Linux filesystem


Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 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/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 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/mapper/ubuntu--vg-ubuntu--lv: 4 GiB, 4294967296 bytes, 8388608 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

그리고

sudo df -hT

반품

Filesystem                        Type      Size  Used Avail Use% Mounted on
udev                              devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs                             tmpfs     377M  1.3M  376M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv ext4      3.9G  3.8G     0 100% /
tmpfs                             tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs                             tmpfs     5.0M     0  5.0M   0% /run/lock
tmpfs                             tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/loop0                        squashfs   97M   97M     0 100% /snap/core/9665
/dev/loop1                        squashfs   97M   97M     0 100% /snap/core/9804
/dev/mmcblk1p2                    ext4      976M   78M  832M   9% /boot
/dev/mmcblk1p1                    vfat      511M  6.1M  505M   2% /boot/efi
tmpfs                             tmpfs     377M     0  377M   0% /run/user/1000

그리고

sudo lvs

반품

  LV        VG        Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  ubuntu-lv ubuntu-vg -wi-ao---- 4.00g

관련 정보