Re: Extracting directories from an ISO image, command line tool?
Hi,
(Note to myself: This is the extract thread, not the
thread about getting .iso files from /dev/sr0.)
Stuart Longland wrote:
> > 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
I wonder why rsync and not "cp -a", and why not only
/mnt/cdrom/pool gets copied.
Maybe one should only do mount and umount as superuser
(via sudo) and leave the loop under control of the normal
user.
Richard Owlett wrote:
> Is there a way to pause your loop to swap DVDs?
while true
do
echo "Insert medium, wait until blinking ends, press Enter key (or Ctrl+C to end)"
read dummy
... mount /dev/sr0, rsync or cp, umount /dev/sr0
or xorriso ... -indev /dev/sr0 ...
done
Have a nice day :)
Thomas
Reply to: