• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    System startup script for ubuntu 12.04

    Scheduled Pinned Locked Moved
    Linux Problems
    2
    5
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kelly.bettendorf
      last edited by

      Hi all!

      Im trying to find out what the best way to create a startup script that will run every time our Fog server is restarted. ( system is ubuntu 12.04 running FOG 1.1.1 )

      I have a 2nd internal hard drive that i mount to the /images directory. every time i restart the computer i manually run the following command.

      “sudo mount /dev/sdc /images”

      Trying to find the best way to automate this process.

      Thanks all.
      kelly.

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        How about editing /etc/fstab
        have it contain something like:
        /images /dev/sdc ext4 defaults 0 0

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • K
          kelly.bettendorf
          last edited by

          Thanks Tom i was way over complicating this!

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            [quote=“kelly.bettendorf, post: 30844, member: 5100”]Thanks Tom i was way over complicating this![/quote]

            So I’m guessing this worked for you then? My info was just a guess, remember to change the ext4 part to the supported fs you need.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • K
              kelly.bettendorf
              last edited by

              Yes editing fstab worked for exactly what i was trying to do.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              171

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project