Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-06-2004, 08:56 PM   #1
Registered: Jan 2004
Location: VT, USA
Distribution: Gentoo, Ubuntu - t3h 1337 & the easy, respectively
Posts: 125

Rep: Reputation: 15
Question Mount iso writable in order to Slipstream Windows XP SP2

**** Please Help - ALMOST SOLVED ****

I've already done what I needed to do in Windows, but I'll need to do this often, please help me get this all a go in Linux!

I have not found a way to write to an ISO, however, I have almost found a full Linux solution to my problem.

[Windows] First, I ripped the boot image from the ISO using ISO buster - someone please tell me how to do that in linux.
[Windows] I don't know how to configure wine (couldn't get it to read a mounted drive) so I Slipstreamed the SP2 onto files copied from the ISO

FYI: I maintain a few identical directory structures - one for the original slipstreamed ISO, and another with only the experimental tweaks, another with drivers per machine, another with settings per user (I make enough of these that it is worthwhile to learn how to do it without windows), and so on. My eventual hope is that I could have the temporariry ISOs made for me by selecting options on a web interface and having php write my unattended scripts and selecting drivers and such (though I don't make enough of these for that to be anything more than fun).

Using k3b I can then use that image
$ k3b
> File >> New >> New Data CD Project
> Project >> Edit Boot Images
>> New
>>> [Select "Microsoft Corporation.img"]
>>> Emulation Type: None
>>> [Click] Show Advanced Options
>>> Boot-info-table: Uncheck
>>> Boot Load Segment: 0x07C0
>>> Boot Load Size: 0x4
>>> OK
>> [Select Virgin Slipstreamed Files; Right Click 'Add to Project']
>> [Select Enhanced Files; Right Click 'Add to Project']
>>> [Click Replace All]
I tried burning the cd a few different ways and I got a few different errors, ordered here by 'worseness':

: [blinking curser]
: CDBOOT: Couldn't find NTLDR
: usbehci.sys could not be found
I was able to traverse these errors, however, by adjusting the burn settings. I'm not saying that all of these settings are necessary, but I'll narrow it down later. The important thing is that I know this produces a cd without the aforementioned errors. I starred what I think is necessary

>> Burn
>>> Writing:
Device: [auto]
Speed: [auto]
* Writing Mode: DAO
Options: (changing these shouldn't bother anything)
>>> Settings:
* Datatrack Mode: 1
* Multisession: No Multisession
>>> Volume Desc:
Volume name: WXPOEM_EN
Volume set name: WXPOEM_EN
everything else I left default
>>> Filesystem:
* File Systems: Generate Joliet Extensions
Whitespace Treatment: No Change
>>> Advanced:
iso9660 Filesystem:
Allow 103 characeter Joliet filenames: unchecked
* Allow untranslated filenames: unchecked
Allow 31 character filenames: checked
* Allow full ASCII charset: checked
Allow leading period: checked
* Allow lowercase characters: unchecked
Allow max length filenames (37 characters): checked
Allow multiple dots: checked
* Allow ~ and #: checked
Omit trailing period: unchecked
Omit version numbers: unchecked
Create TRANS.TBL files: unchecked
Follow symbolic links: unchecked
Hide TRANS.TBL files in Joliet: unchecked
ISO level: level 2
Input Charset:
Force input charset: unchecked
PS: It really bugs me when people make a post and after so much effort they reply with: "Nevermind, I figured it out". Yeah, YOU did, but obviously anyone reading that post DIDN'T. That's why I'm here now - Plus I forget things and this is an excellent way to document them for future use.


In short:
uname -r : 2.4.26-gentoo-r9
mount /pub/ISO/CD_IMAGE.iso /mnt/tmp -o loop,uid=1000,gid=100,rw
mounts readonly

In long:
I've converted to Gentoo Linux and I want to boot into Windows as little as possible.
In fact, I'm selling my old copy of XP Home. However, before I sell it I want to make it halfway decent for the buyer. First I called Microsoft and had the CD key changed - which was way too easy considering all the trouble they went through with copyprotecting it.

Now I've copied the CD image and I need to make it writable so that I can Wine SP2 onto it and add some of the unattended options. Copying the files and making a new ISO won't work of course because I need the boot image to be present. Perhaps the boot image is why it won't mount writable?

Last edited by CoolAJ86; 06-08-2008 at 01:10 AM.
Old 09-06-2004, 10:19 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52

mount -o loop=/dev/loop0 /pub/ISO/CD_IMAGE.iso /mnt/tmp
Old 09-07-2004, 10:56 AM   #3
Registered: Jan 2004
Location: VT, USA
Distribution: Gentoo, Ubuntu - t3h 1337 & the easy, respectively
Posts: 125

Original Poster
Rep: Reputation: 15
I tried
# mount -o loop=/dev/loop0 /mnt/sata/Toolkit/Microsoft/Windows\ XP\ Home\ Edition\ Retial\ SP2.iso /mnt/tmp/

# mount -o loop=/dev/loop0,rw /mnt/sata/Toolkit/Microsoft/Windows\ XP\ Home\ Edition\ Retial\ SP2.iso /mnt/tmp/
but neither mounted the device rw

So I tried something new:
# umount /mnt/tmp/
# chmod 770 /mnt/sata/Toolkit/Microsoft/Windows\ XP\ Home\ Edition\ Retial\ SP2.iso
# mount -o loop=/dev/loop0,rw -v /mnt/sata/Toolkit/Microsoft/Windows\ XP\ Home\ Edition\ Retial\ SP2.iso /mnt/tmp/
mount: going to use the loop device /dev/loop0
mount: you didn't specify a filesystem type for /dev/loop0
       I will try type iso9660
/mnt/sata/Toolkit/Microsoft/Windows XP Home Edition Retial SP2.iso on /mnt/tmp type iso9660 (rw,loop=/dev/loop0)
# chmod 770 /mnt/tmp/
chmod: changing permissions of `/mnt/tmp/': Read-only file system
Any more ideas as to what I should do? Are there any kernel options that might cause this?
Old 09-07-2004, 04:06 PM   #4
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
I believe the iso9660 file system itself is read-only, meaning you can't just make the file system writable with a flag.
You might try mounting the ISO, copying the contents, editing the copy, and then creating a new ISO from the copy.
Old 09-07-2004, 08:04 PM   #5
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
ISO is designed to be built once, and never edited
Old 09-07-2004, 09:46 PM   #6
Registered: Jan 2004
Location: VT, USA
Distribution: Gentoo, Ubuntu - t3h 1337 & the easy, respectively
Posts: 125

Original Poster
Rep: Reputation: 15

Thanks a bunch for the help.

Getting back to the intent of what I'm trying to do; would there be a way to copy the boot image from the iso (which isn't visable when mounted), and then burn that boot image at a sector offset of 4 (not sure why that's necessary, but the Slipstream instructions I found online say to do it) on a new cd with slipstreamed files from the original iso (the latter being the easy part)?
Old 09-08-2004, 04:22 PM   #7
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
you could try making an ext2 filesystem cd, it cannot be read in windows, but can be edited.
Old 10-04-2008, 01:12 AM   #8
LQ Newbie
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
This command works for me:

sudo mount -v -o rw,loop,uid=$UID (image path goes here) /media/Virtual

Ubuntu (my distro) needs sudo to mount, the RW and loop options make it writeable, and the uid option sets all files to the current user for owner (otherwise only root would be able to edit them).

There's also a handy script here:

(sorry about bumping an old post, but it took so long to find how to do this, and so many people said it could not be done, that I figured the top google result would help people out the most)


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mount as a device: mount dvd-iso file in /dev/dvd sadarax Linux - General 21 02-02-2011 11:59 PM
mount a iso image rw? nvadekar Linux - Software 2 11-12-2005 02:01 AM
Mount an ISO the_imax Red Hat 3 03-31-2005 07:38 AM
Could not mount .iso file subaruwrx Linux - General 2 12-30-2004 09:20 AM
mount a .iso or extract a .iso behind user witout access to root easytarget Linux - Newbie 3 09-29-2002 05:01 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration