WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Mount doesn't in bootlocal.sh (Solved)  (Read 2373 times)

Offline athouston

  • Full Member
  • ***
  • Posts: 143
Mount doesn't in bootlocal.sh (Solved)
« on: July 04, 2010, 06:42:48 PM »
I am trying to mount a RAID array in bootlocal.sh but the mount command doesn't work. I can mount the drive manually immediately after bootup.

Does anyone have any suggestions please or am I missing something?

Thanks.
« Last Edit: July 10, 2010, 09:53:45 PM by athouston »

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Mount doesn't in bootlocal.sh
« Reply #1 on: July 04, 2010, 08:16:44 PM »
I suspect this could be a timing issue similar to the need of having to use the "waitusb=n" boot code in case of USB pendrives. To test this theory you could just insert a line with sleep 15 into '/opt/bootlocal.sh' before your 'mount' command. If that works just reduce the delay time from 15 seconds to a shorter value that still works for you.

I obviously have no idea what processes are running on your system at the time of the execution of '/opt/bootlocal.sh'. But as an alternative (or add-on) to the "trial & error" approach mentioned above you might get a better idea by (temporarily) using the 'syslog' boot code. This has the effect that 'dmesg' messages are stored with timestamps in '/var/log/messages'. You could then insert at the very beginning of '/opt/bootlocal.sh' an entirely harmless command like sudo id. This should leave an entry in '/var/log/messages' and you might be able to find out what other stuff is not yet finished by looking at the 'dmesg' messages following this "marker". Unfortunately there is no absolute guarantee that events in the syslog a captured in their exact sequence if those events are only some milliseconds apart from each other, but it still might be worth a shot.

Offline athouston

  • Full Member
  • ***
  • Posts: 143
Re: Mount doesn't in bootlocal.sh
« Reply #2 on: July 05, 2010, 09:18:18 AM »
Sleep 15 did the trick. I'll investigate further after I insert sleep 8 into my personal boot cycle. Nighty nights. Thanks.