Para criar a partição, usei fdisk
invocando sudo fdisk /dev/sda
. A sessão interativa é fácil de seguir:
Command (m for help): d
Selected partition 1 Partition 1 has been deleted.
Command (m for help): n
Partition number (1-128, default 1): First sector (34-1953525134, default 2048): 34 Last sector, +sectors or +size{K,M,G,T,P} (34-1953525134, default 1953525134):
Command (m for help): w
The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.
Em seguida, formatei a partição:
pi@retina:~ $ sudo mkfs.ext4 /dev/sda1
mke2fs 1.42.12 (29-Aug-2014) Creating filesystem with 244190637 4k blocks and 61054976 inodes Filesystem UUID: fe042d87-3266-44b5-beff-a98f70b783ed Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848
Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
Created a new partition 1 of type 'Linux filesystem' and of size 931.5 GiB.
finalmente ejetei a unidade:
sudo eject /dev/sda
para reconectá-lo, de forma que apareça agora na tabela de montagem.