LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 07-30-2008, 09:39 PM   #1
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Rep: Reputation: 15
mkiso fails to see file that is actually there


Instead of a long lengthy explanation of the problem ...
Code:
root@darkstar root # mkisofs -v -V "TORITEST" -b floopy_boot.img -o
a_cd_image.uso temp
mkisofs 2.01.01a23 (i686-pc-linux-gnu)
Scanning temp
Writing:   Initial Padblock                        Start Block 0
Done with: Initial Padblock                        Block(s)    16
Writing:   Primary Volume Descriptor               Start Block 16
Done with: Primary Volume Descriptor               Block(s)    1
Writing:   Eltorito Volume Descriptor              Start Block 17
mkisofs: Uh oh, I cant find the boot image 'floopy_boot.img' !
root@darkstar root # ls -l floopy_boot.img
-r--r--r-- 1 root root 1474560 2008-07-30 21:25 floopy_boot.img
root@darkstar root #
temp is a directory.

So, is mkisofs brain dead or is there a --force-it-to-see-the-file-that-is-right-there flag undocumented in the man page?

Thanks in advance.
 
Old 07-31-2008, 06:04 AM   #2
storkus
Member
 
Registered: Jun 2008
Posts: 310

Rep: Reputation: 45
A couple of ideas: maybe mkisofs expects the file in a certain directory, so try using an absolute path. The other idea is that, if this image is the executable image, it expects it to be marked executable.

Mike
 
Old 07-31-2008, 08:14 PM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,280

Rep: Reputation: 61
By having temp at the end of the command, mkisofs will look for the floppy.img in the temp directory, Try putting a dot at the end of the command rather than using the temp. The directory you specify will be used as the root of the iso image. All paths specified in the command will be relative from the root of the iso. You can put the iso to the temp directory

Code:
mkisofs -v -V "TORITEST" -b floopy_boot.img -o temp/a_cd_image.uso .

Last edited by fotoguy; 07-31-2008 at 08:17 PM.
 
Old 07-31-2008, 10:49 PM   #4
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by fotoguy View Post
By having temp at the end of the command, mkisofs will look for the floppy.img in the temp directory, Try putting a dot at the end of the command rather than using the temp. The directory you specify will be used as the root of the iso image. All paths specified in the command will be relative from the root of the iso. You can put the iso to the temp directory

Code:
mkisofs -v -V "TORITEST" -b floopy_boot.img -o temp/a_cd_image.uso .
I'm not entirely sure I understand ... however I tried your command line, and that worked: mkisofs ran without complaints. Thanks!
 
Old 08-03-2008, 03:31 AM   #5
storkus
Member
 
Registered: Jun 2008
Posts: 310

Rep: Reputation: 45
What he means is the difference between relative (referenced from your current working directory or $PWD) and absolute (such as /usr/src/linux or /tmp) paths. Instead, when you put in "temp" at the end of the mkisofs command you were telling mkisofs to put your image there. By using ".", which is a synonym for $PWD you tell it to use your current directory instead.

If I knew the command syntax for mkisofs I would have spotted that myself, but it's one of the very few utilites I'm scared to use directly because of all the options! (I used to use xcdroast, now I use k3b.)

Mike
 
Old 08-03-2008, 04:40 AM   #6
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,280

Rep: Reputation: 61
Quote:
Originally Posted by moob8 View Post
I'm not entirely sure I understand ... however I tried your command line, and that worked: mkisofs ran without complaints. Thanks!
Glad it all works for you, and thanks storkus for the explanation.
 
  


Reply

Tags
mkisofs


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
mkiso, cdrecord problem bashyow Slackware 6 07-24-2008 03:40 AM
How do I check if the php function file() fails? farmerjoe Programming 6 12-02-2007 10:17 AM
mkiso from slackware install dvd darklink2058 Slackware 5 07-02-2007 03:11 PM
libsasl2.so.2 no such file (sendmail fails to start) frumpy93 Slackware 2 01-27-2006 10:58 PM
compiling fails: kdelibs_export.h: No such file or directory drowstar Linux - Software 1 01-12-2005 12:35 PM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration