Linux Chapter Fifth Partitioning and mounting

Source: Internet
Author: User
Tags disk usage

Experimental requirements:

N Add a 80G SCSI disk to the virtual machine

N Create a 20G partition on your new hard drive to hold all of your normal users ' hosting folders

N The newly created partition is still attached to the "/home" directory and needs to import the data from the original user in the system.

N The server will automatically mount to the partition after each boot

1) View all drive information

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/2E/wKiom1gKFYzxLtNeAAEiES3_Lls827.jpg-wh_500x0-wm_3 -wmp_4-s_61301249.jpg "title=" image 16.jpg "alt=" wkiom1gkfyzxltneaaeies3_lls827.jpg-wh_50 "/>

2) access to management

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/2C/wKioL1gKFZ-hND6LAACnHg_j8S4132.jpg-wh_500x0-wm_3 -wmp_4-s_3018684104.jpg "title=" image 17.jpg "alt=" wkiol1gkfz-hnd6laacnhg_j8s4132.jpg-wh_50 "/>

3)m command

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/2C/wKioL1gKFbahT1oHAAEMpRi0a1w534.jpg-wh_500x0-wm_3 -wmp_4-s_2704382416.jpg "title=" image 18.jpg "alt=" wkiol1gkfbaht1ohaaempri0a1w534.jpg-wh_50 "/>

View Disk

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/2E/wKiom1gKFcnCf0yWAACJtaORARw485.jpg-wh_500x0-wm_3 -wmp_4-s_2158048716.jpg "title=" image 19.jpg "alt=" wkiom1gkfcncf0ywaacjtaorarw485.jpg-wh_50 "/>

New Partition

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/2C/wKioL1gKFd3yIfr_AAB3ukMm8Eo078.jpg-wh_500x0-wm_3 -wmp_4-s_3568401346.jpg "title=" image 20.jpg "alt=" wkiol1gkfd3yifr_aab3ukmm8eo078.jpg-wh_50 "/>

Check Again

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/2E/wKiom1gKFfCidSEfAACHNuxMtyw307.jpg-wh_500x0-wm_3 -wmp_4-s_787892391.jpg "title=" image 21.jpg "alt=" wkiom1gkffcidsefaachnuxmtyw307.jpg-wh_50 "/>

Create an extended partition

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/2C/wKioL1gKFgOQyMU9AADbVvcSNjA758.jpg-wh_500x0-wm_3 -wmp_4-s_2474256836.jpg "title=" image 22.jpg "alt=" wkiol1gkfgoqymu9aadbvvcsnja758.jpg-wh_50 "/>

Creating Logical partitions

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/2E/wKiom1gKFiTjL9cYAAD6evBK8VM986.jpg-wh_500x0-wm_3 -wmp_4-s_699429968.jpg "title=" image 23.jpg "alt=" wkiom1gkfitjl9cyaad6evbk8vm986.jpg-wh_50 "/>

Number of partitions

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/2E/wKiom1gKFjqivPElAADHSJDE9iQ587.jpg-wh_500x0-wm_3 -wmp_4-s_407051338.jpg "title=" image 24.jpg "alt=" wkiom1gkfjqivpelaadhsjde9iq587.jpg-wh_50 "/>

changing the partitioning system Id

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/2C/wKioL1gKFk_jLbcNAADVACaOlig765.jpg-wh_500x0-wm_3 -wmp_4-s_1853852291.jpg "title=" image 25.jpg "alt=" wkiol1gkfk_jlbcnaadvacaolig765.jpg-wh_50 "/>

Save exit

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/2C/wKioL1gKFmGgLei3AABc4MI7qog251.jpg-wh_500x0-wm_3 -wmp_4-s_1463589816.jpg "title=" image 26.jpg "alt=" wkiol1gkfmgglei3aabc4mi7qog251.jpg-wh_50 "/>

4) format the partition

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/2E/wKiom1gKFnOwJADxAADZxm7DzvI617.jpg-wh_500x0-wm_3 -wmp_4-s_724096715.jpg "title=" image 27.jpg "alt=" wkiom1gkfnowjadxaadzxm7dzvi617.jpg-wh_50 "/>

Update new Partition list

, 650) this.width=650; "Src=" http://s2.51cto.com/wyfs02/M01/89/2C/wKioL1gKFoXhA5MXAADZxm7DzvI080.jpg-wh_500x0-wm_ 3-wmp_4-s_2449207916.jpg "title=" image 28.jpg "alt=" Wkiol1gkfoxha5mxaadzxm7dzvi080.jpg-wh_50 "/>

5) TAR backup

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/2C/wKioL1gKFpeRbvryAAB6OY_djgk711.jpg-wh_500x0-wm_3 -wmp_4-s_3069590425.jpg "title=" image 29.jpg "alt=" wkiol1gkfperbvryaab6oy_djgk711.jpg-wh_50 "/>

6) Attach the newly created /dev/sdb1 to /Home

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/2E/wKiom1gKFqyAJoXtAADAk9whLJc142.jpg-wh_500x0-wm_3 -wmp_4-s_1430494122.jpg "title=" image 30.jpg "alt=" wkiom1gkfqyajoxtaadak9whljc142.jpg-wh_50 "/>650) this.width= 650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/2E/wKiom1gKFr7hTRSBAABB5o9CASc105.jpg-wh_500x0-wm_3-wmp_4-s_ 935991528.jpg "title=" image 31.jpg "alt=" wkiom1gkfr7htrsbaabb5o9casc105.jpg-wh_50 "/>

7) Import The information under the original/home

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/89/2C/wKioL1gKFtOgPEFZAAClO5U1JBA397.jpg-wh_500x0-wm_3 -wmp_4-s_700036634.jpg "title=" image 32.jpg "alt=" wkiol1gkftogpefzaaclo5u1jba397.jpg-wh_50 "/>

8) automatically mount new partitions

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/2C/wKioL1gKFurw_tleAAElZNU1_PM269.jpg-wh_500x0-wm_3 -wmp_4-s_2613423778.jpg "title=" image 33.jpg "alt=" wkiol1gkfurw_tleaaelznu1_pm269.jpg-wh_50 "/>

To view the automatic mount configuration file

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/2E/wKiom1gKFvyTS8LOAADDA05jV-k114.jpg-wh_500x0-wm_3 -wmp_4-s_1049545543.jpg "title=" image 34.jpg "alt=" wkiom1gkfvyts8loaadda05jv-k114.jpg-wh_50 "/>

Edit Automatic Mount Options

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/2E/wKiom1gKFw-yWL1qAAA_16te8OA662.jpg-wh_500x0-wm_3 -wmp_4-s_3993397028.jpg "title=" image 35.jpg "alt=" wkiom1gkfw-ywl1qaaa_16te8oa662.jpg-wh_50 "/>

after editing Wq Save Exit

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/2E/wKiom1gKFx-ymv3UAAEK_386cEQ355.jpg-wh_500x0-wm_3 -wmp_4-s_1835925593.jpg "title=" image 36.jpg "alt=" wkiom1gkfx-ymv3uaaek_386ceq355.jpg-wh_50 "/>

Look for Mount after boot

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/2C/wKioL1gKFzWAVMcvAAC2BOYMKJ8152.jpg-wh_500x0-wm_3 -wmp_4-s_1742371453.jpg "title=" image 37.jpg "alt=" wkiol1gkfzwavmcvaac2boymkj8152.jpg-wh_50 "/>

9 Viewing disk usage

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/2E/wKiom1gKF2egsLEMAABc989m_Tc598.jpg-wh_500x0-wm_3 -wmp_4-s_734655242.jpg "title=" image 38.jpg "alt=" wkiom1gkf2egslemaabc989m_tc598.jpg-wh_50 "/>650) this.width=650;" Width= "554" height= "119" src= "/e/u261/themes/default/images/spacer.gif" style= "Background:url ("/E/U261/LANG/ZH-CN /images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>


Linux Chapter Fifth Partitioning and mounting

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.