Ultimate Boot CD
http://www.ultimatebootcd.com/forums/

[patch] ubcd2iso.sh errors: I/O redirection; ISO level
http://www.ultimatebootcd.com/forums/viewtopic.php?f=12&t=15725
Page 1 of 1

Author:  mattmahn [ Fri Jul 07, 2017 11:35 pm ]
Post subject:  [patch] ubcd2iso.sh errors: I/O redirection; ISO level

Patch
There's a syntax error for redirecting stdout to /dev/null, and the ISO level was set too high. I dropped the ISO level to 3, since I didn't see any references to a level 4 anywhere.

Note: I haven't actually tried booting the .iso yet, but it did complete without any errors. Nag me in 24 hours if you want me to test it and I haven't given an update.

Author:  ady [ Mon Jul 10, 2017 6:43 pm ]
Post subject:  Re: [patch] ubcd2iso.sh errors: I/O redirection; ISO level

When using the script "as-is", without patching it, what is the actual problem that you see? Does the resulting ISO image fail in any way as it is right now in UBCD version 5.3.7 ?

Author:  mattmahn [ Tue Jul 11, 2017 1:07 am ]
Post subject:  Re: [patch] ubcd2iso.sh errors: I/O redirection; ISO level

Sorry, I guess it would really helpful to know what went wrong.

As-is, the script doesn't even complete:
Code:
~/Downloads/ubcd537-extracted
❯ ./ubcd/tools/linux/ubcd2iso/ubcd2iso.sh ~/Downloads/ubcd537-extracted ~/foo.iso

UBCD2ISO: Creating bootable UBCD ISO image ...

./ubcd/tools/linux/ubcd2iso/ubcd2iso.sh: line 72: [: too many arguments
UBCD2ISO ERROR: '/home/matt' isn't a directory.
                '/home/matt/foo.iso' could not be created.
/bin/mkisofs: Illegal iso9660 Level 3, use 1..3.

UBCD2ISO ERROR: Something went wrong, while creating '/home/matt/foo.iso'.
I looked at the script, and I noticed that there was a ">" missing to redirect output to /dev/null, hence "./ubcd/tools/linux/ubcd2iso/ubcd2iso.sh: line 72: [: too many arguments". (Same thing for line 73.)

After fixing that, I received another error:
Code:
~/Downloads/ubcd537-extracted 8s
❯ ./ubcd/tools/linux/ubcd2iso/ubcd2iso.sh ~/Downloads/ubcd537-extracted ~/foo.iso

UBCD2ISO: Creating bootable UBCD ISO image ...

/bin/mkisofs: Illegal iso9660 Level 3, use 1..3.

UBCD2ISO ERROR: Something went wrong, while creating '/home/matt/foo.iso'.
I looked at the man page, and saw that the ISO level only goes up to 3. I did a quick check with other internet sources to confirm.
I made the second change in the patch, and it completed successfully.

Yes, UBCD 5.3.7.

Author:  ady [ Tue Jul 11, 2017 3:16 am ]
Post subject:  Re: [patch] ubcd2iso.sh errors: I/O redirection; ISO level

Regarding ISO9660 level 4, it is supported by mkisofs (search for an updated mkisofs' manual) from cdrtools.

So, "level 4" is an adequate option for UBCD, especially considering that advance users would be using the script so as to generate a customized UBCD.


Now, for the main issue...


When using the original script without patching it, please note that the first argument is the root _directory_ of the extracted (and optionally modified) ubcd tree.

I would suggest a test, using "root" (or superuser or sudo) permissions:

Code:
cd ~/Downloads/ubcd537-extracted/ubcd/tools/linux/ubcd2iso/
chmod a+x ubcd2iso.sh
.ubcd2iso.sh ~/Downloads/ubcd537-extracted/ ~/foo.iso


Note that the first argument of the ubcd2iso script ends with a slash ("/") character (indicating a directory). Please use it.

Please let us know the result.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/