




版權(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虛擬硬盤(pán)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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 寵物醫(yī)療市場(chǎng)細(xì)分領(lǐng)域研究報(bào)告-寵物康復(fù)市場(chǎng)規(guī)模分析
- 氣體的化學(xué)性質(zhì)及其應(yīng)用試題及答案
- 曲式理解與音樂(lè)創(chuàng)作能力提升的聯(lián)系試題及答案
- 節(jié)目編輯面試題及答案
- 生態(tài)學(xué)復(fù)習(xí)試題及答案
- 家居設(shè)計(jì)中的空間效果與功能結(jié)合研究試題及答案
- 甲方運(yùn)營(yíng)面試題及答案
- 山東職業(yè)學(xué)院《現(xiàn)代分離工程》2023-2024學(xué)年第二學(xué)期期末試卷
- 情緒邏輯測(cè)試題及答案
- 天津農(nóng)學(xué)院《形勢(shì)與政策IV》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025年區(qū)塊鏈工程師技能測(cè)評(píng)試卷:區(qū)塊鏈分布式賬本技術(shù)實(shí)操考核
- 2025商業(yè)店鋪買(mǎi)賣(mài)合同范本下載
- (二模)2025年汕頭市高三普通高考第二次模擬考試語(yǔ)文試卷(含答案)
- 河北開(kāi)放大學(xué)2025年《醫(yī)藥企業(yè)管理》形成性考核1-4答案
- 2025屆寧夏回族自治區(qū)銀川市第一中學(xué)高考全國(guó)統(tǒng)考預(yù)測(cè)密卷語(yǔ)文試卷含解析
- 101二元一次方程組的概念【9個(gè)必考點(diǎn)】(必考點(diǎn)分類(lèi)集訓(xùn))(人教版2024)(原卷版)
- 2024年建投國(guó)電準(zhǔn)格爾旗能源有限公司招聘筆試真題
- 【9化一?!?025年安徽合肥市第四十五中學(xué)九年級(jí)中考一?;瘜W(xué)試卷(含答案)
- 全國(guó)醫(yī)師定期考核公共衛(wèi)生考核試題500+題
- (高清版)DB33∕T 386-2013 內(nèi)河航道工程質(zhì)量檢驗(yàn)規(guī)范
- 鋁加工深井鑄造培訓(xùn)
評(píng)論
0/150
提交評(píng)論