Not very fancy - but it works (attached shell script). At some point I plan to add an option to specify the mount point if /mnt/iso doesn't exist - but simple as it is, I never got around to it ;)
On Tue, 2003-03-25 at 01:39, Willem van der Walt wrote: > is there a way to mount a disc image without it being on a disc? ( > I dont have a burner.) > mount -tiso9660 disk.iso /mnt/cdrom -o loop > > > -- Michael A. Peters <[EMAIL PROTECTED]>
#!/bin/bash mnt="/mnt/iso" if [ ! -d $mnt ]; then echo "$mnt does not exist" exit 1 fi if [ `mount |grep -c "/mnt/iso"` -gt 0 ]; then echo "An ISO image is already mounted on $mnt" echo "Please choose a different mountpoint" exit 1 fi if [ `whoami` = "root" ]; then mount -o loop -t iso9660 $1 $mnt if [ $? -ne 0 ]; then echo "mount failed" exit 1 fi else su root --command="mount -o loop -t iso9660 $1 $mnt" if [ $? -ne 0 ]; then echo "mount failed" exit 1 fi fi