Fix up some formatting

This commit is contained in:
drduh 2018-06-13 19:58:22 -07:00 committed by GitHub
parent 254fd2c3d2
commit d07007a368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -540,6 +540,7 @@ To create an encrypted USB drive, first attach it and check its label:
[ 7668.879514] sd 8:0:0:0: [sde] Attached SCSI removable disk [ 7668.879514] sd 8:0:0:0: [sde] Attached SCSI removable disk
Check the size to make sure it's the right drive: Check the size to make sure it's the right drive:
$ sudo fdisk -l | grep /dev/sde $ sudo fdisk -l | grep /dev/sde
Disk /dev/sde: 30 GiB, 32245809152 bytes, 62980096 sectors Disk /dev/sde: 30 GiB, 32245809152 bytes, 62980096 sectors
/dev/sde1 2048 62980095 62978048 30G 6 FAT16 /dev/sde1 2048 62980095 62978048 30G 6 FAT16
@ -562,6 +563,7 @@ Erase and create a new partition table:
Syncing disks. Syncing disks.
Remove and reinsert the USB drive, then create a new partition, selecting defaults: Remove and reinsert the USB drive, then create a new partition, selecting defaults:
$ sudo fdisk /dev/sde $ sudo fdisk /dev/sde
Welcome to fdisk (util-linux 2.25.2). Welcome to fdisk (util-linux 2.25.2).
@ -596,10 +598,12 @@ Use [LUKS](https://askubuntu.com/questions/97196/how-secure-is-an-encrypted-luks
Verify passphrase: Verify passphrase:
Mount the partition: Mount the partition:
$ sudo cryptsetup luksOpen /dev/sde1 encrypted-usb $ sudo cryptsetup luksOpen /dev/sde1 encrypted-usb
Enter passphrase for /dev/sde1: Enter passphrase for /dev/sde1:
Create a filesystem: Create a filesystem:
$ sudo mkfs.ext4 /dev/mapper/encrypted-usb -L encrypted-usb $ sudo mkfs.ext4 /dev/mapper/encrypted-usb -L encrypted-usb
mke2fs 1.42.12 (29-Aug-2014) mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 7871744 4k blocks and 1970416 inodes Creating filesystem with 7871744 4k blocks and 1970416 inodes