![創(chuàng)建linux虛擬硬盤_第1頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2021-12/6/f5fa6836-f421-47d9-a14a-bc8ec2e42169/f5fa6836-f421-47d9-a14a-bc8ec2e421691.gif)
![創(chuàng)建linux虛擬硬盤_第2頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2021-12/6/f5fa6836-f421-47d9-a14a-bc8ec2e42169/f5fa6836-f421-47d9-a14a-bc8ec2e421692.gif)
![創(chuàng)建linux虛擬硬盤_第3頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2021-12/6/f5fa6836-f421-47d9-a14a-bc8ec2e42169/f5fa6836-f421-47d9-a14a-bc8ec2e421693.gif)
![創(chuàng)建linux虛擬硬盤_第4頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2021-12/6/f5fa6836-f421-47d9-a14a-bc8ec2e42169/f5fa6836-f421-47d9-a14a-bc8ec2e421694.gif)
![創(chuàng)建linux虛擬硬盤_第5頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2021-12/6/f5fa6836-f421-47d9-a14a-bc8ec2e42169/f5fa6836-f421-47d9-a14a-bc8ec2e421695.gif)
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、創(chuàng)建linux虛擬硬盤creates the linux virtual hard drivecreate a virtual hard driveclose the virtual system running in the vm;2, right-click on the virtual system nameaclcl a hard disk - create a new virtual disk - > scsi - >you can see a new hard disk, hard disk 2, in the hardwarea virtual hard drive
2、is partitioned and formattedcheck the current system for several hard drivesroot # fdisk - 1the first hard drive informationdisk/dev/sda: 36. 4 gb, 36401479680 bytes 255 heads, the 63 sectors/track, 63 cylindersunits 二 cylinders of 16065 * 512 二 8225280 bytesdevice boot end blocks id system/dev/sdal
3、 * 1, 255, 2048256, and linux/ dev/sda2 256 1530 10241437 + 83 linux/ dev/sda3 4296 4425 10442582 linux swap/dev/sda4 1531 4295 22209862 + f win95 ext 'd (lba)/dev/sda5 1531 2805 1024140683 linux/ dev/sda6 2806 4295 11968393 + 83 linuxpartition table entries are not in disk orderthe second hard
4、drive informationdisk/dev/sdb: 36. 7 gb, 36703918080 bytes # # is found/dev/sdb, capacity 36. 7 g, unpartitioned255 heads, the 63 sectors/track, 63 cylindersunits 二 cylinders of 16065 * 512 二 8225280 bytesdisk/dev/sdc doesn't contain a valid partition tablethe second disk has no partition tabler
5、oot linux root # fdisk/dev/sdbpartition the second hard drivethe number of cylinders for this disk is set to 4462there is nothing wrong with that, but this is larger than 1024.and could in certain setups cause problems1) software that runs at boot time2) booting and partitioning software from other
6、oss(dos fdisk, os/2 fdisk)command (m for help) : mthe command actiona toggle a bootable flagb edit bsd disklabelc toggle the dos compatibility flagd delete a partitionlist known partition typesprint this menun add a new partition 0 create a new empty dos partition tableprint the partition tableq qui
7、t without saving changess create a new empty sun disklabelt change a partition's system idu change display/entry unitsverify the partition tablew write table to disk and exitx extra functionality (experts only)command (m for help) : p# # prints the list of partitions currently under the hard dri
8、vedisk/dev/sdb: 36. 7 gb, 36703918080 bytes255 heads, the 63 sectors/track, 63 cylindersunits 二 cylinders of 16065 * 512 二 8225280 bytesdevice boot end blocks id systemcommand (m for help) : n# # adds a partitionthe command actione extendedp primary partition (1-4)# # because you usually choose the
9、primary partition, so you have a p hereppartition number (1-4) : 1 # # is the first one, so choose 1, if it is the second partition, choose 2, and so onfirst cylinder (1 -4462, default 1) : the number of disks that start in # # new partitionusing the default value of 1the last cylinder or + size or
10、+ sizem or + sizek (1 -4462, the default 4462) : if you want to partition 10 g, here can directly in put: + 10240 m, b ecause here is all use hard disk space, use the defaultusing the default value is 4462command (m for help) : pdisk/dev/sdb: 36. 7 gb, 36703918080 bytes255 heads, the 63 sectors/trac
11、k, 63 cylindersunits 二 cylinders of 16065 * 512 二 8225280 bytesdevice boot end blocks id system/ dev/sdbl, 1, 4462, 35840983 + 83 linuxthe first partition here is already sorted, and then you have to write this partition to the hard disk, using wcommand (m for help) : wthe partition table has been a
12、ltered!calling ioctl () to re-read partition tablesyncing disksthe following job is formatting the hard drive, and i'm formatting it in ext3root linux root # mkfs ext3 /dev/sdbl (the original command here is: mke2fs-j/dev/sdbl, try to do no work, change it)mke2fs 1. 32 (2009-nov 2002)filesystem
13、label 二linux os type:block size = 4096 (log 二 2)fragment size 二 4096 (log 二 2)4480448 inodes, 8960245 blocksreserved for the super userthe first data block 二 0274 block groups32768 blocks per group, 32768 fragments per group16352 inodes per groupsuperblock backups stored on blocks:3276& 98304, 1
14、63840, 229376, 294912, 819200, 884736, 1605632,2654208,4096000, 7962624writing inodes tables: donecreate journal (8192 blocks) : donewriting superblocks and filesystem accounting information:donethis filesystem will be automatically checked every 23180 days, it comes first use tune2fs-c or - i to ov
15、erride.check to see if you have the formatroot linux root # fdisk -1disk/dev/sda: 36. 4 gb, 36401479680 bytes255 heads, the 63 sectors/track, 63 cylindersunits 二 cylinders of 16065 * 512 二 8225280 bytesdevice boot end blocks id system/dev/sdal * 1, 255, 2048256, and linux/ dev/sda2 256 1530 10241437
16、 + 83 linux/ dev/sda3 4296 4425 10442582 linux swap/dev/sda4 1531 4295 22209862 + f win95 ext 'd (lba)/dev/sda5 1531 2805 1024140683 linux / dev/sda6 2806 4295 11968393 + 83 linuxpartition table entries are not in disk orderdisk/dev/sdb: 36. 7 gb, 36703918080 bytes255 heads, the 63 sectors/track
17、, 63 cylindersunits 二 cylinders of 16065 * 512 二 8225280 bytesdevice boot end blocks id system/ dev/sdbl, 1, 4462, 35840983 + 83 linuxmount the virtual hard diskthe dividing line is good, and it is formatted here is the mounti will mount/dev/sdbl to/datalroot linux root # mkdir/datal # # first build
18、s the mounted directory datalroot linux root # mount /dev/sdbl / datal # # will mount sdbl to datalfor the uuid of fstab, the method is as follows:1, information about the device file in /dev/disk/by-uuid / # is -1/dev/disk/by - uuid /2, through the blkid command # blkid/dev/sdb5add a new hard drive partition to the fstab table with uuidvi/dev/fstaband then addhere,s an example: find uuid added to fstab and restart
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025合同模板學(xué)校食堂承包經(jīng)營(yíng)合同范本
- Unit2 He's cool(說(shuō)課稿)2023-2024學(xué)年外研版(三起)四年級(jí)下冊(cè)
- 2025合同模板工程的變更范本
- 2025江蘇:安全責(zé)任寫進(jìn)集體合同模板范本
- Unit1 School(說(shuō)課稿)-2024-2025人教版(新起點(diǎn))英語(yǔ)一年級(jí)上冊(cè)
- 2023七年級(jí)語(yǔ)文上冊(cè) 第四單元 綜合性學(xué)習(xí) 少年正是讀書時(shí)說(shuō)課稿 新人教版
- Unit5 I'm cleaning my room(說(shuō)課稿)-2023-2024學(xué)年人教精通版英語(yǔ)五年級(jí)下冊(cè)001
- 2024年九年級(jí)語(yǔ)文下冊(cè) 第二單元 第5課 孔乙己說(shuō)課稿 新人教版
- 2024-2025學(xué)年高中化學(xué)下學(xué)期第20周 常見氣體的制備說(shuō)課稿
- Unit 1 people of achievement Reading for writing 說(shuō)課稿-2024-2025學(xué)年高中英語(yǔ)人教版(2019)選擇性必修第一冊(cè)
- 進(jìn)模模具設(shè)計(jì)
- 完整,滬教版小學(xué)四年級(jí)英語(yǔ)上冊(cè)單詞表
- 2021年高考化學(xué)真題和模擬題分類匯編專題20工業(yè)流程題含解析
- 2023年北京市高考作文評(píng)分標(biāo)準(zhǔn)及優(yōu)秀、滿分作文
- 2023年大唐尿素投標(biāo)文件
- 《鋼鐵是怎樣煉成的》名著閱讀(精講課件) 初中語(yǔ)文名著導(dǎo)讀
- 縮窄性心包炎課件
- 《工程電磁場(chǎng)》配套教學(xué)課件
- 職位管理手冊(cè)
- 東南大學(xué) 固體物理課件
- 行政人事助理崗位月度KPI績(jī)效考核表
評(píng)論
0/150
提交評(píng)論