Linux disk Mount

Source: Internet
Author: User

1, use the root user to view the disk mount situation: Fdisk-l
2, use DF to view the current disk mount, based on the results of fdisk-l and compare to see those disks are not used
3. Mount: Mount disk Mount Path

Un-mount
Umount/dev/sdb1
Re-mount
Mount/dev/sdb1/home/msgplusdata

Having the Linux system mount automatically when booting requires that the root user be configured in the Fstab file
mvas-85:~ # Vim/etc/fstab

To format a disk:
1. Use Umount to cancel disk mount
2. Format the disk with MKFS.EXT3/DEV/SDC
Mvas-85:/home # MKFS.EXT3/DEV/SDC

Rsync
1, view the status of Rsync
Mvas-85:/home/msgplusdata # service RSYNCD status
Checking for rsync daemon:                                                                                                             unused
2, start rsync using the service RSYNCD Start command
Mvas-85:/home/msgplusdata # service RSYNCD start

Disk Soft Connect
1, delete the local needs of the soft connection directory, such as: Remote_dir
2. Using the ln command soft connection, command format: Ln-s soft-Connect directory is soft-connected directory
[Email protected]:~/msgplus> ln-s/home/msgplusdata/remote_dir Remote_dir

Command parameters:
Necessary parameters:
-B Delete, overwrite previously established link
-D allows super users to make hard links to directories
-F Force Execution
-I interactive mode, file presence prompts the user whether to overwrite
-N treats symbolic links as generic directories
-S soft link (symbolic link)
-V displays detailed processing procedures
Select parameters:
-S "-s< tail backup string >" or "--suffix=< tail backup string >"
-V "-v< backup method >" or "--version-control=< backup method >"
--HELP Display Help information
--version displaying version information

Linux disk Mount

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.