LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to use mkisofs to rebuild iso image (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-mkisofs-to-rebuild-iso-image-794680/)

austinium 03-11-2010 07:30 AM

how to use mkisofs to rebuild iso image
 
Hi,

Iam trying to alter a bootable Debian install CD based on the instructions http://blog.ericwhite.ca/articles/20...lenny-install/

this is the command to rebuild the iso image as specified at the above link.
Code:

$ mkisofs -o debian-503-amd64-CD-1-preseed.iso  \
          -r -J -no-emul-boot -boot-load-size 4 \
          -b isolinux/isolinux.bin              \
          -c isolinux/boot.cat ./debian-503 2> /dev/null

I've read the man pages for all the options specified and made sure that all paths are relative. However, the output iso file is not being generated.

I am completely foxed with this, what could i possibly be missing here?

thanks in advance

MensaWater 03-11-2010 08:03 AM

Try running the command without the "2 > /dev/null". That is redirecting stderr (file descriptor 2) to /dev/null so you aren't seeing the errors generated that might give you a clue as to why it isn't creating the ISO.

smoker 03-11-2010 08:09 AM

Do you get any errors ?
Get rid of the 2> /dev/null because that's where the error messages are going.
Use something like

2> mkisofs_error_log

instead.

austinium 03-11-2010 11:13 PM

hi,

Thanks for the replies.

this is the error message:
Code:

I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage: Uh oh, I cant find the boot catalog directory 'debian-503/isolinux'!

I am running the command from debian-503's parent directory, and the said folder and file is present within debian-503...what could i be missing here? I have tried running it from within the debian-503 directory but that doesnt work either. i have unpacked the iso into debian-503.

Edit:
if i use this
Code:

$ mkisofs -o debian-503-amd64-CD-1-preseed.iso  \
          -r -J -no-emul-boot -boot-load-size 4 \
          -b isolinux/isolinux.bin              \
          -c isolinux/boot.cat debian-503 2> error

, here i've changed the path to the folder from ./debian-503 to just debian-503, which should be the same thing(?)., but i get a different error.
Code:

I: -input-charset not specified, using utf-8 (detected in locale settings)
Using RR_MO000 for  /rr_moved (rr_moved)
genisoimage: Error: '(null)' and 'debian-503/rr_moved' have the same Rock Ridge name 'rr_moved'.
Unable to sort directory

------------------------
Edit2: It seems to be fixed(got an iso...gonna check if it works), heres the command
Code:

$ mkisofs -o debian-503-amd64-CD-1-preseed.iso  \
          -r -J -no-emul-boot -boot-load-size 4 \
          -b isolinux/isolinux.bin              \
          -c isolinux/boot.cat debian-503 2> error

plus i deleted the folder rr_moved.
thanks


All times are GMT -5. The time now is 09:45 PM.