Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:storage:usb-drives [2020/09/15 20:21] – [Install file system drivers and create a file system in the partition] NTFS added tmomas | docs:guide-user:storage:usb-drives [2022/04/10 09:15] – hdparm rc.local autostart ivanmara | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| * Lines with " | * Lines with " | ||
| - | In step 4, verify that the output prints no error and has at least one output line for **root_hub** and **Mass Storage** and that each **Driver=** lists a driver name. If not, then refer to [[docs: | + | In step 5, verify that the output prints no error and has at least one output line for **root_hub** and **Mass Storage** and that each **Driver=** lists a driver name. If not, then refer to [[docs: |
| ===== Verify that the OS recognizes the attached disk and partitions ===== | ===== Verify that the OS recognizes the attached disk and partitions ===== | ||
| Line 45: | Line 45: | ||
| - This should now show a list of block devices known to the OS< | - This should now show a list of block devices known to the OS< | ||
| brw------- | brw------- | ||
| - | - Install the **block** tool to get more info about existing partitions< | + | - Install the **block** tool to get more info about existing partitions< |
| - Run the **block** tool:< | - Run the **block** tool:< | ||
| Line 74: | Line 74: | ||
| opkg install kmod-fs-ext4 | opkg install kmod-fs-ext4 | ||
| mkfs.ext4 / | mkfs.ext4 / | ||
| - | * For USB hard disks formatted as NTFS see [[docs: | + | * For USB drives |
| * For SSD drives and thumb drives, | * For SSD drives and thumb drives, | ||
| opkg install kmod-fs-f2fs | opkg install kmod-fs-f2fs | ||
| Line 132: | Line 132: | ||
| Of course you can always change the timeout or disable auto-spindown again later on. Depending on your harddisk, the value may be active until the next reset or permanently stored on the harddisk. | Of course you can always change the timeout or disable auto-spindown again later on. Depending on your harddisk, the value may be active until the next reset or permanently stored on the harddisk. | ||
| - | The harddisk firmware itself manages the spindown timeout, not a OpenWrt service. | + | The harddisk firmware itself manages the spindown timeout, not a OpenWrt service. |
| + | <code bash> | ||
| + | # set timeout to put the drive into idle (low-power) mode | ||
| + | / | ||
| + | |||
| + | exit 0 | ||
| + | </ | ||
| Line 143: | Line 150: | ||
| </ | </ | ||
| To configure it, use the " | To configure it, use the " | ||
| + | |||
| + | \\ | ||
| + | To install the CLI package (without LuCi): | ||
| + | < | ||
| + | opkg update && opkg install hd-idle | ||
| + | </ | ||
| + | To configure it, you can edit the ''/ | ||
| + | |||
| + | Options to configure: | ||
| + | ^ Name ^ Type ^ Default ^ Description | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | :!: Notice that you have to enable it since it isn't by default. | ||