LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > number22
User Name
Password

Notices


Rate this Entry

Recover from hard drive MBR corruption with LVM/LUKS partitions

Posted 11-12-2015 at 09:05 AM by number22
Updated 11-12-2015 at 09:08 AM by number22

Using latest version boot cd or usb rescue disk, which is created by usbboot.img from cd or ftp.slackware.com

create usbboot.img with dd command.(#dd if=usbboot.img of=/dev/sdb bs=1M) (clear usb disk #dd if=/dev/zero of=/dev/sdb bs=512).

once boot up:

# cryptsetup luksOpen /dev/sdxx luksname (sdxx your encrypted luks partition)

After successful enter password:

#vgscan --mknodes
#vgchange -ay
#mount /dev/cryptvg/root /mnt
before change root, you can modify any files necessary in /mnt/ directory; such as /mnt/etc/lilo.conf

#chroot /mnt
#mount /dev/sda1 /boot (assume your boot partition is /dev/sda1)
#lilo

reboot.
Posted in Uncategorized
Views 2243 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration