「jeng」的全部文章

linux partition 大於 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