In both systems, Centos automatically mounts disks in windows.

Source: Internet
Author: User
First install the NTFS-3G package on linux, enable the linux system to identify the directory to be mounted when creating a disk in the ntfs format mkdir/sda. execute the following command to start mounting 1mount-tntfs-3g/dev/sda5/sda. now you can see that the disk has been successfully mounted 1234567 [root @ tysda] # dfFilesystem1K-blocks & n

First, install the NTFS-3G package on linux, so that the linux system can recognize the ntfs format disk


Create the directory to be mounted

Mkdir/sda

Run the following command to start mounting:


1 mount-t ntfs-3g /dev/sda5/sda


Now, you can see that the mounting is successful when you view df.

1234567 [root@ty sda]# dfFilesystem           1K-blocks      Used Available Use% Mounted on/dev/mapper/vg_ty-LVl040316280  26329356  11938924  69% /tmpfs                  1831488       312   1831176   1% /dev/shm/dev/sda8198337     34225    153872  19% /boot/dev/sda579706464  57682884  22023580  73% /sda


Although the mounting is complete, the system has to be remounted after the system is restarted. now we need to enable automatic mounting upon startup.

Vi/etc/fstab

123 sysfs            /syssysfs    defaults    0 0proc            /procproc    defaults    0 0/dev/sda5/sdantfs-3g  defaults    0 0

Add the last line, restart the system, and use df to check that the disk in windows is mounted.



Mounting an iso image in linux

Rhel-server-6.2-x86_64-dvd.iso of mount-o loop

Although the mounting is complete, the system has to be remounted after the system is restarted. now we need to enable automatic mounting upon startup.

Vi/etc/fstab

/Iso/rhel-server-6.2-x86_64-dvd.iso/var/rhel6.2 iso9660 ULTS ults, rw, loop =/dev/loop0 0 0


This article is from the "fish" blog, please be sure to keep this source http://ty1992.blog.51cto.com/7098269/1318694


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.