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

Re: [Libguestfs] libguestfs question - multiple partitions in the guest



> -----Original Message-----
> From: libguestfs-bounces redhat com [mailto:libguestfs-bounces redhat com] On Behalf Of Shawn Kennedy
> Sent: Wednesday, August 01, 2012 3:34 PM
> To: libguestfs redhat com
> Cc: 'Smudde, Mark Alan (Mark)'; 'Tockstein, James E (Jim)'
> Subject: Re: [Libguestfs] libguestfs question - multiple partitions in the guest
> 
> > On Wed, Aug 01, 2012 at 08:54:01PM +0100, Richard W.M. Jones wrote:
> > > (1) You could look at tell-tale signs to see which root device has
> > > most recently been mounted.  Probably the simplest thing is to look at
> > > the date of /var/log/messages in each potential root, and choose the
> > > most recent one (since /var/log/messages is reliably and frequently
> > > updated when a guest boots and runs).
> >
> > As in the attached program.
> 
> Neat!!  I just looked at it - very nice!!  We will give it a try
> and report our findings!  If it does work, we will have to convert
> it to Python (preferred).


Success!!

# ./mostrecent.pl /storage/images/guest.img
Youngest root filesystem is: /dev/VG1/LV0002.root

With that knowledge, we can then mount (ro) the right mount point
and inspect further!  

Thank you again!
Shawn


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