Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,173
Trophies:
1
I have a ramdisk mounted by fstab, and it works pretty well. It also works pretty well with samba, sharing it to some windows PCs. When I start the PC, it doesn't require any intervention for things to be running smoothly.

The downside to a ramdisk, though, is the volatility. It's absolutely fine by me, but I'd like somewhat of a structure there. My idea was to put a load of mkdirs in rc.local.

For whatever reason, it isn't working. I've read about adding a sleep at the top of the script, but this seems a bit barbaric, and I only ever saw people using that when they were doing something with networking in rc.local, whereas mine is only dealing with filesystems.

I've read that rc.local is executed asynchronously, but I have also read that fstab will always run before it, so I don't know why what I'm trying isn't working.

Here are some of the lines in my current rc.local:


Code:
su asday -c mkdir /media/ramdisk/4x6
su asday -c mkdir /media/ramdisk/4x6/done
su asday -c mkdir /media/ramdisk/ID\ Cards
etc.

Thank you for your time
03-18-2013, 07:57 AM
Reply
Subscribe to this thread Subscribed Users  Add Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Store JSON Data in local Storage (Java Script) QuailC1945 0 9 09-16-2020 05:22 PM
Last Post: QuailC1945
  [ubuntu] open virtual hosts in browser from local server ip address? kyleStyle 0 42 10-13-2019 06:06 PM
Last Post: kyleStyle
  Remmina Shared Local Printers thorhelicalremedial 1 613 08-31-2018 04:21 AM
Last Post: Monday12
  [xubuntu] 18.04 - Where is rc.local? Ice Queen 0 141 08-20-2018 03:20 AM
Last Post: Ice Queen
  [server] Search a local domain in 18.04? wsusannahmccyyy 0 155 08-20-2018 03:20 AM
Last Post: wsusannahmccyyy
  Local/server link Gerhard1 0 148 08-08-2018 03:41 PM
Last Post: Gerhard1
  UUID fstab Isuue joaltun85 1 201 04-03-2018 11:42 PM
Last Post: ylq
  Root apps at startup - rc.local not working as expected larsenlamont 0 185 03-21-2018 12:35 PM
Last Post: larsenlamont
  [ubuntu] exim4 cannot deliver the messages to local mail box? thorhelicalremedial 0 273 10-12-2016 03:57 AM
Last Post: thorhelicalremedial
  [ubuntu] Mount problem - wrong parameter i fstab gmelissaleachr 0 424 06-10-2016 09:37 AM
Last Post: gmelissaleachr

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2020