版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025-2030年中國高密度聚乙烯管道行業(yè)市場競爭格局及發(fā)展前景規(guī)劃研究報告
- 2025-2030年中國鋼筋加工設備行業(yè)市場運行狀況及未來發(fā)展趨勢分析報告
- 2025-2030年中國醋酸乙酯行業(yè)深度評估規(guī)劃研究報告
- 2025-2030年中國速凍玉米行業(yè)市場前景規(guī)模及發(fā)展趨勢分析報告
- 2025-2030年中國脫水機市場運行狀況及前景趨勢分析報告
- 2025-2030年中國綠色食品產業(yè)發(fā)展趨勢展望與投資策略分析報告新版
- 2025年度跨境電商平臺服務合同成立與履行規(guī)范4篇
- 2025-2030年中國糧食烘干機械行業(yè)發(fā)展現(xiàn)狀及前景規(guī)劃研究報告
- 2025-2030年中國科技企業(yè)信息化行業(yè)市場分析及投資戰(zhàn)略規(guī)劃報告
- 2025-2030年中國環(huán)保設備行業(yè)未來發(fā)展趨勢及前景調研分析報告
- GB/T 34241-2017卷式聚酰胺復合反滲透膜元件
- GB/T 12494-1990食品機械專用白油
- 運輸供應商年度評價表
- 成熙高級英語聽力腳本
- 北京語言大學保衛(wèi)處管理崗位工作人員招考聘用【共500題附答案解析】模擬試卷
- 肺癌的診治指南課件
- 人教版七年級下冊數(shù)學全冊完整版課件
- 商場裝修改造施工組織設計
- 統(tǒng)編版一年級語文上冊 第5單元教材解讀 PPT
- 加減乘除混合運算600題直接打印
- ASCO7000系列GROUP5控制盤使用手冊
評論
0/150
提交評論