Hi!
Whenever I plug an external harddrive to a CentOS system,
all partitions mounted will have noexec that makes my
binaries or script files not executable.
Quote:
[root@centos52-64-dell ~]# mount
/dev/sda3 on / type ext3 (rw)
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)
/dev/sdb2 on /media/ext3-datadisk type ext3 (rw)
/dev/sda1 on /windows type ntfs (ro,umask=0222)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb5 on /media/distro1-f10 type ext3 (rw,noexec,nosuid,nodev)
/dev/sdb7 on /media/distro3-u804 type ext3 (rw,noexec,nosuid,nodev)
/dev/sdb8 on /media/movie-files type ext3 (rw,noexec,nosuid,nodev)
/dev/sdb1 on /media/VFDATAD1 type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=500)
/dev/sdb6 on /media/distro2-test-C54 type ext3 (rw,noexec,nosuid,nodev)
|
I have to remount it using, e.g.,
mount -o remount,exec /dev/sdb1
But I am sick and tired of doing it everyday.
What I can I do ?
I don't want to use /etc/fstab to solve this problem because
it will cause booting problem (curable though) when the hard drive is not
around.