我已经在 120GB SSD 上安装了 ubuntu 20.04,然后我将我的主文件夹安装在一个更大的磁盘上,如/etc/fstab
(/home/pc_magas
是我的主文件夹)所说:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=7bbdd0c0-a528-4144-b05e-10319a15be39 / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
UUID=419d21fa-f1e1-4bca-bbc7-fa71eb3882a1 /mnt ext4 defaults 0 0
/home/pc_magas /mnt/pc_magas none bind
/mnt/var /var none bind
我拥有的磁盘是(sudo dlkid
如前所述):
/dev/sda1: UUID="7bbdd0c0-a528-4144-b05e-10319a15be39" TYPE="ext4" PARTUUID="50b1776c-781e-4a90-af3e-f1af03c714d8"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/sdb1: UUID="419d21fa-f1e1-4bca-bbc7-fa71eb3882a1" TYPE="ext4" PARTUUID="000332e6-01"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"
/dev/loop14: TYPE="squashfs"
/dev/loop15: TYPE="squashfs"
/dev/loop16: TYPE="squashfs"
/dev/sdg1: UUID="B5F4-61B7" TYPE="vfat"
硬盘是/dev/sdb1
这样大小的:
$ df -h /dev/sdb1
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 458G 3,1G 432G 1% /mnt
主文件夹的大小是这样的:
$ df -h /home/pc_magas/
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 110G 103G 1,9G 99% /
那么为什么挂载的主文件夹即使挂载在不同的磁盘上也没有多少空间呢?
另外为什么/home/pc_magas
也安装在上面/dev/sda1
?