1 頁 (共 1 頁)

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

文章發表於 : 週三 7月 15日, 2009年 1:44 pm
hardman
描述:因為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

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

文章發表於 : 週三 7月 15日, 2009年 4:57 pm
DarkSkyline
真是難得阿,HardMan 會發表文章 @onion9@ @onion9@ @onion9@