[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Extracting directories from an ISO image, command line tool?

On Thu 10 Sep 2015 at 08:06:36 -0500, 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

Is there a good reason why the DVDs are copied to /media? $HOME is where
they are so that would seem to be the natural place to dd them to. If
the user has no root privileges it is the only place for them. So:


> Goal:
> Extract pool directory (and all of its sub-directories) resulting in
> /media/distributionA/poolA/
> /media/distributionA/poolA/contrib
> /media/distributionA/poolA/main
> What commands should I be looking at?

    bsdtar -C $HOME/distributionA/ -xf $HOME/distributionA/DVD1.iso pool

    chmod -R u=rwX,go=rX $HOME/distributionA/pool

    bsdtar -C $HOME/distributionA/ -xf $HOME/distributionA/DVD2.iso
    bsdtar -C $HOME/distributionA/ -xf $HOME/distributionA/DVDn.iso

    chmod -R u=rX,go=rX $HOME/distributionA/pool

Reply to: