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-quickstart [2020/07/28 20:57] – Simplify the description; moving all additional notes to the end richb-hanoverdocs:guide-user:storage:usb-drives-quickstart [2020/09/23 22:11] – corrected typo in a command jhench
Line 41: Line 41:
  
 8. Update the fstab config file to mount all drives at startup. ++More...|**/dev/sda** is mount[0], **/dev/sdb** is mount[1], etc. If you have more than one USB device attached, substitute the proper index (0 or 1 or ...) as needed. This command mounts all drives - named or anonymous.++ 8. Update the fstab config file to mount all drives at startup. ++More...|**/dev/sda** is mount[0], **/dev/sdb** is mount[1], etc. If you have more than one USB device attached, substitute the proper index (0 or 1 or ...) as needed. This command mounts all drives - named or anonymous.++
-<code> uci set fstab.@mount[0].enabled='1' && uci set fstab.@global[0].anon_mount='1' && uci commit</code>+<code>uci set fstab.@mount[0].enabled='1' && uci set fstab.@global[0].anon_mount='1' && uci commit fstab</code>
  
-9. Mount the device (now) and enable the fstab service so the device will be mounted after a reboot.  +9. Mount the device. ++More...|Automount is enabled on boot.++ 
-<code>/sbin/block mount && service fstab enable</code>+<code>/etc/init.d/fstab boot</code>
  
 10. **You're done!** This procedure has mounted the drive at **/mnt/sdXX** (whatever the device name was.) The drive is ready to save data at that part of the filesystem.  10. **You're done!** This procedure has mounted the drive at **/mnt/sdXX** (whatever the device name was.) The drive is ready to save data at that part of the filesystem. 
Line 59: Line 59:
   * Look at the [[docs/guide-user/storage/fstab|fstab documentation]] to configure from the command line   * Look at the [[docs/guide-user/storage/fstab|fstab documentation]] to configure from the command line
   * This Forum article also has a lot of background information: [[https://forum.openwrt.org/t/more-on-usb-drive-installation/30695/2]]   * This Forum article also has a lot of background information: [[https://forum.openwrt.org/t/more-on-usb-drive-installation/30695/2]]
-  * If you just want to temporarily mount the drive (say, for testing), you can simply enter: '' mkfs /tmp/MyDrive; mount /dev/sda1 /tmp/MyDrive'' Note that, as of OpenWRT v18, the Ext4 file system will be autodetected. After finishing the test reading/writing the drive: '' umount /tmp/MyDrive''  +  * If you just want to temporarily mount the drive (say, for testing), you can simply enter: '' mkdir /tmp/MyDrive; mount /dev/sda1 /tmp/MyDrive'' Note that, as of OpenWRT v18, the Ext4 file system will be autodetected. After finishing the test reading/writing the drive: '' umount /tmp/MyDrive'' 
- +
- +
  
  • Last modified: 2024/11/21 18:29
  • by palebloodsky