Linu對大于2TB磁盤分區(qū)格式化_第1頁
Linu對大于2TB磁盤分區(qū)格式化_第2頁
Linu對大于2TB磁盤分區(qū)格式化_第3頁
全文預覽已結束

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、單塊磁盤容量越來越大,價格越來越便宜,2TB硬盤已非常常見,但是傳統(tǒng)MBR方式存儲, 很多分區(qū)工具無法讀取對大于2TB的磁盤而無法分區(qū)大于2TB的磁盤,linux下的Parted工 具可以很好的支持大磁盤分區(qū)。Parted分區(qū)是實時的,不像fdisk工具需要執(zhí)行w后才開始分區(qū),所以使用parted分區(qū)一定 要注意,看清楚再下手。Parted 工具使用rootlocalhost #iscsiadm -mode discovery -type sendtarget -portal 192.1688.2.100192.168.2.100:3260,1iqn.liushunyi rootlocalho

2、st # iscsiadm -mode node192.168.2.100:3260,1iqn.liushunyirootlocalhost # iscsiadm -mode node -targetnameiqn.liushunyi -portal 102 .168.2.100:3260 -loginLogging in to iface: default, target: iqn.liushunyi, portal: 192.168.2.100,3260 (multiple)Login to iface: default, target: iqn.liushunyi, portal: 19

3、2.168.2.100,3260 suc cessful.rootlocalhost #fdisk -lWARNING: GPT (GUID Partition Table) detected on /dev/sde! The utilfdiskdoesnt support GPT. Use GNU Parted.WARNING: The size of this disk is 3.3 TB (3298534883328 bytes).DOS partition table format can not be used on drives for volumeslarger than 2.2

4、 TB (2199023255040 bytes). Use parted(1) and GUIDpartition table format (GPT)提示磁盤容量太大,使用parted工具和GPT分區(qū)表Disk /dev/sde: 3298.5 GB, 3298534883328 bytes255 heads, 63 sectors/track, 401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot StartEnd Blocks Id Systemrootlocalhost #parted

5、parted 的歡迎界面GNU Parted 1.8.1Using /dev/sdaWelcome to GNU Parted! Type help to view a list of commands.(parted) select /dev/sde 選擇使用/dev/sde 設備Using /dev/sde(parted)mklabel 創(chuàng)建分區(qū)表Warning: The existing disk label on /dev/sde will be destroyed and all data onthis disk will be lost. Do you want to contin

6、ue?Yes/No?y 警告用戶磁盤數(shù)據(jù)會丟失,是否繼續(xù)New disk label type? gpt? gpt 選擇分區(qū)格式(parted) p 查看分區(qū)情況Model: FreeBSD iSCSI Disk (scsi)Disk /dev/sde: 3299GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags(parted)mkpart 創(chuàng)建分區(qū)Partition name? ?可以指定分區(qū)名字File system type?

7、 ext2?可以指定文件系統(tǒng)類型/假如ext2這里指定ext3時可能導致數(shù)據(jù)丟失,具體見第二個文檔!Start? 0 開始位置End? 3299GB 結束位置-1 表示使用剩余所有空間(parted) p 查看創(chuàng)建的分區(qū)Model: FreeBSD iSCSI Disk (scsi)Disk /dev/sde: 3299GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags117.4kB 3299GB3299GB如果對分區(qū)不滿意,可以使

8、用rm刪除分區(qū)口 rm 2,即刪除第二個分區(qū)(parted) q退出,會提示修改/etc/fstabInformation: Dont forget to update /etc/fstab, if necessary.提示將分區(qū)設備自動掛載rootlocalhost #ls -l /dev/sde1 到操作系統(tǒng)查看分區(qū)brw-r 1 root disk 8, 65 Sep 24 22:21 /dev/sde1rootlocalhost #mkfs -t ext3 /dev/sde1parted內帶的格式化工具不是很完善,需要用操作 系統(tǒng)自帶的 mkfs 工具對分區(qū)進行格式化 mkfs /de

9、v/sde1mke2fs 1.39 (29-May-2006)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)402653184 inodes, 805306359 blocks40265317 blocks (5.00%) reserved for the super userFirst data block=0Maximum filesystem blocks=429496729624576 block groups32768 blocks per group, 32768 fr

10、agments per group16384 inodes per groupSuperblock backups stored on blocks:32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,102400000, 214990848, 512000000, 550731776, 644972544Writing inode tables: doneCreating

11、 journal (32768 blocks): doneWriting superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 22 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. You have new mail in /var/spool/mail/root rootlocalhost # mkdir /my_parted rootlocalhost # mount /dev/sde1 /my_parted/ rootlocalhost #df -hFilesy

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論