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?

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

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

분류에서Dev

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

분류에서Dev

Live USB will only boot from UEFI

분류에서Dev

How do I automatically (after boot) mount an USB disk for the general user read/write/execute

분류에서Dev

How can I run a specific line as a command in a text file?

분류에서Dev

Ubuntu 14.04 live usb won't boot, seems incompatible with nouveau

분류에서Dev

USB Live Pen Persistent Boot 디스크-UEFI

분류에서Dev

Live-USB does not run sudo apt-get update

분류에서Dev

How to check the integrity of Live USB in Ubuntu

분류에서Dev

How to automatically mount usb flash drive at startup

분류에서Dev

Can't boot into Live USB, though secure boot has been disabled

분류에서Dev

How to watch live objects at run time

분류에서Dev

How do I make my systemd service run via specific user and start on boot?

분류에서Dev

Ubuntu does not boot up on my PC, whether installed or from a Live CD/USB. Help?

분류에서Dev

How to boot from a USB drive in VirtualBox?

분류에서Dev

Clonezilla Live USB

분류에서Dev

RedHat Live USB creation

분류에서Dev

How to make automatically boot in every computer?

분류에서Dev

What is happening when I run a persistent storage live USB from RAM?

분류에서Dev

Live CD (12.10), Live USB (14.04) 또는 Boot-Repair USB로 부팅 할 수 없습니다.

분류에서Dev

How to get batch script to automatically run on startup?

분류에서Dev

How to run command on connect to network

분류에서Dev

How to run command as different user

분류에서Dev

How to run a command in background always?

분류에서Dev

How to know the command run by a process?

분류에서Dev

How to chain command arguments to a specific command binary

분류에서Dev

How to bypass "Try it / Install" screen when booting from USB Live Session? (without installing in the USB)

분류에서Dev

How do I get my USB back to its original settings after using as a live usb?

분류에서Dev

Ubuntu Live CD / Live USB 문제

Related 관련 기사

  1. 1

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

  2. 2

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

  3. 3

    Live USB will only boot from UEFI

  4. 4

    How do I automatically (after boot) mount an USB disk for the general user read/write/execute

  5. 5

    How can I run a specific line as a command in a text file?

  6. 6

    Ubuntu 14.04 live usb won't boot, seems incompatible with nouveau

  7. 7

    USB Live Pen Persistent Boot 디스크-UEFI

  8. 8

    Live-USB does not run sudo apt-get update

  9. 9

    How to check the integrity of Live USB in Ubuntu

  10. 10

    How to automatically mount usb flash drive at startup

  11. 11

    Can't boot into Live USB, though secure boot has been disabled

  12. 12

    How to watch live objects at run time

  13. 13

    How do I make my systemd service run via specific user and start on boot?

  14. 14

    Ubuntu does not boot up on my PC, whether installed or from a Live CD/USB. Help?

  15. 15

    How to boot from a USB drive in VirtualBox?

  16. 16

    Clonezilla Live USB

  17. 17

    RedHat Live USB creation

  18. 18

    How to make automatically boot in every computer?

  19. 19

    What is happening when I run a persistent storage live USB from RAM?

  20. 20

    Live CD (12.10), Live USB (14.04) 또는 Boot-Repair USB로 부팅 할 수 없습니다.

  21. 21

    How to get batch script to automatically run on startup?

  22. 22

    How to run command on connect to network

  23. 23

    How to run command as different user

  24. 24

    How to run a command in background always?

  25. 25

    How to know the command run by a process?

  26. 26

    How to chain command arguments to a specific command binary

  27. 27

    How to bypass "Try it / Install" screen when booting from USB Live Session? (without installing in the USB)

  28. 28

    How do I get my USB back to its original settings after using as a live usb?

  29. 29

    Ubuntu Live CD / Live USB 문제

뜨겁다태그

보관