Genisoimage "Read-Only" Commandline?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Genisoimage "Read-Only" Commandline?
# 1  
Old 11-16-2014
Genisoimage "Read-Only" Commandline?

Greetings.

I have a question concerning the proper formation of a genisoimage commandline to prohibit write-back behavior to the original source files.

Consider the following typical usage example:
Code:
genisoimage -r -V "Some_Name" -cache-inodes -J -l -b isolinux/isolinux -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /tmp/cdcopy.iso .

When run on a read-only (golden) source fileset, we get:
Quote:
genisoimage: Read-only file system. Error opening boot image file './isolinux/isolinux.bin' for update.
First off, why is genisoimage by default writing back to the original source files in the first place (!); and, secondly, what might one call at the commandline when invoking genisoimage to prohibit this behavior? manpages seem to fail here...

Smilie

Thanks for the help --
# 2  
Old 11-17-2014
hi LinQ,

did i understand you correctly ?

- you create a bootable cd image iso and then you mount this on the system
- after when you run an executable that on the mount but its fail ?
# 3  
Old 11-17-2014
@ygemici:

No, I'm just looking for a way to keep genisoimage from needlessly changing the master distro files while it's creating an iso.

That's it in a nutshell Smilie
# 4  
Old 11-17-2014
ok Smilie

* so what is changing ? which files or what append ?

* and did you try different options?
Code:
-iso-level 3 -D -d -R -allow-multidot -allow-lowercase ..

# 5  
Old 11-17-2014
@ygemici:

Thanks for the input.

As mentioned in the output from genisoimage, the file which commonly gets written to is isolinux.bin,
Quote:
genisoimage: Read-only file system. Error opening boot image file './isolinux/isolinux.bin' for update.
...although there might be others in certain instances (comments, anyone?)

BTW: The original citations were taken from the OP found in this serverfault thread. I was able to reproduce the output on my (offline) "distro-maker" using a similar commandline with the sourcefile partition set as read-only. If allowed, genisoimage will definitely do as it indicates; and the target sourcefile (isolinux.bin) will be altered.

There doesn't seem to be any help in the manpages regarding a commandline parameter which would suppress this behavior. Which of your above commandline parameter(s) might work to keep these writebacks from occurring? Is the entire string to be utilized as a kind of "panacea"???

In any event, it seems as though this is a widely-applicable issue; and, judging from the number of hits this thread had in just the first 24 hours (over 5K), I'm not the only one out here with some concern...

Anyone else seen this?

Thanks Smilie
# 6  
Old 11-19-2014
ok you want to recreate the own iso-file but fot the "-boot-info-table" options trigger the mkisofs/genisoimage so it wants to regenerate the boot table located is in the your boot-image and then its fails because isolinux.bin is default read-only permission from iso or mounted iso.

if you dont need to edit the boot image and/or boot-info-table *(iso fs sys infors,size of boot image,checksum info and all its locations...)
so remove the -boot-info-table your commandline and your command then your process must be works.

but the default/recommend way , copy the contents of all files from iso to writable an empty (newly created) directory and then execute the default mkisofs/genisoimage commands on to the this directory.

good luck
regards
ygemici
This User Gave Thanks to ygemici For This Post:
# 7  
Old 11-19-2014
A unionfs mount could effectively allow that folder to be "written" to, as well.
These 2 Users Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

Failure: if grep "$Var" "$line" inside while read line loop

Hi everybody, I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o My code: #!/bin/sh set -e set -u export IFS= optl="Optl" LOCSTORCLI="/opt/lsi/storcli/storcli" ($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies

3. Shell Programming and Scripting

Quick Perl "s2p" Commandline Q . . .

Greetings! Looking to clear up a rather simple matter which seems to nonetheless elude me: How does one call Perl's s2p from the commandline? I've tried such as this:perl -e s2p '-i 's/first/last/g' ./somefile.txt'...to convert a similarly-formed GNU sedline over to the Perl equivalent (without... (2 Replies)
Discussion started by: LinQ
2 Replies

4. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

5. Shell Programming and Scripting

Read from "list1" and list matches in "list2"

I want to print any matching IP addresse in List1 with List 2; List 1 List of IP addresses; 161.85.58.210 250.57.15.129 217.23.162.249 74.76.129.101 30.221.177.237 3.147.200.59 170.58.142.64 127.65.109.33 150.167.242.146 223.3.20.186 25.181.180.99 2.55.199.32 (3 Replies)
Discussion started by: lewk
3 Replies

6. Shell Programming and Scripting

Purpose of "read" and "$END$" in ksh ?

Hi, Could anyone please shed some light on the following script lines and what is it doing as it was written by an ex-administrator? cat $AMS/version|read a b verno d DBVer=$(/usr/bin/printf "%7s" $verno) I checked that the cat $AMS/version command returns following output: ... (10 Replies)
Discussion started by: dbadmin100
10 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. Shell Programming and Scripting

read -p "prompt text" foo say "read: bad option(s)" in Bourne-Shell

Hallo, i need a Prompting read in my script: read -p "Enter your command: " command But i always get this Error: -p: is not an identifier When I run these in c-shell i get this error /usr/bin/read: read: bad option(s) How can I use a Prompt in the read command? (9 Replies)
Discussion started by: wiseguy
9 Replies

9. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

10. Shell Programming and Scripting

how to request a "read" or "delivered" receipt for mails

Dears, I've written a script which allows me to send mails in different formats with different attaches. Now I still want to add a feature to this script. My users would like to be able to receive a "read" or "delivered" receipt for their mails. The script send mails on behalve of an specific... (1 Reply)
Discussion started by: plelie2
1 Replies
Login or Register to Ask a Question