Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:storage:usb-drives [2021/09/06 19:23] – [Install and verify USB drivers] Fix reference to numbered step owenhdocs:guide-user:storage:usb-drives [2022/04/10 09:15] – hdparm rc.local autostart ivanmara
Line 45: Line 45:
   - This should now show a list of block devices known to the OS<code>brw-------    1 root     root        8,   0 Oct 30 12:49 /dev/sda   - This should now show a list of block devices known to the OS<code>brw-------    1 root     root        8,   0 Oct 30 12:49 /dev/sda
 brw-------    1 root     root        8,   1 Oct 30 12:49 /dev/sda1</code>This should print at least a connected disk like "/dev/sda" or "/dev/sdb". If no disk at all is listed, recheck USB driver installation and reboot your OpenWrt device once. brw-------    1 root     root        8,   1 Oct 30 12:49 /dev/sda1</code>This should print at least a connected disk like "/dev/sda" or "/dev/sdb". If no disk at all is listed, recheck USB driver installation and reboot your OpenWrt device once.
-  - Install the **block** tool to get more info about existing partitions<code>opkg install block-mount</code>+  - Install the **block** tool to get more info about existing partitions<code>opkg install block-mount</code> for exFAT you also need libblkid <code>opkg install libblkid</code>
   - Run the **block** tool:<code>block info | grep "/dev/sd"</code>and you should see output like this, if your disk already has partitions:<code>/dev/sda1: UUID="2eb39413-83a4-4bae-b148-34fb03a94e89" VERSION="1.0" TYPE="ext4"</code>   - Run the **block** tool:<code>block info | grep "/dev/sd"</code>and you should see output like this, if your disk already has partitions:<code>/dev/sda1: UUID="2eb39413-83a4-4bae-b148-34fb03a94e89" VERSION="1.0" TYPE="ext4"</code>
  
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. For persistent changes use ''/etc/rc.local'' file, like: 
 +<code bash> 
 +# set timeout to put the drive into idle (low-power) mode 
 +/sbin/hdparm -S 240 /dev/sda2 
 + 
 +exit 0 
 +</code> 
  
  
  • Last modified: 2023/03/30 21:01
  • by stokito