{"id":862,"date":"2019-01-21T11:36:44","date_gmt":"2019-01-21T11:36:44","guid":{"rendered":"http:\/\/www.balajibandi.com\/?p=862"},"modified":"2019-04-21T11:42:52","modified_gmt":"2019-04-21T10:42:52","slug":"mount-linux-lvm2_member","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=862","title":{"rendered":"Mount Linux LVM2_member"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I had issue mounting one of Linux system, lost root Password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Which SET Grub setting as 0, which not give you to enter in to single user mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">here is the steps for recovering.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download  <a href=\"http:\/\/ftp.vim.org\/knoppix\/knoppix-dvd\/CD\/\">KNOPPIX_V7.2.0CD-2013-06-16-EN.iso<\/a><\/li><li> Upload to Esxi one of the Folder where you have access for this ISO to Boot.<\/li><li>Stop the VM<\/li><li>Add ISO Image as CD in to the VM as Show as below.  ( Connect and Power on, Select the ISO Image which was uploaded your folder\/<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"481\" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image.png\" alt=\"\" class=\"wp-image-863\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image.png 678w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-300x213.png 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5. Select Boot Option.<\/p>\n\n\n<p>\n<\/p><p><!--StartFragment--><\/p>\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"374\" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-1.png\" alt=\"\" class=\"wp-image-864\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-1.png 692w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-1-300x162.png 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><figcaption><br><br><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6.  Select Boot Option CD ROM, how you setup in BIOS<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Boot with Live CD and Mount the VM Drive<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8. Login and try below command to scan LVM<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">lvmdiskscan<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\/dev\/ram0             [      64.00 MiB]<br>\n  \/dev\/eve-ng-vg\/root   [      71.52 GiB]<br>\n  \/dev\/ram1             [      64.00 MiB]<br>\n  \/dev\/sda1             [     487.00 MiB]<br>\n  \/dev\/eve-ng-vg\/swap_1 [       8.00 GiB]<br>\n  \/dev\/ram2             [      64.00 MiB]<br>\n  \/dev\/ram3             [      64.00 MiB]<br>\n  \/dev\/ram4             [      64.00 MiB]<br>\n  \/dev\/ram5             [      64.00 MiB]<br>\n  \/dev\/sda5             [      39.52 GiB] LVM physical volume<br>\n  \/dev\/ram6             [      64.00 MiB]<br>\n  \/dev\/ram7             [      64.00 MiB]<br>\n  \/dev\/ram8             [      64.00 MiB]<br>\n  \/dev\/ram9             [      64.00 MiB]<br>\n  \/dev\/ram10            [      64.00 MiB]<br>\n  \/dev\/ram11            [      64.00 MiB]<br>\n  \/dev\/ram12            [      64.00 MiB]<br>\n  \/dev\/ram13            [      64.00 MiB]<br>\n  \/dev\/ram14            [      64.00 MiB]<br>\n  \/dev\/ram15            [      64.00 MiB]<br>\n  \/dev\/sdb              [      40.00 GiB] LVM physical volume<br>\n  1 disk<br>\n  18 partitions<br>\n  1 LVM physical volume whole disk<br>\n  1 LVM physical volume<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">9.<strong> vgchange -ay<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">10.  <strong>lvscan<\/strong><br>    #mount \/dev\/eve-ng-vg\/root \/mnt\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">11. cd \/mnt <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">12. cd etc<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">13 edit the shadow and replace root with below line <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$6$VZ8pSuUs$nqeflNiufg76\/ZzMwn3fJ0eYZ1r4gpan9FYIKASxap94ZuFOPFmCAlkoz2UHpqWr\/Is8biEimDA\/RiL4UIjHM\/<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"982\" height=\"49\" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-2.png\" alt=\"\" class=\"wp-image-866\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-2.png 982w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-2-300x15.png 300w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-2-768x38.png 768w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2019\/04\/image-2-705x35.png 705w\" sizes=\"auto, (max-width: 982px) 100vw, 982px\" \/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now the root password is <strong>master<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">save the file shadown and reboot, make sure you remove the CD from connect on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">happy Labbing !!!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had issue mounting one of Linux system, lost root Password. Which SET Grub setting as 0, which not give you to enter in to single user mode. here is the steps for recovering. Download KNOPPIX_V7.2.0CD-2013-06-16-EN.iso Upload to Esxi one of the Folder where you have access for this ISO to Boot. Stop the VM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-862","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=862"}],"version-history":[{"count":4,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/862\/revisions"}],"predecessor-version":[{"id":869,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/862\/revisions\/869"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}