From owner-freebsd-questions@FreeBSD.ORG Thu Mar 11 05:36:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1A0716A4CE for ; Thu, 11 Mar 2004 05:36:26 -0800 (PST) Received: from smtp.covadmail.net (mx06.covadmail.net [63.65.120.66]) by mx1.FreeBSD.org (Postfix) with SMTP id 723BB43D46 for ; Thu, 11 Mar 2004 05:36:26 -0800 (PST) (envelope-from strick@covad.net) Received: (covad.net 31216 invoked from network); 11 Mar 2004 13:36:21 -0000 Received: from unknown (HELO mist.nodomain) (strick@covad.net@68.164.174.57) by sun-qmail18 with SMTP; 11 Mar 2004 13:36:20 -0000 Received: from mist.nodomain (localhost [127.0.0.1]) by mist.nodomain (8.12.9p2/8.12.9) with ESMTP id i2BDaLJL000911; Thu, 11 Mar 2004 05:36:21 -0800 (PST) (envelope-from dan@mist.nodomain) Received: (from dan@localhost) by mist.nodomain (8.12.9p2/8.12.9/Submit) id i2BDaJF6000910; Thu, 11 Mar 2004 05:36:19 -0800 (PST) (envelope-from dan) Date: Thu, 11 Mar 2004 05:36:19 -0800 (PST) From: Dan Strick Message-Id: <200403111336.i2BDaJF6000910@mist.nodomain> To: wash@wananchi.com cc: freebsd-questions@freebsd.org Subject: Re: mount an ISO image on rw mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 13:36:27 -0000 On Thu, 11 Mar 2004 13:30:35 +0300, Odhiambo Washington wrote: >> > Perhaps I am just being stupid, doing a lot of things at the same time, > thus losing it. > Am I just dreaming by imagining that I can mount an ISO image with write > access? > > I have done > > [root@ns2]#vnconfig /dev/vn0c /wananchi/FreeSBIE-1.0-i386.iso > [root@ns2]#mount_cd9660 /dev/vn0c /freesbie > > This mounts the image in read-only mode. However, I would like to modify > a few files on the image before writing it to a CD. > > The man page for mount says that I could use -o -w to achieve a write > mode. Does this also apply to ISO iamages? I was thinking that once > mounted, they should behave like regular files, no? >> I would have thought the answer was "no". Normally one would use /usr/ports/sysutils/mkisofs to create a new ISO image containing the modified files and burn that ISO image on CD. However, the man page for mount_cd9660 (in FreeBSD release 4.9) gives this example usage of the command: The following command can be used to mount a Kodak Photo-CD: mount_cd9660 -o rw -v -s 0 /dev/cd0c /cdrom This might be a bad example. Neither the man page for mount_cd9660 nor the man page for mount lists "rw" as option specifiable with the "-o" flag. The "-w" flag (which is not an "option") is listed on the mount man page but not on mount_cd9660 man page. I was under the impression that the mount_cd9660 command only mounted file systems read-only. Dan Strick strick@covad.net