实践mount

挂载iso

1
2
3
$ mount -o loop /software/rhel64.iso /mnt/os
# 卸载
$ unmount /mnt/os

开机自动挂载,在/etc/fstab中追加如下内容:

1
/software/rhel64.iso    /mnt/os               iso9660 loop            0 0

编辑/ets/fstab后可以通过如下命令校验:

1
$ mount -a