pm1961 Posted February 1, 2020 Share Posted February 1, 2020 Hi, I'm trying to get my head round RAM disks and making it persist through reboots..... And I'm getting confused......... I can't find it using MC........ Is the "go" file in the config directory the unraid equivalent? Thanks, Paul Quote Link to comment
Squid Posted February 1, 2020 Share Posted February 1, 2020 Any command in "go" is executed whenever the server boots up. Without making whatever changes you require from boot to boot it will be lost since there is really no persistent storage for unRaid short of the settings etc that are stored on the flash drive. Quote Link to comment
pm1961 Posted February 1, 2020 Author Share Posted February 1, 2020 Thanks Squid, I'd be grateful if peeps could look at this and comment on whether it will acheive my aim of setting up a folder "ramdisk" that I can map to from my other computer So, my "go" file.... #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & /mnt/ramdisk And my "smb-extra.conf" #unassigned_devices_start #Unassigned devices share includes include = /tmp/unassigned.devices/smb-settings.conf #unassigned_devices_end [ramdisk] path=/mnt/ramdisk valid users = paul write list = paul Quote Link to comment
Squid Posted February 1, 2020 Share Posted February 1, 2020 While it won't actually cause any problem, putting the RAM disk within /mnt isn't really recommended as it's generally reserved for use of unRaid itself. Put it within /mnt/disks instead Also, your command /mnt/ramdisk is missing something. (Like creating a ramdisk). If all you're trying to do is create a scratch pad or something, why not simply make a directory within /tmp and then share that instead... 1 Quote Link to comment
pm1961 Posted February 1, 2020 Author Share Posted February 1, 2020 Ah, I thought I had to stay outside of disks/cache etc in order to stay of spinning disks and stay in RAM............ Okey dokey, I'll give the /tmp route a go..... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.