Assumed that /dev/cdrom is the location of CD/DVD-ROM
How to create Image (ISO) files from CD/DVD
% sudo umount /dev/cdrom
% readcd dev=/dev/cdrom f=file.iso
How to create Image (ISO) files from folders
% mkisofs -r -o file.iso /location_of_folder/
How to generate MD5 checksum files
% md5sum file.iso > file.iso.md5
How to check MD5 checksum of files
Assumed that file.iso and file.iso.md5 are in the same folder
# md5sum -c file.iso.md5
How to mount/unmount Image (ISO) files without burning
To mount Image (ISO) file
% sudo mkdir /media/iso
% sudo modprobe loop
% sudo mount file.iso /media/iso/ -t iso9660 -o loop
To unmount Image (ISO) file
% sudo umount /media/iso/
If you want to mount/unmount your ISO image by directly right-clicking on it, you can do this from your home dir:
% cd .gnome2/nautilus-scripts/
% gedit Mount
Copy this script into Mount file
#!/bin/bash
#
for I in "$*"
do
foo=`gksudo -u root -k -m "Enter your password for root terminal access" /bin/echo "got r00t?"`
sudo mkdir /media/"$I"
sudo mount -o loop -t iso9660 "$I" /media/"$I" && nautilus /media/"$I" --no-desktop
done
done
exit0
Save and close, than do the same with unmount file:
# gedit Unmount
Copy these script into Unmount file
#!/bin/bash
#
for I in "$*"
do
foo=`gksudo -u root -k -m "Enter your password for root terminal access" /bin/echo "got r00t?"`
sudo umount "$I" && zenity --info --text "Successfully unmounted /media/$I/" && sudo rmdir "/media/$I/"
done
done
exit0
Make them executable with:
% chmod +x Mount
% chmod +x Unmount
Or a graphical tool type in terminal:
% sudo apt-get install gisomount
to run type in terminal:
% sudo gisomount
No comments:
Post a Comment