Implementing trigger Mounts in LINUX

Source: Internet
Author: User

Experimental objectives:

this experiment realizes " Trigger Mount " , save system resources,

Introduction:

in this paper // for comments, easy for the reader to understand;

Add color font as important point in text

Experimental process:

[Email protected] ~]# Vim/etc/auto.master

//autofs The home directory configuration is shown in the attachment map 1

[email protected] ~]# Vim/etc/auto// configuration directory file See attachment map 2 [[email protected] ~]# cd/etc/

[email protected] etc]# mkdir test// Create mount Directory

[[email  Protected] etc]# ls-ld test/    //

[[email  Protected] etc]# serviceautofs restart  // AutoFS auto.master

stop automount                                               [ OK

start automount                                               [ OK

[email protected] etc]# mount// verifying that the device can be mounted SDB1

/dev/sda2 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)

/dev/sda3 on/data type ext3 (rw)

/DEV/SDA1 on/boot type ext3 (rw)

Tmpfs ON/DEV/SHM type TMPFS (rw)

/DEV/SDB1 on/data/sdb1 type ext3 (rw)

/DEV/SDB2 on/data/sdb2 type ext3 (rw)

/DEV/SDB6 on/data/vfat type VFAT (rw)

None On/proc/sys/fs/binfmt_misctype Binfmt_misc (rw)

None On/proc/fs/vmblock/mountpointtype Vmblock (rw)

Sunrpc on/var/lib/nfs/rpc_pipefstype rpc_pipefs (rw)

/dev/sr0 on/media/rhel_5.10 I386dvd type iso9660 (ro,nosuid,nodev,uid=0)

/ / SDB1 /data/test mount is not to be seen!! The author is here in a set.

So the following:

[email protected] etc]# cd/data/test/// This directory allows us to set the mount point, the visible graph 1

[Email protected] test]# CD SDB1

[[Email protected]]#// successfully mounted, already entered /DATA/TEST/SDB1

[email protected] test]# mount// View Mount Results

/dev/sda2 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)

/dev/sda3 on/data type ext3 (rw)

/DEV/SDA1 on/boot type ext3 (rw)

Tmpfs ON/DEV/SHM type TMPFS (rw)

/DEV/SDB1 on/data/sdb1 type ext3 (rw)

/DEV/SDB2 on/data/sdb2 type ext3 (rw)

/DEV/SDB6 on/data/vfat type VFAT (rw)

None On/proc/sys/fs/binfmt_misctype Binfmt_misc (rw)

None On/proc/fs/vmblock/mountpointtype Vmblock (rw)

Sunrpc on/var/lib/nfs/rpc_pipefstype rpc_pipefs (rw)

/dev/sr0 on/media/rhel_5.10 I386dvd type iso9660 (ro,nosuid,nodev,uid=0)

/dev/sr0 ON/MISC/CD type iso9660 (Ro,nosuid,nodev)

/dev/sdb1 on/data/test/sdb1 type ext3 (rw)// confirm once again that it has been mounted successfully

Experimental Summary:

The text of the red font so that we have to pay attention to, the author of this in the set, that the experiment failed to view the configuration without fruit, note that we do the experiment is triggered mount is not automatically mounted. The problem is solved by the thought of mounting position.

Pure hand fight!!!

This article is accompanied by a picture ,


This article is from the "Sunandmoon" blog, make sure to keep this source http://ssunandmoon.blog.51cto.com/10047194/1630153

Implementing trigger Mounts in LINUX

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.