Mount USB flash drives, mobile hard disks, and ISO image files in Linux

Source: Internet
Author: User

Recently, the company's power line was overhauled, and the power supply was cut off under abnormal circumstances. As a result, a Ubuntu server cannot continue the Service (many strange faults ),

We plan to replace the system with centos 5.2. This will be more stable.

Export some data before installation. Because the network service is not started. I had to use mobile storage to transfer data.

Ubuntu Platform

USB flash drive

Sudo Mount-T vfat/dev/sdb1/mnt/U-O uid = 1001-O gid = 1001

Mobile hard drive

Sudo Mount-t ntfs/dev/hdb5/mnt/Uu-O uid = 1001-O gid = 1001-o force

CD image

Sudo Mount-T iso9660/home/demo. ISO/mnt/CDROM-o loop


Centos

USB flash drive

Sudo Vim/etc/fstab

/Dev/sda1/home/u vfat noauto, user, owner, exec 1 2

Mount/home/u

 

Mobile hard drive (NTFs format)

Download the latest NTFS-3G release,

   ./configure
make
make install

Sudo Vim/etc/fstab

/Dev/sda5/home/UU ntfs-3g noauto, user, owner, exec, uid = 501, gid = 501 1 2

Mount/mnt/u

 

Or

Sudo Mount-T ntfs-3g/dev/sdb5/mnt/U-o force (/mnt/u should exist !)

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.