Mount Storage in Linux systems

Source: Internet
Author: User

Tag: Mount Mount

    1. The correct Mount disc

After you attach the disc to the Linux system, you need to mount it correctly by first using the Df-h command to view the file system name of the CD-ROM drive, generally by default is/dev/sr0, and then create the file directory you want to mount, Mkdir-p/mnt/cdrom

Then use the command Mount/dev/sr0/mnt/cdrom to mount the disc to the CDROM directory.

2. Mount the newly added storage correctly

Use Fdisk-l to view all disk information (both mounted and not mounted) directly after the disk has been added

Use Fdisk/dev/sdb directly after you see an unpartitioned disk (disk starts with SDA, SDB,SDC,SDD, and so on)

1.N is to add a new partition, note that extended is an extended partition, cannot be formatted and mounted, here directly select P

2. Then select the partition number (1,2,3,4) according to the actual demand

3. Select the disk header and follow the prompts to select the default starting column

4. Select the partition size according to the actual demand

5.W Save the partition

If you want to delete a new partition, you can use Fdisk/dev/sdb

Press D directly to follow up the delete operation.


Formatting mkfs.ext3/dev/sdb1

If formatting is not possible, enter the command partprobe/dev/sdb before entering the above command


Mount operation after formatting

Create the required folders first Mkdir/test1

Mount/dev/sdb1/test1 can be mounted successfully

Use the df-h command to view the newly added disk after it has been mounted successfully


Cancel Mount umount/dev/sdb1 or cancel mount point Umount/test1


This article is from the "Drunken Cold wind" blog, please be sure to keep this source http://zydw415.blog.51cto.com/10608909/1761509

Mount Storage in Linux systems

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.