Skip to content

How to Run Pi Timolo from Another Directory Path

Claude Pageau edited this page Feb 26, 2021 · 17 revisions

How to Run Pi-Timolo from Another Directory Path

There may be times when you want to run pi-timolo from another directory such as a drive mount point. I often want to run pi-timolo from a mounted hard drive and have the upgrade work properly. This will be an example of the steps for mounting an ext4 usb drive and moving pi-timolo to the drive mount point. This is sample code and you most likely will need to make changes to suit your situation.

Install pi-timolo normally

Run the pi-timolo github curl script. By default this will install to ~/pi-timolo folder

curl -L https://raw.github.com/pageauc/pi-timolo/master/source/pi-timolo-install.sh | bash 

Once installed check to make sure pi-timolo runs OK. See wiki for details

Mount usb disk drive (Optional)

Insert a usb disk drive. The first hard drive will normally be /dev/sda1. For details See Wiki Mount USB Storage

Create a mount point and mount hard drive

cd ~   
mkdir mnt      

sudo nano /etc/fstab

Add the drive mounting instructions appropriate for the drive file system. Below example assumes ext4. ctrl-x y to save changes

/dev/sda1 /home/pi/mnt ext4 defaults,noatime,nofail 0 0

mount disk per

cd ~   
sudo mount /dev/sda1 mnt

Verify that disk is mounted

cd ~
ls -al mnt

Move ~/pi-timolo folder to new directory path

cd ~   
mv -r pi-timolo mmt
ls -al /mnt/pi-timolo   # you should see pi-timolo files

Create a symbolic link to the new mount directory path

cd ~
ln -s /home/pi/mnt/pi-timolo pi-timolo
ls -al   # verify symbolic link was created.

pi-timolo will now run from the mounted hard drive per.

cd ~/mnt/pi-timolo    
./menubox.sh  

or cd ~/pi-timolo
./menubox.sh

You can now run a pi-timolo menubox.sh UPGRADE and the files will be updated on the mounted hard drive.

Clone this wiki locally