It is currently Thu Nov 23, 2017 8:27 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Jul 07, 2017 11:35 pm 
Offline

Joined: Fri Jul 07, 2017 11:15 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 10, 2017 6:43 pm 
Offline

Joined: Sat May 08, 2010 5:26 am
Posts: 825
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 ?


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 1:07 am 
Offline

Joined: Fri Jul 07, 2017 11:15 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 11, 2017 3:16 am 
Offline

Joined: Sat May 08, 2010 5:26 am
Posts: 825
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group