mounting /home in a rescue environment
Posted: 07 Dec 2014, 03:55
Hi,
I just wanted to share an easy method I used when trying to salvage data in rescue-mode ( with an usb-stick ) from my dying disk. I know several other methods have been posted, but this did the trick for me.
I firstly mounted sda1: mount /dev/sda1 /mnt
Then ran these 5 commands to find out more about the lvm partition.
1# lvmdiskscan ( scan for all devices visible to LVM2)
2# lvdisplay ( display attributes of logical volumes)
3# vgdisplay ( display attributes of volume groups )
4# lvscan ( scans all disks for logical volumes [/dev/bubba/storage was reported as inactive] )
5# vgchange -ay (change attributes of volume groups to active
run lvscan again to verify /dev/bubba/storage now is active.
mount /dev/bubba/storage to /mnt/home (or wherever you want it) and copy important data from the drive.
I just wanted to share an easy method I used when trying to salvage data in rescue-mode ( with an usb-stick ) from my dying disk. I know several other methods have been posted, but this did the trick for me.
I firstly mounted sda1: mount /dev/sda1 /mnt
Then ran these 5 commands to find out more about the lvm partition.
1# lvmdiskscan ( scan for all devices visible to LVM2)
2# lvdisplay ( display attributes of logical volumes)
3# vgdisplay ( display attributes of volume groups )
4# lvscan ( scans all disks for logical volumes [/dev/bubba/storage was reported as inactive] )
5# vgchange -ay (change attributes of volume groups to active
run lvscan again to verify /dev/bubba/storage now is active.
mount /dev/bubba/storage to /mnt/home (or wherever you want it) and copy important data from the drive.