New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

mounting /home in a rescue environment

Got problems with your B2 or B3? Share and get helped!
Post Reply
ther
Posts: 17
Joined: 13 Jul 2011, 08:33

mounting /home in a rescue environment

Post by ther »

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.
Post Reply