Use of the Linux partitioning tool fdisk and Mount device

Source: Internet
Author: User
Tags virtual environment


first add a piece to the virtual environment SCSI of virtual hard disks.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/45/C8/wKioL1PrI-2Aqsq5AAHrows6Jx4233.jpg "title=" 2014-08-13 13:34:00 screen. png "alt=" wkiol1pri-2aqsq5aahrows6jx4233.jpg "/>

after adding the hard drive we need to hang the hard drive on the device,what you need to notice is the third Arabic numeral in double quotes."1"on behalf of the first hard drive added, you also need to mount the hard drive."1"a large upward integer is sufficient.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/45/C7/wKiom1PrIvHxWwVzAAA3LFLxVgk803.jpg "title=" Echo.png "alt=" Wkiom1privhxwwvzaaa3lflxvgk803.jpg "/>

by Command "fdisk/dev/sd [tab] or Ls/dev " we can see the hard drive we just added. SDB

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/45/C7/wKiom1PrIy-TNOY4AAAyg-a7Ozg396.jpg "title=" Sdb.png "alt=" Wkiom1priy-tnoy4aaayg-a7ozg396.jpg "/>

using the command "FDISK/DEV/SDB"partition the hard disk I'm building a primary partition here .promary1and,assigned a5000M. Create an extended partition by creating a logical partition.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/45/C8/wKioL1PrJNywboVaAADU5H80E-g709.jpg "title=" n1.png "alt=" Wkiol1prjnywbovaaadu5h80e-g709.jpg "/>

If an error occurs during partitioning, you may need to re-partition to use D Delete a partition for re-planning.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/45/C7/wKiom1PrI-iA2mDIAAEqmSwZ_Kw112.jpg "title=" D.png " alt= "Wkiom1pri-ia2mdiaaeqmswz_kw112.jpg"/>

because the default after partition creationIDis a theand here I want to use partitioning2Extended Swap partitionSwapsize so you need to change the partition'sIDnumber is.

in the Linux The lack of physical memory can be mitigated to some extent in the system. If the current Linux host is running too many services that require more swap space to support the application, you can add new swap space for it.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/45/C8/wKioL1PrJRjB-Nf8AAN0FwEPlbY350.jpg "title=" id.png "alt=" Wkiol1prjrjb-nf8aan0fweplby350.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/45/C8/wKioL1PrJTrQU50WAAB-Ngdv4JQ672.jpg "title=" T.png " alt= "Wkiol1prjtrqu50waab-ngdv4jq672.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/45/C7/wKiom1PrJHLSAb-GAAI2s5tdebE752.jpg "title=" pw.png "alt=" Wkiom1prjhlsab-gaai2s5tdebe752.jpg "/>

FormattingSDB1to beext3the System log file format thenSDB1Mount toWebon the file


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/45/C8/wKioL1PrJcWRS6S6AAHmJNLOowQ835.jpg "title=" Nxt3.png "alt=" Wkiol1prjcwrs6s6aahmjnloowq835.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/45/C7/wKiom1PrJN3Q25CNAAD1kUA9teY279.jpg "title=" Selection _ 014.png "alt=" Wkiom1prjn3q25cnaad1kua9tey279.jpg "/>

initializes the physical swap partition for the new swap partition. You need to use the swapon command to enable it. Conversely, use swapoff to deactivate swap partitions.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/45/C8/wKioL1PrJgbhWlIbAAFYfdDiKvc982.jpg "title=" Swap.png "alt=" Wkiol1prjgbhwlibaafyfddikvc982.jpg "/>

using Commands DF View the partitioning of the current system.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/45/C7/wKiom1PrJP3xoPuGAAEErH7fRV4795.jpg "title=" df.png "alt=" Wkiom1prjp3xopugaaeerh7frv4795.jpg "/>

Linux on the production ISO Mirroring and mounting ISO Mirror


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/45/C8/wKioL1PrJkTzDwcFAAHWaiEoplI925.jpg "title=" Iso.png "alt=" Wkiol1prjktzdwcfaahwaieopli925.jpg "/>

Mounting discs

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/45/C7/wKiom1PrJQexQl-8AALUKQvRujU608.jpg "title=" Cdrom.png "alt=" Wkiom1prjqexql-8aalukqvruju608.jpg "/>

MountFatformat ofUSBFirst ViewUSBin the/ Devthe drive letter in the.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/45/C7/wKiom1PrJpKiMOtUAAHUwVuNnqM914.jpg "title=" Usb.png "alt=" Wkiom1prjpkimotuaahuwvunnqm914.jpg "/>



This article allows reprint but be sure to keep the source http://dragon123.blog.51cto.com/9152073/


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.