rm /DietPi/dietpi/.dietpi-cloudshell
cat << _EOF_ > /etc/systemd/system/dietpi-cloudshell.service
[Unit]
Description=dietpi-cloudshell on main screen
[Service]
Type=forking
StandardOutput=tty
# These are run from dietpi-cloudshell and autostart
ExecStartPre=/bin/bash -c 'setterm --term linux --blank 0 --powersave off' # Fails to set powersaving, must originate from tty
ExecStartPre=/bin/bash -c 'tput civis'
ExecStart=/bin/bash -c '/DietPi/dietpi/dietpi-cloudshell 1 &'
ExecStop=/bin/bash -c 'setterm -reset'
ExecStop=/bin/bash -c '/DietPi/dietpi/func/dietpi-notify 0 DietPi-Cloudshell terminated, have a nice day!'
[Install]
WantedBy=multi-user.target
_EOF_
systemctl daemon-reload
wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/dietpi-cloudshell -O /DietPi/dietpi/dietpi-cloudshell
Reboot system, then run dietpi-cloudshell to configure. You'll be looking for the "Storage" settings option to configure mount paths. Then enable the additional scenes as needed.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Thanks it's looking like just what I need and I am sure others will find it useful.
John
Excellent, please let me know what you think after you've tested it over a few days (eg: any feedback, changes etc)?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Some initial observations are that before the USB2/3 screen there is some garbage text on screen for a very brief period - can't read it and I doubt I'd be quick enough to photograph it.
I have the SSD mounted as /mnt/ssd and is the second device in cloudshell - sometimes the screen says "mount not active" and other cycles it appears as it should (same applies to flash/rootfs storage). A few reboots and the situation isn't any different. I don't remember seeing "mount not active" in v7.
Can I request that you can give drives identifying names instead of USB Storage 1 - such as SSD, HD, Flash drive etc?
The pictures show the blue line extending onto the second line - minor I know but I'm sure you'll want it to look perfect - and the "mount not active message".
The next shows some screen garbage - an error that is quickly overwritten.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
- Scroll to bottom
- Change the STORAGE_NAME values as needed
- Add spaces at the end of the name to line up with the other entries (or it will spill over to next line)
Example, USB_5:
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Thanks for the update - the line fixed as you say - I have changed the drive names - the garbage text doesn't happen any more for some reason.
I still get the "mount not active" message for the eMMC and the SSD - but not consistently. A reboot doesn't make any difference. Some cycles they are reported OK, some not.
johnvick wrote:I still get the "mount not active" message for the eMMC and the SSD - but not consistently. A reboot doesn't make any difference. Some cycles they are reported OK, some not.
Any idea why this is?
Hi John,
Mount not active is triggered when df | grep drive mount (eg: /mnt/usb_1) returns no results. So either its being temporarily dismounted, or something else.
Let me monitor my XU4 over the next few days and see if I can replicate.
Next time you see mount not active and your connected to the system over SSH, run df -h and see if your drive is listed.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Still intermittently getting this message and all drives present with df -h. Sometimes the root fs drive is reported as "Mount not active" which is a bit of a paradox.