sg3_utils.tcz is uploaded to the repo.
busybox does have lsusb command, but its limited in output.  You can get
the USB identifiers from dmesg.....or you can download the full bloated
usbutils.tcz extension.
I did not build lsscsi, as more than likely you only have one device
listed, and that info is not even needed for the udev rule.

Neither of these you will need long term, so you can just download them,
and load them when you want.

For those that didn't know
"tce-load -wi sg3_utils.tcz"  - Will download, install and put this in
your onboot.lst, so it is automatically loaded every time
"tce-load -w sg3_utils.tcz"  -  Will just download the extension and
dependancies....not do anything more
"tce-load -i sg3_utils.tcz"   - Will install a previously downloaded
extension, but does not add to onboot.lst.


I would recommend this process.
1 - Figure out your settings from the instructions.
2 - Create the udev rule anywhere on your system.
3 - In the file /opt/bootlocal.sh  (Before pCP starts), copy the rule
from where ever you saved it to /etc/udev/rules.d
4 - Reload the udev rules and trigger udev.
5 - Create a script to run after pCP starts to run the initial fstrim
operation, since the unmap data is only maintained in the kernel.
6 - Run your periodic fstrim via a cron script.

Here is my bootlocal....

Code:
--------------------
    
  cp /opt/80-samsung-t5.rules /etc/udev/rules.d/
  udevadm control --reload-rules
  udevadm trigger
  
--------------------



Code:
--------------------
    
  fstrim -v /mnt/mountpoint > /var/log/pcp_trim.log
  
--------------------



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer
------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=113575

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to