Technology Trends and Talk

Main menu

Monthly Archives: November 2012

Where there is a large number of files inside a folder. The command line mv starts complaining argument list too long. To tide over the crisis we need to utilise the pipe and use the argument to do the job

sudo find ./ -name “*.*” -exec mv {} ..\; -print

This will be able to move all files in the directory to new location. Please note the back slash is to indicate end of command

Now that we have an SR we just need to place the ISO files in the directory and installation can then begin, however trying to find direct links to media download is not always as straight forward as you may think. I needed a copy of 2008 R2 evaluation edition, so I followed Microsoft’s many steps in order to get the media, only to be advised that it was going to force me to use the download manager. Once the download manager started the download I could see the source location, but the link was far too long to copy and then re-write. So instead I paused the download and noticed that when I clicked the resume shortcut that was now on my desktop I was taken to the following URL:

Unfortunately Domain 0 only has 4GB of storage allocated by default, this ISO as demonstrated above is 2.9G and will fail during the download process due to lack of space. A smaller ISO (XP etc) would be fine, but not Win7 or 2008 R2 eval editions.

Using the command “df -h” we can see the current disk usage:

Part 2 – Creating a larger ISO library

When running the df -h command you will see the GPT partition that is listed as my local storage in XenCenter (/var/run/sr-mount etc). This has plenty of capactiy and will be perfect for my ISO requirement.

So we now create a new ISO directory (note that the GUID after /sr-mount will be different for each installation):

“cd /var/run/sr-mount/1b042bc0-16b3-fa45-f94d-7a6e4e3dafbe/“

then:

“mkdir -p ISO_Storage“

We now have an ISO_Storage folder that can be used to store ISO files and not have to worry about consuming all of Domain 0′s space. Now that the directory is there we can change directory to it: