Mount the hard disk to the mount point

Source: Internet
Author: User
Mount the hard disk to the mount point fdisk-l to view all the hard disk information www.2cto. run comdf-h to check whether the attached hard disk is mounted. for example, Mount/dev/sdb to/mnt/sdb. create a file system for the disk: mkfs. ext3/dev/sdb-create a mount point: mkdir/mnt/sdb-mount: mount/de... mount the hard disk to the mount point fdisk-l to view all the hard disk information www.2cto.com df-h to view the status of the mounted hard disk. for example: mount/dev/sdb to/mnt/sdb-create a file system for the disk: mkfs. ext3/dev/sdb-create a mount point: mkdir/mnt/sdb-mount: mount/dev/sdb/mnt/sdb-fdisk-l if there is a problem: disk/dev/sdb doesn't contain a valid partition table-fdisk/dev/sdbCommand (m for help): MCommand action a toggle a bootable flag B edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types print this menu n add a new partition here we will add new partition, therefore, enter "n": Command (m for help): nCommand action e extended p primary partition (1-4) pPartition number (1-4 ): 1 First cylinder (1-14098, default 1): (press enter here) Using default value 1 Last cylinder or + size Or + sizeM or + sizeK (1-14098, default 14098): (press enter here) Using default value 14098 Command (m for help): pDisk/dev/sdb: 115.9 GB, 115964116992 bytes255 heads, 63 sectors/track, 14098 cylindersUnits = cylinders of 16065*512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdb1 1 14098 113242153 + 83 Linux can now be written to the partition table, so enter "w ": command (m for help): wThe partition table has been altered! Calling ioctl () to re-read partition table. syncing disks. then, add the "Mount" action to the boot execution vi/etc/fstab and add a line:/dev/sdb/mnt/sdb ext3 defaults 0 1 and then fdisk-l, the result is normal. Check that df-h has been mounted normally.
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.