Results 1 to 4 of 4

Thread: Weird file names

  1. #1
    Join Date
    Mar 2009
    Location
    Cerulean City
    Beans
    49
    Distro
    Ubuntu 13.04 Raring Ringtail

    Weird file names

    After using mdf2iso to convert an mdf to an iso file, all the files inside the iso have ";1" at the end of the name. After extracting the files, is there a way to remove that from all the files in the directories and subdirectories? I really have no idea why it's there... Please help me!

  2. #2
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: Weird file names

    Those extensions are part of the ISO-9660 filename standard. Linux normally hides them from you. I'm not familiar with the mdf2iso utility or whatever it converts from, so I don't know what it might be doing or why the resulting files are treated differently. You might want to check the mdf2iso documentation to see if it's got an options that might be relevant, though. Look for anything that references filename creation options and options to create or not create Joliet or Rock Ridge extensions, and play with those options. It's also conceivable that a Linux mount option would have an effect. Type "man mount" and then search for iso9660 options. (In the usual manpage reader, typing "/" followed by a search term searches, so type "/iso9660" and hit Enter. The main section on this option isn't the first hit, though, so type "/" and Enter to search again.)

    If you can't find anything relevant in your conversion or mount options, you could use a simple shell script to rename the files; however, my familiarity with the commands you'd need is a bit less than necessary for me to crank out such a script in a minute or two, so I'm afraid I'll have to leave it at that.

  3. #3
    Join Date
    Jun 2008
    Location
    California
    Beans
    2,271
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Weird file names

    The following command will rename the files and acts recursively. You need to change /target/directory to whatever is applicable. The -n option directs rename to do a dry run and report proposed changes. If all looks OK, change -n to -v to actually rename the files.

    Code:
    find /target/directory -type f -exec rename -n 's/;1$//' '{}' ';'

  4. #4
    Join Date
    Mar 2009
    Location
    Cerulean City
    Beans
    49
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Weird file names

    Thanks guys. Unfortunately, the program on that disc backup didn't run. But I did manage to find my original disc, so hopefully that'll work better.

Tags for this Thread

Bookmarks

Posting Permissions

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