LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2006, 06:19 AM   #1
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
Mountiso kde script mounting errors


I'm using the script from http://www.kde-apps.org/content/show.php?content=11577 Which used to work fine until this latest version. For some reason I get a mounting iso error with all iso's: 'ERROR: "/home/powadha/abc.iso" has data error! File might be of wrong type or corrupted. Just mounting the file by hand works fine so I know this iso (and the lot) are fine. Does anyone know how to fix this script since there is no responce on the KDE site?
It seems to me that the new Iso check in the script just errors out all iso's

Regards
 
Old 02-05-2006, 06:28 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Don't know the solution, but the problems is, I think, that the check for a valid ISO 9660 fs assumes that the image is not a bootable (or autorun) image.

If you look at the shell code in /usr/share/apps/mountiso/mountiso.sh, the check is made like this:
Code:
function check_iso {
  TYPE=`head "$1" | od -Ax -s | head -n 1 | cut -f 1 -d " " `
    case "$TYPE" in
      008008)
        # ISO image
        CHECK="Standard ISO9660 image"
        ;;
      008028)
        # ISO image (by WinISO)
        CHECK="Standard ISO9660 image (by WinISO)"
        ;;
      053008)
        # NRG image
        CHECK="NRG image (by Nero)"
        ;;
      007a69)
        # XDVDFS image
        CHECK="XBOX DVD image"
        ;;
      *)
        # Anything else
        CHECK="Unknown format"
        ;;
    esac
}
Looking at a ISO file that can be used to create a valid image, I see this:
Code:
$ cat /var/share/z/iso/AlDenata.ISO | od -Ax -s | less
00007f startUp.htm
000435 ALDENATA
002cd1 E*^
00490c bV)[
004967 !q\
007fd7 1k$
009318 Win32                           ALDENATA
00965f 0000000000000000
009683
...
009c98 %/E
009f8f 0000000000000000
009fb3
...
00aebd mkisofs 1.15a12 -o aldenata.iso -J -r -hfs -auto startUp.htm -V ALDENATA
-hide-hfs shellexec.exe /aldenata
(Where the ... indicates several blank lines.)

As you can see, this will fail the test.

Of course, this ISO file is also not mountable on the loopback device either.

So I'd suggest you play with the od -Ax -s (or hexdump) and your ISO file to see if you can find an offset that will work for you.

Clearly, though, looking at the first three bytes of the first record is not, in every case (or most cases?) sufficient.

You could try modifying the function to default to Standard ISO9660 image and see if that would work for you, since your ISO files are, at least, mountable. (I don't really need mine to be mountable in Linux. That /var/share/z/ directory is a FAT32 drive for sharing files between Windows and Linux.)
 
Old 02-06-2006, 12:41 AM   #3
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Original Poster
Rep: Reputation: 31
Thanx for the response, I'll start trying to get it to work. It's a usefull script for me since I use quite some iso's. And being lazy it's nice to have it under an action menu by just right clicking the file. I'm not so good with scripts but now I know where to start.
 
Old 05-17-2006, 12:57 PM   #4
powadha
Member
 
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Original Poster
Rep: Reputation: 31
Well, got it fixed. Made a small howto for Dutch users at http://www.linuxplaza.net/modules/sm...m.php?itemid=8
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Modprobe errors after rebuilding the kernel (mounting, sound, etc.) vin7 Linux - Software 1 01-09-2005 09:07 AM
quake 3 install script errors... weasel86 Linux - Games 0 12-29-2004 11:41 AM
CD & DVD-ROM Mounting Errors JinSeung Linux - General 2 09-11-2004 12:19 AM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 11:59 AM
mounting network interfaces errors during bootup robeb Linux - General 0 07-03-2002 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration