Stuart Longland wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 10/09/15 23:06, Richard Owlett wrote:
Environment: Using dd I have copied physical [NO INTERNET AVAILABLE
;] Debian DVD's to /media/distributionA resulting in
/media/distributionA/DVD1.iso /media/distributionA/DVD2.iso .. ..
/media/distributionA/DVDn.iso

Well, I can get you half-way there.

for f in /media/distributionA/*.iso; do
        bn="$( basename "${f}" .iso )"
        dn="$( dirname "${f}" )"
        mount "${f}" /mnt/cdrom -o loop
        rsync -aP /mnt/cdrom "${dn}/${bn}"/
        umount /mnt/cdrom
done

Now you'll have in addition to the above:
/media/distributionA/DVD1/ …
/media/distributionA/DVD2/ …
..
..
/media/distributionA/DVDn/ …

I'm not sure how you'd go about merging the repositories together.
Someone else can help with that.


I'll your points in reverse order.
The "repository merging" is handled by the -extract option of xorriso. Thomas Schmitt, author of xorriso, has said in this thread to copy from DVD using dd.
Is there a way to pause your loop to swap DVDs?


Reply via email to