On bootup, it seems CentOS automatically mounts the floppy drive to /media/floppy. Is there a way to stop this from happening, short of removing the floppy drive from the system (as I don't use it)? Thanks, Ash Christopher -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20050825/ba503337/attachment-0001.html>
On Thu, 2005-08-25 at 13:40 -0600, Ash Christopher wrote:> On bootup, it seems CentOS automatically mounts the floppy drive > to /media/floppy. > > > > Is there a way to stop this from happening, short of removing the > floppy drive from the system (as I don?t use it)? >--- noauto option in /etc/fstab should do it... CentOS 4 /dev/fd0 /media/floppy1 auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0 CentOS 3 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 Craig
Hi Craig, By default there is a noauto in the fstab. I first tried removing the entry for the floppy from the fstab, and upon my next boot up the following was inserted at the end of my fstab file: /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0 Are you suggesting I change this to the following? So, as you can see, the noauto is already in my fstab. Maybe I do not understand your solution properly. Thanks, Ash -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Craig White Sent: Thursday, August 25, 2005 1:50 PM To: CentOS mailing list Subject: Re: [CentOS] Mount floppy on startup? On Thu, 2005-08-25 at 13:40 -0600, Ash Christopher wrote:> On bootup, it seems CentOS automatically mounts the floppy drive > to /media/floppy. > > > > Is there a way to stop this from happening, short of removing the > floppy drive from the system (as I don't use it)? >--- noauto option in /etc/fstab should do it... CentOS 4 /dev/fd0 /media/floppy1 auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0 CentOS 3 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 Craig _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos
Ok, it seems I am a little off on my problem description. I can delete /media/floppy but on system restart, that directory is automagically created. I thought this would have been from my fstab entry, so I deleted both the /dev/fd0 line from my fstab, and deleted the /media/floppy directory but on bootup, both are created. -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Mike McCarty Sent: Friday, August 26, 2005 12:27 AM To: CentOS mailing list Subject: Re: [CentOS] Mount floppy on startup? Ash Christopher wrote:> Hi Craig, > > By default there is a noauto in the fstab.Depends on who created the fstab entry.> I first tried removing the entry for the floppy from the fstab, andupon> my next boot up the following was inserted at the end of my fstabfile:> > /dev/fd0 /media/floppy auto > pamconsole,exec,noauto,managed 0 0 >This is my entry, which works under FC2 to do exactly what you want. /dev/fd0 /mnt/floppy auto noauto,user,exec,kudzu 0 0 (well, I cut some space for readability)> Are you suggesting I change this to the following? So, as you can see, > the noauto is already in my fstab.Yes, I don't understand what is the problem, myself. OTOH, I don't know what the "pamconsole" does, either, nor the "managed". Perhaps "managed" is a replacement for "kudzu", but I doubt it.> Maybe I do not understand your solution properly. > > Thanks, > AshMike -- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} This message made from 100% recycled bits. You have found the bank of Larn. I can explain it for you, but I can't understand it for you. I speak only for myself, and I am unanimous in that! _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos
In reality, it is because I am anal. I changed to CentOS from Gentoo, and with Gentoo, there was no /media directory. I had drives mounted to /media/music , /media/television, and so on. So, when I changed to CentOS, by habit I wanted the same structure. Now when connecting to my samba share that connects to the /media directory, I get two other directories; floppy and lost+found. I guess it isn't a big deal, but it definitely bothers me. There has to be a reason that that dir and fstab line are being added. The fact that I don't know how it works bothers me more than having those two directories =). -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Mike McCarty Sent: Friday, August 26, 2005 11:59 AM To: CentOS mailing list Subject: Re: [CentOS] Mount floppy on startup? Ash Christopher wrote:> Ok, it seems I am a little off on my problem description. > > I can delete /media/floppy but on system restart, that directory is > automagically created. I thought this would have been from my fstab > entry, so I deleted both the /dev/fd0 line from my fstab, and deleted > the /media/floppy directory but on bootup, both are created.Ah, I thought you meant that you were having mounts take place when the floppy disc was present in the drive. Why do you care if there is an empty directory? Mike -- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} This message made from 100% recycled bits. You have found the bank of Larn. I can explain it for you, but I can't understand it for you. I speak only for myself, and I am unanimous in that! _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos