LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2011, 11:05 AM   #1
acal
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Mount ISO image RW


Hi,
this is an old question, and the present answers are clear
and reasonable enough: namely that an ISO image is essentially
a read-only format, and as such does not require, or allow,
to be writable.

(Still, today that enormous storage facilities are available,
one may like to keep one's disks around like ISO images, and never
actually burn them to physical media, only modify them)

But my question is different: I am trying to mount a DVD on my
Linux (Fedora 12) and I want to see its contents from my old PC
via Samba. (Attention: _see_, not _modify_ content)

I do this by
1) mount -o loop my_old_photo.iso /mnt/diskimage
2) declare the latter in a [data]section of smb.conf

This does not work at all: SELinux requires at all costs me to do

chcon -R -t samba_share_t /mnt/diskimage

and this, although not strictly writing to the ISO, formally appears
like a modification. I am informed that:

[root@myBox ~]# chcon -t samba_share_con /mnt/diskimage
chcon: failed to change context of `/mnt/diskimage' to `system_ubject_r:samba_share_con:s0': Read-only file system

Looks like a rather silly requirement, either from SELinux or from mount,
given that the "context" is not really part of the filesystem.
For the record,

[root@myBox ~]# ls -ldZ /mnt/diskimage/
dr-xr-xr-x. root root system_ubject_r:iso9660_t:s0 /mnt/diskimage/

...and I am stuck.
Unless, that is, I copy/unpack all from /mnt/diskimage to _another_
directory, and export that one instead.

...ideas anybody? Thanks in advance!
 
Old 08-04-2011, 01:18 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

Have you tried applying the chcon BEFORE you actually mount
a device to that mount-point?


Cheers,
Tink
 
Old 08-04-2011, 04:37 PM   #3
acal
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thread: Mount ISO image RW

Hi, thanks for the answer!
I did try this, and the chcon then works.
But mounting the ISO image obliterates this move. When I try
to access the mounted samba share (from the same machine,
using smbclient) I do see the directory but "ls" fails with
NT_DENIED_ACCESS.
(I am away from the machines now, tomorrow I will post the exact message)
 
Old 08-04-2011, 09:42 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,229

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
Quote:
But my question is different: I am trying to mount a DVD on my
Linux (Fedora 12)
you are aware that fedora 12 is past it's End Of Life and there is NO support for it any longer and has had NO SUPPORT for 8 months now

install the current fedora 15
 
  


Reply


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
not able to mount .iso.gz image saheelahamed Linux - Software 3 08-01-2007 10:47 AM
How to mount ISO image for use explorer SUSE / openSUSE 1 07-30-2006 11:28 PM
mount a iso image rw? nvadekar Linux - Software 2 11-12-2005 03:01 AM
how to mount an iso image as CD? hkl8324 Linux - General 7 07-05-2005 07:43 AM
mount iso image hassan2 SUSE / openSUSE 3 06-06-2005 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:41 PM.

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