Results 1 to 2 of 2

Thread: Create USB that runs a program on boot

  1. #1
    Join Date
    Jun 2010
    Ubuntu 10.04 Lucid Lynx

    Create USB that runs a program on boot

    I thought using linux was the best way to do it. I want to create a specialized USB that does a simple thing like run a program or automated script I put on it when you boot into it. I don't want a GUI or anything like that, I just want to have it run in tty and restart. One example would be like a recovery tool that runs and does fsck and stuff like that, or one that recovers the password automatically. As if I were running autorun on windows on boot.

    How would I go about making something like that? I'm a programmer in C/C++, so I can handle complicated solutions. I thought I might have to make a custom linux distro.

    Thank you,

  2. #2
    Join Date
    Feb 2011
    not in Slovenia anymore
    Ubuntu 10.10 Maverick Meerkat

    Re: Create USB that runs a program on boot

    The complex way would be something like memtest86 does (source included)

    There are other ways to manipulate a Live USB too (check out this documentation, note, that it might be old/outdated)

    But mostly you will a kind of "init.d" solution if you google for it.
    Don't ask what your company can do for you.
    Ask what you can do for
    your company!

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts