18 July 2012

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.

echo "# Starting Mounting Debian DVD Images..." 

for i in {1..5}
  mountCmd="$isoFile $mountDir -t iso9660 -o loop"
  mkdir $mountDir
  mount $mountCmd

echo "# End of mounting."

Take care...