Results 1 to 5 of 5

Thread: Need help with bash script to copy files from DVDs to a hard drive

Threaded View

  1. #1
    Join Date
    Oct 2007

    [Solved] Need help with bash script to copy files from DVDs to a hard drive

    Hi, I am trying to correct a script I want to use to automate the copy of DVDs from a cdrom to my hard drive and I just can't get it to work.

    Here it is:

    mount /media/cdrom
    cd /media/cdrom
    cp * -r /media/cdrom /media/"Expansion Drive"/Fichiers/FR/
    I use a similar script two or three years ago and the cdrom was named cdrom0. But now, event by changing the cdrom name, nothing work.

    At the beginning of the script, I get:
    mount : impossible de trouver (not able to find) /media/cdrom/ dans /etc/fstab ou /etc/mtab

    If I look in /media, I get this:

    drwxr-xr-x 2 root root 4096 2011-09-26 16:53 cdrom
    drwx------ 1 user user 4096 2011-08-17 21:27 Expansion Drive
    dr-x------ 1 user user 2048 2005-12-12 23:28 FR20051212

    cdrom seems to be identified by Ubuntu separately from the disk FR20051212 (volume name) itself.

    I tried to find an answer on Internet but the search terms are too general to get a specific answer.

    What am I not understanding?


    Sorry if the question looks noob, but some days, I really am!
    Last edited by okaoka; November 6th, 2011 at 02:43 PM. Reason: Solved

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