streaming media server
In Linux, we can convert the disk that is greater than 2TB capacity to the GPT format. As a result of GPT format disk is equivalent to the original MBR disk in the original reserves the 4 partition table 4* 16 bytes only the first 16 bytes, other similar to the extended partition, real partition table after 512 bytes, so for GPT disk table there is no limit to the four primary partitions.
For the GPT disk partition table, we are going to use the powerful parted command.
Example: the usual parted command
# parted /dev/sdb
GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
Format the MBR disk to GPT
(parted) mkpart primary 0 100
Partitions a primary partition with a starting position of 0, with a size of 100M
(parted) mkpart primary 100 200
Partitions a primary partition with an initial location of 100 megabytes
(parted) mkpart primary 0 -1
Partitions all space to one partition
(parted) print
Print current partition
(parted) quit
Some of the commands that might be used
(parted) mklable msdos
If you want to reverse, convert the GPT disk to the MBR disk
After you've partitioned the partitions, you'll also use mkfs.ext3 to format
#partprobe
#mkfs.ext3 -F /dev/sdb1
Practice
Take redhat 7 for example
parted /dev/sdb mklabel gpt;
Convert to GPT.
parted /dev/sdb mkpart primary 0 6000GB Create a partition for 1T.
mkfs -t ext3 /dev/sdb1
mkdir –p /www
mount /dev/sdb1 /www
This is where a large disk partition SDB is mounted on the Linux system's WWW directory.
Boot up your own dynamic mount
vi /etc/fstab
/dev/sdb1 /mnt/b auto defaults 0 0
Oh, now I come to know about the server hosting features, this is very interesting blog. Thanks for your kindly information, this is very helpful for me. Keep writing! Ukraine Dedicated Server
回复删除