AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Possible to mount mksysb as a loopback device?

    Posted Fri April 13, 2007 04:29 PM

    Originally posted by: SystemAdmin


    Not sure if this is a stupid question or not, but is it possible somehow or another to mount a mksysb image as a loopback device, or pull a volume from it and mount it? I've got a few files I need to retrieve from a mksysb. However, I don't really want to spend the time to reload it onto a box to get a few Kb worth of SSL certificates =]

    thanks for any info.


  • 2.  Re: Possible to mount mksysb as a loopback device?

    Posted Fri April 13, 2007 04:59 PM

    Originally posted by: orphy


    Just to get a few files out of the mksysb? Is there any reason
    why you don't just

    restore -Tvqf <mksysb> > /tmp/restore.out # get a list of the files
    restore -xvqf <mksysb> ... # files starting with "./"

    If the mksysb is on a tape, you'll have to use "-s4" & "/dev/rmt#.1".

    Do this on a temp directory so if something is messed up, you don't
    restore files everywhere to clean up.
    Orphy


  • 3.  Re: Possible to mount mksysb as a loopback device?

    Posted Mon April 16, 2007 08:55 AM

    Originally posted by: SystemAdmin


    Thanks. That's exactly what I needed. I didn't realize restore would also restore files from a mksysb.
    -dave