HGIGA Service Docs 
» 遊客:  註冊 | 登錄 | 統計 | 幫助
RSS 訂閱當前論壇  

上一主題 下一主題
       
標題: linux 使用2T以上的空間 - parted with gpt  
 
service.support





UID 14
精華 0
積分 0
帖子 523
閱讀權限 200
註冊 2006-10-2
狀態 離線
linux 使用2T以上的空間 - parted with gpt

描述:因為linux使用 fdisk -l  是無法看到大於2T以上的硬碟,因此要使用parted 來做切割(並使用GPT格式)。


•使用 S350 Storage Server 且含有 1 顆 250GB 及 4 顆 1T 的 SATA 硬碟
•使用 硬體 Intel RAID Controller 來切出 兩個 RAID0
       - VD0 : Raid0 : 250GB
       - VD1 : Raid0 : 4T
•安裝 Debian 於 250 GB SATA 硬碟

:: 開始進入主題 - 使用 4T 空間來做成一個 partition ::

s350-storage:~# fdisk -l

Disk /dev/sda: 248.9 GB, 248999051264 bytes
255 heads, 63 sectors/track, 30272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       29942   240509083+  83  Linux
/dev/sda2           29943       30272     2650725    5  Extended
/dev/sda5           29943       30272     2650693+  82  Linux swap / Solaris

Disk /dev/sdb: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

s350-storage:~# apt-get install parted
s350-storage:~# parted /dev/sdb

GNU Parted 1.7.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
                                                                          
(parted) mklabel gpt                                                                          
(parted) mkpart                                                            
Partition name?  []? primay                                               
File system type?  [ext2]? ext3
Start? 0                                                                    
End? -1
(parted) print

Disk /dev/sdb: 3996GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name    Flags
1      17.4kB  3996GB  3996GB               primay      
                                                                          
(parted) quit

s350-storage:~# fdisk -l

Disk /dev/sda: 248.9 GB, 248999051264 bytes
255 heads, 63 sectors/track, 30272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       29942   240509083+  83  Linux
/dev/sda2           29943       30272     2650725    5  Extended
/dev/sda5           29943       30272     2650693+  82  Linux swap / Solaris
You must set cylinders.
You can do this from the extra functions menu.

Disk /dev/sdb: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  EFI GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 0, 1) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(267349, 89, 4)

s350-storage:~# mkfs.ext3 /dev/sdb1
s350-storage:~# cd / ; mkdir /pool
s350-storage:/ # mount -t ext3 /dev/sdb1 /pool


 附件: 您所在的用戶組無法下載或查看附件
2009-4-7 13:38#1
查看資料  Blog  發短消息  Yahoo!  頂部
       


  可打印版本 | 推薦給朋友 | 訂閱主題 | 收藏主題  


 

   Powered by Discuz! 4.1.0  © 2001-2006 Transformed by wxxslt for HGIGA Inc. / Service Support
Processed in 0.015492 second(s), 8 queries , Gzip enabled

所有時間為 GMT+8, 現在時間是 2024-5-19 02:44