SUSE LES 11SP4 在/etc/fstab自动挂载iso文件
shell> cd /data/isofiles
shell> ls
SLES-11-SP4-DVD-x86_64-GM-DVD1.iso
手动挂载iso文件
shell> mkdir /mnt/dvd1
shell> mount -o loop /data/isofiles/SLES-11-SP4-DVD-x86_64-GM-DVD1.iso /mnt/dvd1
- 确认查看iso所挂载的文件系统类型
shell> df -TH|grep dvd1
/dev/loop1 iso9660 3.4G 3.4G 0 100% /mnt/dvd1
shell> umount /mnt/dvd1
- /etc/fstab文件末尾加入如下内容:
/data/isofiles/SLES-11-SP4-DVD-x86_64-GM-DVD1.iso /mnt/dvd1 iso9660 defaults,ro,loop 0
shell> mount -a
shell> df -TH|grep dvd1
/dev/loop1 iso9660 3.4G 3.4G 0 100% /mnt/dvd1