Linux (CentOS) mount a removable hard drive to achieve file copy, backup __linux

Source: Internet
Author: User
Tags file copy

Often we need to back up some of the data on the server, and today we are here to share with you how to use the removable hard disk to back up the files on the CentOS.

One, mount the removable hard disk (Mount NTFS format partition)

1. Install ntfs3g tools wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2011.4.12.tgz tar zxf ntfs-3g_ Ntfsprogs-2011.4.12.tgz CD ntfs-3g_ntfsprogs-2011.4.12./configure--prefix=/usr/local/ntf3g Make&&make Install

2. Mount (can be mounted using a variety of commands, blue represents the removable hard disk to be mounted, and the green represents a mount to a centos on the letter)

Command one: Ntfs-3g/dev/sdb1/mnt/windows-o Locale=ar_sa. UTF-8, the red part can also be changed to ZH_CN. GBK, it is obvious that the use of some kind of coding to mount, to prevent the occurrence of garbled;

Command two: Mount-t ntfs-3g/dev/sdb1/mnt/windows

Add: How to find the removable hard disk to be mounted. Please use the command fdisk-l to view and cancel the mount: umount/mnt/windows


second, mounted mobile hard disk error solution

1. Fatal:module fuse not found. (This is because the default kernel of the system does not support fuse modules, so update the kernel) modprobe fuse (This command is used to see if the system supports fuse) uname–r (view the kernel version of the system) Yum Install kernel* (update system kernel) SHUTDOWN-R now (restart computer) use the modprobe fuse command to see if the system supports fuse, and if you no longer show fatal:module fuse not found, you can enable Using NTFS3G to move the hard drive to mount the

Third, the file copy (the file copy is very simple) cp-r/web/mnt/windows (copy all files under the CentOS Web directory to/mnt/windows, that is, copy to the mobile hard disk we just mounted)

Related Article

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.