简体   繁体   English

"引导时挂载的分区,但未在 fstab 中列出"

[英]Partition mounted on boot, but not listed not in fstab

I thought I was a fairly advanced Linux administrator working on a Centos (Fedora) machine.我以为我是在 Centos (Fedora) 机器上工作的相当高级的 Linux 管理员。 I have modified fstab to not mount a particular partition at boot, yet it keeps mounting.我已修改 fstab 以在启动时不挂载特定分区,但它会继续挂载。 It is no longer in fstab, but I can see it mounted in mtab (last line) on reboot.它不再在 fstab 中,但我可以看到它在重新启动时安装在 mtab(最后一行)中。 It is immediately mounted, as soon as I login.一旦我登录,它就会立即安装。 Any idea at what point during a reboot this partition could be mounting?知道在重新启动期间该分区可能会在什么时候挂载吗? I didn't see anything in cron, but not certain.我在 cron 中没有看到任何内容,但不确定。 any ideas on where to look for clues would be great.关于在哪里寻找线索的任何想法都会很棒。 Thanks in advance.提前致谢。

\/etc\/fstab<\/code> : \/etc\/fstab<\/code> :

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=SWAP-sda2         swap                    swap    defaults        0 0

It's very possible that it's being mounted by the automounter. 它很可能被自动挂载程序挂载。 Try disabling the autofs service ( sudo chkconfig autofs off ) and rebooting - if it doesn't mount with autofs turned off, have a like at /etc/auto.master (and friends). 尝试禁用autofs服务( sudo chkconfig autofs off )并重新引导-如果在autofs关闭的情况下无法挂载,请在/etc/auto.master(和朋友)中找到类似的东西。

More info on autofs configuration can be found in RedHat's manual: https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/s2-nfs-config-autofs.html 可以在RedHat手册中找到有关autofs配置的更多信息: https : //access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/s2-nfs-config-autofs.html

I had the same issue on a server, eventually figured out someone had placed a mount command at startup in root's crontab.我在服务器上遇到了同样的问题,最终发现有人在启动时在 root 的 crontab 中放置了一个 mount 命令。

Hope I save someone else the time it took me to find this...希望我能节省其他人找到这个的时间......

"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM