Saturday, November 11, 2006

mount .iso files

First, if you do not have a .iso ... say a .bin that you want to mount...

use bchunk to make the .iso file. Then mount the .iso file:

Make sure you have a directory where you want to mount the ISO. I used /media/iso


sudo mount -o loop -t iso9660 your_file.iso /media/iso


to unmount:


sudo umount /media/iso



Here is a nautils script to mount and unmount:

MOUNT ISO FILES:

#!/bin/bash
#
for I in `echo $*`
do
foo=`gksudo -u root -k -m "enter your password for root terminal
access" /bin/echo "got r00t?"`
sudo mount -o loop -t iso9660 $I /media/ISO
done
done
exit0

UMOUNT ISO FILES:

#!/bin/bash
#
for I in `echo $*`
do
foo=`gksudo -u root -k -m "enter your password for root terminal
access" /bin/echo "got r00t?"`
sudo umount $I
done
done
exit0

0 comments: