版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2021年小學(xué)英語語法-第六講可數(shù)名詞的入門語法學(xué)習(xí)
- 責(zé)任鑄就青春夢(mèng)
- 2024版深圳市企業(yè)員工聘用合同3篇
- 信息技術(shù)必修一《數(shù)據(jù)與計(jì)算》第四章第一節(jié)《體驗(yàn)計(jì)算機(jī)視覺應(yīng)用》說課稿001
- 第六單元課外古詩詞課件【知識(shí)精研】統(tǒng)編版語文八年級(jí)上冊(cè)
- 2024版網(wǎng)絡(luò)安全防護(hù)協(xié)議
- 智慧風(fēng)帆勇往直前
- 第九單元課題1 溶液的形成說課稿-2023-2024學(xué)年九年級(jí)化學(xué)人教版下冊(cè)
- 第15課《女媧補(bǔ)天》說課稿-2024-2025學(xué)年四年級(jí)上冊(cè)語文統(tǒng)編版001
- 第四章第一節(jié):單液原電池進(jìn)階之路-氧化劑與還原劑相接觸才反應(yīng)嗎?說課稿 2024-2025學(xué)年高二上學(xué)期化學(xué)人教版(2019)選擇性必修1001
- 大連市甘井子區(qū)大連匯文中學(xué)2022-2023學(xué)年七年級(jí)上學(xué)期期末數(shù)學(xué)試題【帶答案】
- 【人民日?qǐng)?bào)】72則金句期末評(píng)語模板-每頁6張
- 會(huì)計(jì)研究方法論智慧樹知到期末考試答案章節(jié)答案2024年長安大學(xué)
- 2023-2024學(xué)年福建省泉州九年級(jí)(上)期末英語試卷
- RB/T 140-2023空中乘務(wù)教育培訓(xùn)服務(wù)認(rèn)證要求
- 科學(xué)精神與科學(xué)研究方法智慧樹知到期末考試答案章節(jié)答案2024年中國石油大學(xué)(華東)
- 2024年中國航空油料集團(tuán)有限公司校園招聘考試試題必考題
- 文史哲與藝術(shù)中的數(shù)學(xué)智慧樹知到期末考試答案章節(jié)答案2024年吉林師范大學(xué)
- 知識(shí)圖譜智慧樹知到期末考試答案章節(jié)答案2024年浙江大學(xué)
- 《灰塵的旅行》導(dǎo)讀
- 高血壓患者不遵醫(yī)飲食行為的原因分析及對(duì)策
評(píng)論
0/150
提交評(píng)論