^^ 讓 linux partition 使用2T 以上的空間 - parted with gpt ^^

^^ 讓 linux partition 使用2T 以上的空間 - parted with gpt ^^

文章hardman » 週三 7月 15日, 2009年 1:44 pm

描述:因為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

大功告成 ~ 開始使用 /pool 大容量的感覺 ~

轉載自 : http://blog.yam.com/wesley1981/article/16596463
hardman
 
文章: 6
註冊時間: 週五 4月 28日, 2006年 11:17 am
送出感謝: 0 次
擁有感謝: 0 次

Re: ^^ 讓 linux partition 使用2T 以上的空間 - parted with gpt ^^

文章DarkSkyline » 週三 7月 15日, 2009年 4:57 pm

真是難得阿,HardMan 會發表文章 @onion9@ @onion9@ @onion9@
http://www.ublink.org
Tel:04-22605121
E-Mail:eric@ublink.org
Skype:ublink-eric
LineID:0937720133
頭像
DarkSkyline
Site Admin
 
文章: 1860
註冊時間: 週五 12月 8日, 2006年 11:41 am
來自: 台中
送出感謝: 0 次
擁有感謝: 2


回到 Linux 作業系統

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 8 位訪客

cron