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です。ただし、デバイスの総容量は32 GBでなければなりません。残りはどこで見つけることができますか?そして/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

ベストアンサー1

おすすめ記事