Skip to content

Commit e73f8b0

Browse files
committed
Issue #2: hdparm basic configuration.
1 parent 29ef098 commit e73f8b0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ To use a USB hard drive, you need to plug it into the Pi's USB port, then do the
4848

4949
### Create a filesystem with `mkfs`
5050

51-
1. Run `sudo mkfs.ext4 /dev/sda1`, and wait for this operation to complete.
51+
1. Run `sudo mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/sda1`, and wait for this operation to complete.
52+
53+
> Note that you can initialize the drive more quickly without the `-E` options. If you do so, the disk will be initialized, but for a long time you might notice activity on the hard drive. This is due to `ext4lazyinit` finishing the initialization process in the background.
5254
5355
### Create a mount point and mount the disk
5456

main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
- hosts: backup-pi
33
become: yes
44

5-
include_vars: config.yml
5+
vars_files:
6+
- config.yml
67

78
roles:
89
- geerlingguy.hdparm

0 commit comments

Comments
 (0)