Siege Lion on the Way (iii) Linux (24)---Linux settings boot mount and image file mount

Source: Internet
Author: User

Although the file system can be mounted manually, but each time the manual mount will be cumbersome, the purpose of the boot mount is to achieve automatic file system mount.

First, boot mount:/etc/fstab and/etc/mtab

This is done primarily by modifying the configuration of the/etc/fstab file. Fstab is the setup at boot time, the actual file system mount is recorded in the two files of/etc/mtab and/proc/mounts.

1, the System mount limit:

A, root directory/must be mounted, and must be first mounted, prior to the other mount point.

B, the other mount point must be a newly created directory, can be arbitrarily specified.

C, all mount points at the same time, can only be mounted once.

D, all partitions can only be mounted once at the same time.

E, if you uninstall, you must first switch the working directory outside the Mount point.

2. Use Cat/etc/fstab to view configuration information:

Label=/home/home ext3 Defaults 1 2

Description of the above 6 fields:

① device name or device label

② mount point

③ File System type

④ File system parameters (see 235 page description)

Can the ⑤ be played by the dump backup command:

0: Do not make a dump backup.

1: Daily dump operation.

2: Other variable-date dump backups.

⑥ whether to test the sector with FSCK:

0: Not tested.

1: The earliest test, generally with the root directory/

2: Other tests.

3. Modify the file using Nono/etc/fstab:

4, use the MOUNT-A command to automatically mount, restart you can see the effect.

Second, special equipment loop mount (image files can be mounted without burning):

1, Mount-o Loop/root/centos.iso/mnt/centos_dvd;

2, Advanced play: Can be in a partition, using the DD command to create a large empty file, formatted after the mount, the equivalent of a new file system.

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.