Linux CIFS boot automatically mounts Windows shared files

Source: Internet
Author: User

  1. Create a new shared folder on the Windows system share, System User: Test, Password: 12345,ip:172.16.4.118

  2. Create a new directory on the Linux system/home/share

  3. Vi/etc/fstab Add the//172.16.4.118/share/home/share cifs Defaults,username=vqiao,password=vqiao as follows:
    #
    #/etc/fstab
    # Created by Anaconda on Thu Oct 30 05:52:12 2014
    #
    # Accessible filesystems, by reference, is maintained under '/dev/disk '
    # See mans Pages Fstab (5), Findfs (8), mount (8) and/or Blkid (8) for more info
    #
    /DEV/MAPPER/VG_CENTOS1-LV_ROOT/EXT4 Defaults 1 1
    Uuid=ec9dac99-4d4d-4a20-b27a-d99ecbca50ea/boot EXT4 Defaults 1 2
    /dev/mapper/vg_centos1-lv_swap swap swap defaults 0 0
    TMPFS/DEV/SHM TMPFS Defaults 0 0
    Devpts/dev/pts devpts gid=5,mode=620 0 0
    Sysfs/sys Sysfs Defaults 0 0
    172.16.4.118/123/home/share CIFS Defaults,username=vqiao,password=vqiao 0 0

  4. Check with Mount-a for success, no problem if no display instructions.

Linux CIFS boot automatically mounts Windows shared files

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.