一般情况下面,我们可以通过
mount -t iso9660 -o loop xx.iso /media
类似的写入/etc/fstab中
xx.iso /media iso9660 defaults,ro,loop 0 0 然后再mount -a 挂载
但是或许会出现如下问题:
[root@desktop2 ~]# cat /etc/fstab |grep iso
/root/rh401-pub.iso /mediaiso9660 defaults,ro,loop 0 0
[root@desktop2 ~]# mount -a
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error
In some cases useful info is found insyslog – try
dmesg | tailor so
提示错误的文件系统类型,so,可能iso镜像文件并不是一般的iso9660格式的,如何查看呢?
1.手动挂载
2.查看系统类型 udf
[root@desktop2 ~]# mount -o loop rh401-pub.iso /media/
[root@desktop2 ~]# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda2 ext3 135325776 55307840 73032876 44% /
/dev/sda1 ext3 194442 12027 172376 7% /boot
tmpfs tmpfs 2998992 0 2998992 0% /dev/shm
/root/rh401-pub.iso
udf 31957342 31957342 0 100% /media
3.在/etc/fstab中就知道怎么写了
[root@desktop2 ~]# grep udf /etc/fstab –color
/root/rh401-pub.iso/mediaudfdefaults,ro,loop0 0
[root@desktop2 ~]# mount -a
[root@desktop2 ~]# mount |grep udf –color
/root/rh401-pub.iso on /media type udf (rw,loop=/dev/loop0)
相关阅读:
RedHat5.5的/etc/resolv.conf文件被复写的解决 http://www.linuxidc.com/Linux/2013-06/85636.htm
Linux的/etc/services文件的作用? http://www.linuxidc.com/Linux/2013-04/83668.htm
sudo: /etc/sudoers is mode 0540, should be 0440解决 http://www.linuxidc.com/Linux/2013-03/81343.htm
Redhat Enterprise Linux 5.3下的配置文件/etc/syslog.conf解析 http://www.linuxidc.com/Linux/2013-03/80706.htm
调整/etc/sysctl.conf网络参数提高系统负载 http://www.linuxidc.com/Linux/2013-01/78316.htm