How to automatically run a specific command on Live USB on boot?

Tommy Aria Pradana

I can mount my Live Ubuntu partition with this sudo mount -o remount,rw /cdrom what i'm asking is simple.How to make that command running automatically on every Live USB boot ?

Thankyou

Devyn Collier Johnson

Place that command in a script and add the script to the init scripts. If you are using some init-alternative, place your new script where appropriate or follow what ever structure it may use for storing commands that will be executed on run-time.

If you want to know how to add scripts to init, look at this thread - How to install an init.d script?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to automatically run a specific command on Live USB on boot?

From Dev

Live CD/USB - run command on start

From Dev

How to boot a Linux live USB on a Mac?

From Dev

How to boot from ubuntu live usb with 'try ubuntu' directly?

From Dev

How to boot from ubuntu live usb with 'try ubuntu' directly?

From Dev

How to change the boot kernel of a usb live w/ persistent running Kali

From Dev

How to turn off the boot up beep of Ubuntu Live USB?

From Dev

How can I successfully boot my Ubuntu Live USB?

From Dev

How to save files from a live usb boot to computer?

From Dev

How can I boot an Ubuntu 18 live USB from GRUB?

From Dev

How to automatically run a command after saving a file

From Dev

How to run a command automatically after each reboot

From Dev

How to automatically run a command after exiting ssh

From Dev

How to run a command automatically when network disconnects

From Dev

How to Run `reinstall xkb-data` for Broken Installation in Live USB?

From Dev

How to mount /run from a Linux live usb in order to chroot?

From Dev

How do I upgrade releases from a Live USB with the command line?

From Dev

How to reinstall Ubuntu from the live USB's command line?

From Dev

Live USB Boot Windows 8.1

From Dev

Can not run update-initramfs from live USB during dual boot encrypted install

From Dev

How to make my application run automatically when USB drive is plugged in?

From Dev

How can I run a command after boot?

From Dev

Ubuntu - How to run a terminal command on boot?

From Dev

How to run specific command with sudo and no password?

From Dev

How to create a file with specific command to run in linux?

From Dev

How to run ubuntu command on specific time

From Dev

How to redirect automatically to https with Spring Boot started on command line

From Dev

Live USB will only boot from UEFI

From Dev

Unable to boot live Linux multiboot USB in UEFI

Related Related

  1. 1

    How to automatically run a specific command on Live USB on boot?

  2. 2

    Live CD/USB - run command on start

  3. 3

    How to boot a Linux live USB on a Mac?

  4. 4

    How to boot from ubuntu live usb with 'try ubuntu' directly?

  5. 5

    How to boot from ubuntu live usb with 'try ubuntu' directly?

  6. 6

    How to change the boot kernel of a usb live w/ persistent running Kali

  7. 7

    How to turn off the boot up beep of Ubuntu Live USB?

  8. 8

    How can I successfully boot my Ubuntu Live USB?

  9. 9

    How to save files from a live usb boot to computer?

  10. 10

    How can I boot an Ubuntu 18 live USB from GRUB?

  11. 11

    How to automatically run a command after saving a file

  12. 12

    How to run a command automatically after each reboot

  13. 13

    How to automatically run a command after exiting ssh

  14. 14

    How to run a command automatically when network disconnects

  15. 15

    How to Run `reinstall xkb-data` for Broken Installation in Live USB?

  16. 16

    How to mount /run from a Linux live usb in order to chroot?

  17. 17

    How do I upgrade releases from a Live USB with the command line?

  18. 18

    How to reinstall Ubuntu from the live USB's command line?

  19. 19

    Live USB Boot Windows 8.1

  20. 20

    Can not run update-initramfs from live USB during dual boot encrypted install

  21. 21

    How to make my application run automatically when USB drive is plugged in?

  22. 22

    How can I run a command after boot?

  23. 23

    Ubuntu - How to run a terminal command on boot?

  24. 24

    How to run specific command with sudo and no password?

  25. 25

    How to create a file with specific command to run in linux?

  26. 26

    How to run ubuntu command on specific time

  27. 27

    How to redirect automatically to https with Spring Boot started on command line

  28. 28

    Live USB will only boot from UEFI

  29. 29

    Unable to boot live Linux multiboot USB in UEFI

HotTag

Archive