VMware fixes Ubuntu can’t start problem

Recently I installed Ubuntu10.10 in the VMware virtual machine, installed and configured Eclipse + Android SDK, but could not start after modifying the system configuration parameters, so I had to start the original system through the iso installation file to repair it, and record this process for later use.

The repair steps are as follows:

1、 In the VMware virtual machine, press Ctrl+D to open "Virtual Machine Settings", in "Hardware" ——" "CD/DVD (IDE)", select "Use ISO image file" in "Connection", select Ubuntu iso installation File, "ok"

2、 Restart the virtual machine, press the F2 key when the "VMware" text is displayed, enter the "Boot Menu", select "Enter Setup"-"Boot", and set "CD-ROM Drive" as the first boot item ( Ctrl + "+" or Ctrl + "-" to adjust the up and down order), press F10 to save and restart.

3、 After the system restarts, start with the iso file, select the language "English", select "Try Ubuntu without installing", and enter the system.

4、 Open the terminal and enter sudo su to switch to root user;

Enter fdisk -l to see which primary partition is (the one with *asterisk), as shown in the figure below is sda1

Enter the following command to mount the system that could not be started to the current system;

mount /dev/sda1 /mnt

{ mount --bind /proc /mnt/proc

mount --bind /dev /mnt/dev

mount --bind /sys /mnt/sys} can be omitted

Enter chroot /mnt to enter the original system, you can enter the /home directory to confirm

5、 Same operation as the original system

If you know that the original system cannot enter because of grub damage, then perform grub repair in this step. The specific commands are as follows

grub-install --root-directory=/mnt /dev/sda (not tried)

6、 Modify the disk mounted before uninstallation

exit exit chroot

umount /mnt

7、 Restart, change the startup item to hard disk startup (method as step 2), OK.

**Reference recommendation: **Fix the problem that Ubuntu cannot start after compiling the kernel in VMware virtual machine

Restore environment variables in ubuntu under VMWare

Recommended Posts

VMware fixes Ubuntu can’t start problem
Start working under ubuntu
Install VMware Tools in Ubuntu 18.04