GPT для дисков более 2Tb ubuntu
1 |
sudo fdisk -l | grep 'Disk /dev/sd' |
Disk /dev/sdd: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
1 |
sudo df -h |
/dev/sdc 2.7T 2.7T 0 100% /mnt/hdd3
/dev/sdb 2.7T 2.5T 108G 96% /mnt/hdd2
/dev/sda1 472M 142M 306M 32% /boot
1 2 3 4 5 6 7 8 9 10 11 |
sudo parted /dev/sdd GNU Parted 3.2 Using /dev/sdd Welcome to GNU Parted! Type 'help' to view a list of commands. # (parted) print Error: /dev/sdd: unrecognised disk label Model: ATA WDC WD4002FYYZ-0 (scsi) Disk /dev/sdd: 4001GB Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags: |
1 2 3 4 5 6 7 8 9 10 |
rm 3 // если есть любые разделы удаляем их sudo parted /dev/sdd GNU Parted 3.2 Using /dev/sdd Welcome to GNU Parted! Type 'help' to view a list of commands. # (parted) mklabel gpt # (parted) mkpart primary 0% 100% # (parted) quit Information: You may need to update /etc/fstab. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
sudo mkfs.ext4 /dev/sdd mke2fs 1.44.1 (24-Mar-2018) Found a gpt partition table in /dev/sdd Proceed anyway? (y,N) y Creating filesystem with 976754646 4k blocks and 244195328 inodes Filesystem UUID: 06561075-2468-407f-b045-98160dfa89fa Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848, 512000000, 550731776, 644972544 Allocating group tables: done Writing inode tables: done Creating journal (262144 blocks): done Writing superblocks and filesystem accounting information: done |
1 2 3 4 |
sudo shutdown -r now cat /proc/partitions nano /etc/fstab /dev/sdd /mnt/hdd4 ext4 defaults 1 2 |
Рассказать: