挂载在 / 目录的设备即为主盘,可以使用 df -lh 命令或 mount 命令查看:
[root@iZ25a38chb4Z ~]# df -lhFilesystem Size Used Avail Use% Mounted on/dev/xvda1 20G 2.7G 17G 15% /tmpfs 498M 0 498M 0% /dev/shm[root@iZ25a38chb4Z ~]# mount | column -t/dev/xvda1 on / type ext4 (rw,barrier=0)proc on /proc type proc (rw)sysfs on /sys type sysfs (rw)devpts on /dev/pts type devpts (rw,gid=5,mode=620)tmpfs on /dev/shm type tmpfs (rw)none on /proc/xen type xenfs (rw)none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)从上例可知,我的系统主磁盘设备为:/dev/xvda1
发布于2017.12.14