Automatic mount CDRom and fstab file contents detailed

Source: Internet
Author: User

The /etc/fstab is automatically mounted to the Linux file system at boot time.
The data items that are/etc/fstab in Linux are as follows:
  
 
  1. /dev/device     mountpoint type     rules     0 order
  2. 例如这是一个普通的/etc/fstab:
  3. /dev/hda2      /      ext3 defaults 0 1
  4. /dev/hda3      swap swap     defaults 0 0
  5. /dev/hda5      /usr      ext3     defaults 0 0
  6. /dev/fdo /mnt/flopy ext3     noauto 0 0
  7. #开机不自动挂载
  8. /dev/cdrom /mnt/cdrom iso9660  noauto,ro 0 0
  9. #开机自动挂载
  10. #/dev/cdrom /mnt/cdrom iso9660  noauto,ro 0 0

    • /dev/device: devices that require mounting
    • Mountpoint: Mount point.
    • Type: File System class shape.
    • Rules are those that are attached to a mount. Here are a few common examples:
        Auto-mount automatic boot        Default sets the mount definition according to the default values of most permanent file systems        noauto Boot does not mount automatically        Nouser only super users can mount        ro Mount by read-only permission        RW mount by Read writable permission        user can mount Please noteThe optical drive and floppy drive can be mounted only when the media is installed, so it is Noauto
    • 0 refers to the dump (System Backup utility). This entry is 0, which means that you never back up. If you last backed up with a dump, the number of days since backup is displayed.
    • Order refers to fsck (the order in which fsck checks at startup). 0 means no check, the (/) partition is always 1, the other partitions can only start at 2, and when the numbers are the same check (but not 21).

After modifying the/etc/fstab, be sure to reboot the system before it is valid.




From for notes (Wiz)

Automatic mount CDRom and fstab file contents detailed

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.