Linux Server partition formatting knowledge-mount

Source: Internet
Author: User

    • Learn about the Linux system mount and mkfs :

    • using Mount

1) related format for mount:Mount "-t file type""-o option" Devicedir

Explanation: -T file type , usually the default mount will automatically select the correct type, usually type EXT2/EXT3/EXT4, and so on.

the common types are:

disc or disc Image:iso9660
Fat16
Fat32


The 0 option is mainly used to describe the device or file hook-up method, commonly used parameters are:
Loop : Used to treat a file as a hard disk partition



Note: To create a close image file from the shutdown, insert the disc into the CD-ROM operation:


2. Mount the disc Image:

Mount-o loop-t iso9660 /home/sunky/mydisk.iso/mnt/vcdrom
Note: You can access all the files in the disk image file Mydisk.iso using/mnt/vcdrom.
Hooking up a removable hard disk

    1. 3. Mount u disk:

Mount–t Vfat–o Iocharset=cp936/dev/sdd1/mut/usb

Ii. problems encountered when mounting:

The error is as follows:

    1. 1. mount point does not exist, may be mounted directory not, view mount directory exists.

    2. 2. Prompt in error, file type wrong, DMESG | tail error:can ' t find ext3 filesystem on Dev sdb2, error, this need to check if the partition has formatting, such as, MKFS.EXT4 device.

III. related issues with formatted partitions:

    1. 1. MKFS related uses of:

The format is as follows: MKFS [-v] [-t fstype] File type device

- v : Verbose display mode

- T : Given the format of the file system, Linux has a default value of Ext2.

C: before making the file system, check whether the partition has a bad track.

2. Mkfs formatting problems encountered:

The error is as follows:/DEV/SDB1 is apprarently on use by the system; won't make a filesystem here!)

Here's how to fix it:

1) use Dmsetup status to see if a device is linear

2) If there is a linear device, then Dmsetup remove_all

3) clears after the Dmsetup status check has been cleared.

4) now it's time to format it.







Linux Server partition formatting knowledge-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.