LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Auto mounting file system (https://www.linuxquestions.org/questions/linux-newbie-8/auto-mounting-file-system-4175433820/)

procfs 10-24-2012 06:09 AM

Auto mounting file system
 
Hi, I am using Redhat 5 and I have 4 additional filesystem which get mounted at the boot time even though there is no entry in the /etc/fstab

can some one tell me how this is done

Thanks and regards

epislav 10-24-2012 08:16 AM

Try looking at /etc/auto.* files
They are related to autofs

MensaWater 10-24-2012 08:19 AM

Showing us df -h output for the filesystems in questions would help. The previous reply assumes these are NFS mounts.

It could be some other script doing the mount for specific purposes - I've seen many a loopback mounted that way. Looking in /etc/init.d for any script that runs the "mount" command might help you figure out what it is if it isn't an auto NFS mount. (Auto NFS by the way should only mount filesystems when they are accessed as that is the point - when not in use autofs filesystems unmount themselves.)

procfs 10-24-2012 12:11 PM

Hi Guys, thanks for the reply

# df -h .
/dev/cciss/c0d0p10 67G 4.8G 59G 8% /media/_working_files

# e2lable /dev/cciss/c0d0p10
/working/files

I checked /etc/init.d for any custom mount scripts but not things is out of place though

Thanks and regards

MensaWater 10-24-2012 02:12 PM

If you're using the disk label it is possible the mount in /etc/fstab is using that rather than the disk name.

For example I have /boot on a system showing up in df -h as:
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 99M 28M 66M 30% /boot

But the actual entry in fstab is:
LABEL=/boot /boot ext3 defaults 1 2

That is to say there is no direct mention of /dev/cciss/c0d0p1 in fstab because it is using the label instead.

Perhaps you have a line starting "LABEL=/working/files" in your fstab?

procfs 10-30-2012 03:05 AM

Hi MensaWater, this is the first thing that I checked, I dont see any thing related to this file system in the /etc/fstab

Strange though every time the system boots up this file system gets mounted :( but I am unable to find any trace how this is getting mounted

Thanks and Best Regards

chrism01 10-30-2012 05:33 AM

As epislav indicated, start with looking at /etc/auto.master
http://linux.die.net/man/5/auto.master
http://linux.die.net/man/8/automount5
http://linux.die.net/man/5/autofs

MensaWater 10-30-2012 10:12 AM

It might be helpful if you posted the full output from your /etc/fstab and /etc/auto* files.

procfs 10-30-2012 11:42 PM

1 Attachment(s)
Hi Guys, since the cat output of all auto files are attached with a file name auto_file

Thanks and Regards

MensaWater 10-31-2012 09:58 AM

It appears you're right that none of those is doing the mount.

Did you ever check the scripts in /etc/init.d to see if any of those are doing a mount command (other than the standard ones)? I'd mentioned that in my initial reply. Doing a grep working/files /etc/init.d/* would probably be best to check for this since that is the mounted filesystem's name.

You might also want to check your cron files to see if any of those are doing it.

Also although seldom used for such purposes these days it is barely possible you have a script being called by /etc/inittab doing the mount so you can look there to rule it out.

Of course its possible that one of your scripts is calling another one that is doing the mount so it may be harder to find because you'd have to look at levels. Also it is possible that you have a completely separate server doing an ssh into this one to do the mount and that would be even harder to find. You could try manually unmounting the filesystem then removing the mount point directory so the mount fails when attempted to see if you get an error message on boot or start getting errors in /var/log/messages or cron log or somewhere else when it tries to do the mount.

procfs 11-02-2012 12:38 AM

Hi, found some information hope this will help,

Every time I change the volume label (using e2lable) it uses this information to create a mount point under /media/XXXXXXX to auto mount the FS

Say I changed the volume label e2label /dev/cciss/c0d0p1 /home/yyy
then I go about rebooting the server, then I can see this filesystem is mounted under /media/yyy

Have no idea what is going on and I am unable to find any script that might do this :(((

Thanks and Regards

procfs 04-06-2013 11:11 AM

Hi Guys, I know this is an age old question but I failed to find any reason for this file system to auto mount with out any entry in /etc/fstab :((((, I am totally lost. Any help appreciated

Thanks and Best Regards

johndears 04-06-2013 12:22 PM

...

procfs 05-30-2013 05:19 AM

Hi, can it be this gnome-volume-manager doing this auto mounting under media, think that this hard disk partition is a removable

I need help :(

Thanks and Regards

procfs 06-13-2013 01:11 AM

Hi This only happens if I Label the file system, I have removed all the Labels and called the device name from the fstab and it worked

Dont know why, as soon as I label the filesystem it automatically gets mounted at the reboot time under /media directory even there is no corresponding entry in fstab file :(

Thanks and Best Regards


All times are GMT -5. The time now is 05:44 PM.