Page 1 of 1

/media not mounted on startup?

Posted: 10 Sep 2017, 09:53
by datomtom
Thank you makers and community for developing Porteus Kiosk Edition – it's really great.

On an older 32 bit machine I am trying to create a kiosk browser with a locally served website and Google Chrome fullscreen to display it. I would like to run Porteus Kiosk from an USB stick (the one I burnt the ISO to with the wizard) and have the website data on another USB stick that should be mounted on /media as far as I understand. I would prefer this solution since I wouldn't have to recompile the Porteus Kiosk ISO everytime I change something on the website. In it's final installation site the computer has no network access though, so I can't really host it somewhere else - that's why I would like to go for a locally hosted website.

Now, with both USB sticks the "system" and the "media" attached to the computer I am getting Porteus Kiosk to boot properly directly into the fullscreen browser, but apparently the "media" stick is not mounted at startup. Plugging it out and in again on the computer gives me the pop-up messages on top of the screen that the device has been mounted and pressing F5 (reload) on the keyboard shows the locally served website accordingly. Since this should be a headless system, I am wondering whether there's a way to let the system detect and mount the "media" USB stick during the boot process accordingly.

Any ideas?

/media not mounted on startup?

Posted: 10 Sep 2017, 11:39
by fanthom
Maybe you could use 'run_command=' parameter to download zip archive from Dropbox and unpack it to /var/www/localhost/htdocs during every kiosk boot?

Sorry - realized this is for installation with no network.
You may use this:

Code: Select all

run_command=mount /dev/sdb1 /mnt && cp -a /mnt/www/localhost /var/www; umount /mnt
OFC you nee to change this command to match your device and folders.

Thanks