Linux Install fails due to noexec mount option on CDROM/DVD

本文介绍了解决某些Linux发行版因CD/DVD设备默认使用noexec挂载选项而导致安装程序无法运行的问题。通过禁用noexec选项,可以确保安装程序能够直接从光盘运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Linux Install fails due to noexec mount option on CDROM/DVD

Published 02/20/2009 12:24 AM   |    Updated 05/04/2010 08:48 AM


Certain Linux distributions have a default setting for CDROM/DVD devices where a "noexec" option is used when mounting the device.  This causes the installer to fail with the following error:


-bash: ./cvpkgadd: /bin/sh: bad interpreter: Permission denied

 

Cause:


Some Linux systems have enhanced security that mount CDROM/DVD devices with the "noexec" option.   This prevents applications/scripts from being executed directly from the device when mounted.

 

Resolution:


To resolve this issue, turn off the "noexec" option after the CD/DVD is mounted.  This can be done using the mount command with the "remount" option combined with the "exec" option.  This will then allow the installer to run directly from the CD/DVD.


Here is an example ot the command.


First, here is a device mounted with the noexec option:


zephyr:~ # mount | grep DISC2
/dev/hdb on /media/DISC2 type subfs (ro,noexec,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8)
zephyr:~ #
 


Here is an attempt to run the installer:


zephyr:~ # cd /media/DISC2/galaxy/
zephyr:/media/DISC2/galaxy # ./cvpkgadd
-bash: ./cvpkgadd: /bin/sh: bad interpreter: Permission denied
zephyr:/media/DISC2/galaxy #


Here is the command to remove the "noexec" option on the mounted CD/DVD:


zephyr:/media/DISC2/galaxy # mount -o remount,exec /media/DISC2
zephyr:/media/DISC2/galaxy # mount | grep DISC2
/dev/hdb on /media/DISC2 type subfs (ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8)
zephyr:/media/DISC2/galaxy #


The "noexec" option is no longer there, and the installer will now run.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/611609/viewspace-686382/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/611609/viewspace-686382/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值