My main virtual machine crashed today. More specifically, the Windows7 host crashed while the VM was transferring files (very slowly) to a flash drive. I'm running Ubuntu 10.04 LTS - Lucid Lynx in VMware (not sure if it is VMware Player, esx, or what. I downloaded it for free about a year ago) as a testing webserver. Now the VM will not boot past the 1st 2-3 lines. Then it does nothing at all. I waited about 30 minutes one time.
Usually it says this:
fsck from util-linux-ng 2.17.2
/dev/sda1: clean, 652189/6373376 files, 14459048/25464832 blocks
One time it said this:
fsck from util-linux-ng 2.17.2
/dev/sda1 has been mounted 27 times without being checked, check forced.
/dev/sda1: clean, 652189/6373376 files, 14459049/25464832 blocks
[Note: aside from the extra line, the only difference is the number of blocks in the numerator]
I have a bunch of custom php code on there. several mysql databases, and I've made lots of tweaks to the system that I would hate to lose.
To get into Recovery mode, I tried pressing and holding the -shift- key while booting up the VM, to no effect. I've also tried pressing -escape- a bunch of times. I've tried this on working VMs and it doesn't work there either. The only install where I get that option is the one I just did an hour ago, and it comes up automatically, without any key presses.
As I mentioned, the host system crashed while the VM was transferring files to a flash drive. The flash drive is special because I created an entry for it in fstab and it's mounted on every boot. The flash drive still works, by the way.
Does anyone know how I can fix this? One positive is that I now have access to the disk through another VM and all the files seem to be fine. Are there any particular files I should look at or modify to fix this?
I'm not sure what happened exactly, but this is what I did and it worked.
/etc/fstab
in the 100GB hard drive and commented out the line that mounted the flash drive as a permanent disk (I'll put the line at the bottom of this post in case it's of any interest to anyone)./etc/fstab
and uncommented the line, just to see what would happen.Conclusion: I'm going to theorize that when the Windows7 host crashed it screwed something up in the relation between VM and flash drive. It seems like commenting the line in
fstab
was enough for the VM to get its bearings, and remounting was not a problem. This is probably a one-in-a-million occurrence but maybe this will help somebody else.Here's the no-longer-offending line in fstab, for reference:
I would assume you are using VMware Player as the question is tagged with it. Here is what to do:
What you are posting about
fsck
is actually good sign. Shows no errors. I suspect if you connect the flash drive as I described you would be able to boot again just fine, without Recovery Mode.