Mounting Debian DVDs Under /mnt

Debian is the universal powerful gnu linux distribution that used to best suits my HP Pavilion dv4000 laptop which persistently resists to run a linux distibution on its own (fedora, pardus...)
My 90% of debian usage experience was offline. As a result in order to try hundreds of free distributed applications, i had to download and burn the debian DVD ISO images and mount them manually every time. Following shell command was used to help me, i wish so for you.


#!/bin/bash
echo "# Starting Mounting Debian DVD Images..." 

for i in {1..5}
do
  mountDir="/mnt/Debian0$i"
  isoFile="debian-505-i386-DVD-$i.iso"
  mountCmd="$isoFile $mountDir -t iso9660 -o loop"
  mkdir $mountDir
  mount $mountCmd
done

echo "# End of mounting."

Take care...

Popular posts from this blog

SoapUI 4.5.0 Project XML File Encoding Problem

COMRESET failed (errno=-32)

SoapUI - Dynamic Properties - Getting Current Time in DateTime Format