LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-14-2018, 01:08 PM   #1
hassanbsee2071
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Rep: Reputation: Disabled
Centos 7 grub rescue issue by mondo rescue


Dear All,

I have an issue, I have cloned centos 7 VM with XFS file system in form of iso by mondo rescue. When I boot from that iso ant type nuke to restore machine, centos 7 wont boot. Instead grub rescue appears. Moreover all the portions shown by ls command has unknown file system. I am really stuck here. There is only unknown file system error with grub rescue shell. The ISO takes me to the grub rescue and VM wont boot further. Any help will be much appreciated.
 
Old 12-14-2018, 04:24 PM   #2
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 987

Rep: Reputation: 260Reputation: 260Reputation: 260
Typically a VM is stored as an image file within the file system of the host operating system, not a partition on the drive. If you are running Mondo rescue in live mode, the operating system that the virtual software is installed is not running, therefore the Centos 7 VM is not running also. It will not show a file system when in image file state.

Your best bet is to create a new VM to attemp to repair Centos from there, here's a little insight on what you may need to do.

Are you booting the Mondo rescue ISO from within the virtual software as a boot option for the Centos 7 VM?

Last edited by Brains; 12-14-2018 at 05:07 PM. Reason: Added question
 
Old 12-14-2018, 08:51 PM   #3
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 3,935

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Quote:
Moreover all the portions shown by ls command has unknown file systemd
The grub boot code is probably missing the modules needed to access the filesystem to continue with the booting. Download a live iso then boot the live iso inside the vm to reinstall grub to centos 7
 
Old 12-15-2018, 01:43 AM   #4
hassanbsee2071
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
Typically a VM is stored as an image file within the file system of the host operating system, not a partition on the drive. If you are running Mondo rescue in live mode, the operating system that the virtual software is installed is not running, therefore the Centos 7 VM is not running also. It will not show a file system when in image file state.

Your best bet is to create a new VM to attemp to repair Centos from there, here's a little insight on what you may need to do.

Are you booting the Mondo rescue ISO from within the virtual software as a boot option for the Centos 7 VM?
Yes I am using VMWare workstation. I make new VM and put that ISO to at time of creation of new VM. When I power on this VM and then type nuke. But after reboot there is only grub rescue shell.
 
Old 12-15-2018, 01:28 PM   #5
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 987

Rep: Reputation: 260Reputation: 260Reputation: 260
Well, as the previous poster mentioned, you can boot an ISO of a live CD or Grub rescue as a boot option for the VM that won't boot and attempt to repair Grub. Typically the best ISO to boot would be the Centos ISO originally used to do the installation, most installation ISOs will also have a rescue option, using the original installation media gives best chance of rescue as it will have proper version of packages contained within in case reinstalling packages is required.

With VMWare, you can take snapshots, which can be done after a fresh install. If you need to resort to a previous state such as the day of the installation, resorting to the snapshot works perfectly. As for backup purposes, you just need to copy the entire folder of the VM to a backup medium. So if you have a drive issue, or wish to use the VM on another computer, just copy that folder to the new/other drive and boot it after reinstalling VMWare. This way it will boot properly every time.
 
Old 12-15-2018, 06:02 PM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 3,935

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Is this grub rescue from the iso grub, or an installed systems grub?
 
Old 12-15-2018, 06:16 PM   #7
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 987

Rep: Reputation: 260Reputation: 260Reputation: 260
Super Grub2 and plop are great at loading the kernel thus getting it booted. Super Grub2 may also be able to fix the issue. You can download an ISO of each.
Here is a tutorial on how to attempt fixing the issue from grub rescue mode.

Last edited by Brains; 12-15-2018 at 06:17 PM.
 
Old 12-16-2018, 11:29 PM   #8
hassanbsee2071
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Is this grub rescue from the iso grub, or an installed systems grub?
Mondo rescue made an ISO and during creation of VM I have booted the machine from that ISO after typing nuke to restore old machine, machine becomes rebooted and at the start at grub rescue shell.
 
Old 12-17-2018, 03:42 AM   #9
hassanbsee2071
LQ Newbie
 
Registered: Dec 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Dear Brains and colorpurple21859,

Thank you so much for your reply. Problem becomes temporarily solved, I made an OS with following details:
1) Centos 7 64 bit
2) Separate boot parttion
3) Lvm for root directory and swap.
4) File system ext4

Mondorescue successfully backup-ed and recovered the machine. Mondorescue made an ISO during backed-up process.Then I made new VM in VMware Workstation and used this ISO .Old machine becomes booted from that ISO properly.

Problem:

I adopt the same method on the machine created in XEN. I used Mondorescue which gives me an ISO. Then I used this ISO at the time of creation of new VM in XEN Server. Machine boots from that ISO and then I type nuke but after typing this I am getting this error.
/dev/xvda not exist. Switch to Interactive Mode?Screenshot is attached. I am in big trouble. I have machine in XEN server which I cannot reboot nor take snapshot from XEN utility. I just want to make live clone of this machine otherwise I will be in big trouble. I tried everything ddrescue, dd but didnot succeed. Any help in this regard is much much appreciated.
Attached Thumbnails
Click image for larger version

Name:	mondo_error.png
Views:	25
Size:	10.1 KB
ID:	29207  
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl dependencies issue while installation of Mondo backup rescue LittleMaster Linux - Server 1 11-06-2017 05:14 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 11:56 PM
Mondo rescue cd.. hitesh_linux Linux - General 1 10-24-2004 09:52 AM
Mondo-rescue restore onto system with Win2K Jondalar Linux - General 1 12-04-2003 06:05 AM
Mondo Rescue Problems saintt Linux - Software 1 01-29-2003 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:28 PM.

Main Menu
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration