Hi A couple of months back I got some good advice from Simon Wood and others about mounting CD-Rom images
[Simon Wood] You can create a binary copy of the contents of a CD >to a file on the disk with: dd if=/dev/hdc of=cd_image_1.iso bs=1024K
assuming /dev/hdc (secondary master) is you cdrom >drive, 'bs' just sets the block size and speeds up the >copy.
Then you can mount this image as if it were a normal >CD with: mount -t iso9660 -o loop >cd_image_1.iso /fake_cdrom1
This works brilliantly but I'm having problems adding these to fstab. Every way I try it doesn't like. If the image is mounted as /cdshare/img1/img.iso can someone suggest the correct instructions to stick in fstab? Thanks James Carter
This one works for me on an MDK7.2 system __BEGIN__ /root/mdk.iso /mnt/mdk iso9660 ro,loop=/dev/loop0 1 1 __END__ Does it work if you mount the image manually? Gary On Wednesday 18 July 2001 1:08 am, James & Cybèle wrote:
Hi A couple of months back I got some good advice from Simon Wood and others about mounting CD-Rom images
[Simon Wood] You can create a binary copy of the contents of a CD >to a file on the disk
with:
dd if=/dev/hdc of=cd_image_1.iso bs=1024K
assuming /dev/hdc (secondary master) is you cdrom >drive, 'bs' just sets
the block size and speeds up the >copy.
Then you can mount this image as if it were a normal >CD with: mount -t iso9660 -o loop >cd_image_1.iso /fake_cdrom1
This works brilliantly but I'm having problems adding these to fstab. Every way I try it doesn't like. If the image is mounted as /cdshare/img1/img.iso can someone suggest the correct instructions to stick in fstab?
Thanks
James Carter
-- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
Hi, Ok, lets see if I can be of help :-). I think this should work...... In your /etc/fstab, you should try adding the following: /dev/fake_cdrom1 /mycdrom iso9660 defaults,umask=022 0 0 (making sure that the above appears on all one line) You will also have to make sure that the file "/dev/fake_cdrom1", is symlinked to where ever the file "cd_image_1.iso" is. You can then save the file, and type in the following: mount -a which should (fingers crossed) mount your image of your cdrom drive. Now, if this doesn't work, there is another solution. You could, put the command: mount -t iso9660 -o loop >cd_image_1.iso /fake_cdrom1 into your "boot.local" file, which would mount this, at every run-level.... I hope that this works though. If it doesn't, I shall have to put my thinking cap back on :-) Let me know how you get on, Regards, Thomas Adam --- James_&_Cybèle <CJC@stonycobbles.freeserve.co.uk> wrote: > Hi
A couple of months back I got some good advice from Simon Wood and others about mounting CD-Rom images
[Simon Wood] You can create a binary copy of the contents of a CD >to a file on the disk with: dd if=/dev/hdc of=cd_image_1.iso bs=1024K
assuming /dev/hdc (secondary master) is you cdrom drive, 'bs' just sets the block size and speeds up the >copy.
Then you can mount this image as if it were a normal >CD with: mount -t iso9660 -o loop >cd_image_1.iso /fake_cdrom1
This works brilliantly but I'm having problems adding these to fstab. Every way I try it doesn't like. If the image is mounted as /cdshare/img1/img.iso can someone suggest the correct instructions to stick in fstab?
Thanks
James Carter
-- To unsubscribe, e-mail: suse-linux-uk-schools-unsubscribe@suse.com For additional commands, e-mail: suse-linux-uk-schools-help@suse.com
Please note that the content of this message is confidential between the original sender and the intended recipient(s) of the message. If you are not an intended recipient and/or have received this message in error, kindly disregard the content of the message and return it to the original sender.
If you have any complaints about this message please reply to: office@purbeck.dorset.sch.uk
The Purbeck School E-Mail server running: users.purbeck.dorset.sch.uk
===== Thomas Adam Linux Co-ordinator for The Purbeck School e-mail (school): n6tadam@users.purbeck.dorset.sch.uk e-mail (yahoo) : thomas_adam16@yahoo.com ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
participants (3)
-
Gary Stainburn
-
James & Cybèle
-
Thomas Adam