Página 1 de 1

Particionar disco de 3TB no Linux

MensagemEnviado: 18 Jul 2014, 12:46
por juliano.oliveira
View disk size

Start by finding your current disk size and device name. Make sure you are working on the right disk as the parted utility modifies the disk immediately.
Código: Selecionar todos
fdisk -l /dev/sdc


Código: Selecionar todos
root@primus ~ # fdisk -l /dev/sdc

Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Creating your partition

Run the parted utility on your device

Código: Selecionar todos
root@primus ~ # parted /dev/sdc

GNU Parted 2.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)

Create a GPT partiton label
Código: Selecionar todos
(parted) mklabel gpt


You will be prompted on whether you want proceed with the changes and delete the current label on the disk. Type yes if you know this is what you want.

Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost.
Do you want to continue? Yes/No? yes
(parted)

Lets set our units to TB for readibility
Código: Selecionar todos
(parted) unit TB

Now create the 3 TB partition

Código: Selecionar todos
(parted) mkpart primary 0.00TB 3.00TB


Set whatever flags you need on the partition. (LVM, RAID, etc..) I will be using the LVM flag on the partition.

Código: Selecionar todos
(parted) set 1 lvm on


You can use the print command within parted to view your current partitions and flags.
Type quit to exit.

Para formatar

Código: Selecionar todos
mkfs.ext4 /dev/sdb1



Para montar
Código: Selecionar todos
mkdir /mnt/disco1
mount -t ext4 /dev/sdb1 /mnt/disco1


Lembrar de utilizar o UUID para identificar o disco para montar, comando blkid

Código: Selecionar todos
blkid


fonte: http://www.cobranix.com/index.php/creating-a-3tb-partition-using-parted/