ディスクをファイルシステムに再割り当てする方法は?

ディスクをファイルシステムに再割り当てする方法は?

デバイスと一緒にディレクトリのインストールを台無しにしました。

lorancechen@schan:~$ sudo df -hl
Filesystem                  Size  Used Avail Use% Mounted on
udev                        3.9G     0  3.9G   0% /dev
tmpfs                       790M  9.0M  781M   2% /run
/dev/mapper/schan--vg-root  226G  6.6G  208G   4% /
tmpfs                       3.9G  4.0K  3.9G   1% /dev/shm
tmpfs                       5.0M     0  5.0M   0% /run/lock
tmpfs                       3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda2                   473M  463M     0 100% /boot
/dev/sda1                   511M  3.4M  508M   1% /boot/efi
tmpfs                       100K     0  100K   0% /run/lxcfs/controllers
tmpfs                       790M     0  790M   0% /run/user/1000
/home/lorancechen/.Private  226G  6.6G  208G   4% /home/lorancechen  

当然、通常のユーザーのために226Gです。これはどういう意味なのかわかりませんか/home/lorancechen/.Private

また、sudo fdisk -lLinux LVMは237.5Gを使用して表示されます。

lorancechen@schan:/boot/grub$ sudo fdisk -l
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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: B9F1D7BF-5BE5-4457-8589-B7BA73C5298E

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1050623   1048576   512M EFI System
/dev/sda2  1050624   2050047    999424   488M Linux filesystem
/dev/sda3  2050048 500117503 498067456 237.5G Linux LVM


Disk /dev/mapper/schan--vg-root: 229.6 GiB, 246503440384 bytes, 481452032 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/schan--vg-swap_1: 7.9 GiB, 8489271296 bytes, 16580608 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/cryptswap1: 7.9 GiB, 8488747008 bytes, 16579584 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 apt-get --fix-broken install何もインストールできません。

cannot copy extracted data for './boot/vmlinuz-4.4.0-93-generic' to  
'/boot/vmlinuz-4.4.0-93-generic.dpkg-new':   
failed to write (No space left on device)

ディスクの割り当てにはどのような問題がありますか?ディスクを再割り当てするには?
ありがとう

ベストアンサー1

/home/lorancechen/.Private私が見るにはファイル暗号化のようです。出力を見る

cat /proc/mounts | grep lorancechen

問題は、パーティションがいっぱいであるapt-getために発生します。/boot一部のLinuxディストリビューションは古いカーネルを削除しません。したがって、このためにいくつかのスクリプトをインストールするか、時々手動で実行する必要があります。行って/boot古いカーネルとinitrdを削除してください。

おすすめ記事