Find the answer to your Linux question:
Results 1 to 6 of 6
i have written a autorun script as below(autorun.sh)::: #!/bin/sh ./sysinfo --------------- where sysinfo is a c executable file. i have saved autorun.sh and sysinfo on the cd. when i insert ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    4

    Smile Problem while Autorunning a CD on ubuntu 8.10

    i have written a autorun script as below(autorun.sh):::

    #!/bin/sh
    ./sysinfo




    ---------------
    where sysinfo is a c executable file. i have saved autorun.sh and sysinfo on the cd. when i insert the cd a dialogbox comes saying media has software for autorunning ( cancel && run) ..when i click on the
    run button another dialog box comes saying: "exec format error" and sometimes " permission denied"

    if anyone has solution to above problem please reply here...i am new to linux environment ..so please give a little detailing.....thank you...

  2. #2
    Just Joined!
    Join Date
    Jun 2009
    Posts
    4
    if anyone has knowledge of running auto running cd on ubuntu then plzz reply to this forum post.

  3. #3
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    In your /etc/fstab file, do you have the
    options user and exec on the entry
    for the cdrom drive?

    autorun(1) - Linux man page

  4. #4
    Just Joined!
    Join Date
    Jun 2009
    Posts
    4

    Smile

    thanx rcgreen for replying ....

    my /etc/fstab already has user, exec option it looks like below:


    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda2
    UUID=25b32804-099c-4a1d-a5d3-10adea6c67bd / ext3 relatime,errors=remount-ro 0 1
    # /dev/sda4
    UUID=c665b04f-8e86-40fc-9fb0-3d4021b02a0c /home ext3 relatime 0 2
    # /dev/sda3
    UUID=22779ba1-49e9-49b7-bb02-41e4c9a68b28 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
    /media/BINAY user,exec

  5. #5
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    maybe the program you want to run needs to be
    run as root?

  6. #6
    Just Joined!
    Join Date
    Jun 2009
    Posts
    4
    thanx for the reply.... but i dont think thats the problem.... i can run that program as a normal user also.
    do you have any format of wriring autorun.sh script....

Posting Permissions

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