[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    Re: [CentOS] Retrieving files from dd backup
From:       H <agents () meddatainc ! com>
Date:       2020-11-27 18:01:18
Message-ID: c1596a0d-1213-c770-4a61-1720368b19ac () meddatainc ! com
[Download RAW message or body]

On 11/27/2020 02:11 AM, Ralf Prengel wrote:
> Simple question
> did you try a centos live cd with a all tools to open the system?
> Perhaps the easiest way when not trained every day restoring files.
> Ralf
> 
> Von meinem iPad gesendet
> 
> > Am 26.11.2020 um 20:11 schrieb H <agents@meddatainc.com>:
> > 
> > Running CentOS 7 I have a previously combined backup of a disk with three \
> > partitions using dd. I now need to restore one single file from this backup and \
> > after perusing the internet, specifically \
> > https://unix.stackexchange.com/questions/31669/is-it-possible-to-mount-a-gzip-compressed-dd-image-on-the-fly, \
> > I have done the following: 
> > - installed squashfs-tools
> > 
> > - installed kpartx
> > 
> > - made a squash image of the dd backup and mounted it
> > 
> > - used kpartx to create devices for the three partitions under \
> > /dev/mapper/loopNpP 
> > - I can now mount the first partition, which is the EFI partition, and access it
> > 
> > - the second partition, the boot partition, fails to mount since it has the same \
> > UUID as the disk I am using in the computer, and of which it is an earlier dd \
> > backup. Since I am not interested in the boot partition - at least not right now \
> > - I moved on. 
> > - I am, however, interested in the third partition which is LUKS encrypted. \
> > Running 'cryptsetup luksOpen /dev/sda3 my_encrypted_volume' I can decrypt it with \
> > the password 
> > - trying to mount the decrypted version with 'mount \
> > /dev/mapper/my_encrypted_volume /media/my_device' results in a failure message \
> > 'mount: unknown filesystem type 'LVM2_member' 
> > - another website, \
> > https://askubuntu.com/questions/766048/mount-unknown-filesystem-type-lvm2-member, \
> > suggests I could run vgdisplay to get the UUID and then rename it using vgrename 
> > But, vgdisplay shows only one vg and I am afraid to rename the VG UUID shown by \
> > vgdisplay since it might refer to the VG currently in use... 
> > Does anyone have any insight or suggestions into the above and how to proceed \
> > while being absolutely certain I will not be messing up the running part of the \
> > system? 
> > Thanks!
> > 
> > _______________________________________________
> > CentOS mailing list
> > CentOS@centos.org
> > https://lists.centos.org/mailman/listinfo/centos
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

No, for two reasons. One, I am not trying to restore the entire system, only one file \
from the dd backup. Second, this is also a training run for the future.

_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic