Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to boot from grub rescue

ls
# This will list all your devices

# Then you have to go through each, type something like this (depends on what is shown by the ls command):
ls (hd0,1)/
ls (hd0,2)/
# ... and so on, until you find:
(hd0,1)/boot/grub OR (hd0,1)/grub
# ... or, in case of "UEFI", it look something like:
(hd0,1)/efi/boot/grub OR (hd0,1)/efi/grub

# Now you have to set the boot parameters accordingly - just type the following (with the correct numbers for your case) and after each line press return:
set prefix=(hd0,1)/grub
# ... or (if grub is in a sub-directory):
set prefix=(hd0,1)/boot/grub

# Then continue with
set root=(hd0,1)
insmod linux
insmod normal
normal

# Now it should boot. Go to the commandline (e.g. start a "terminal") now, and execute:
sudo update-grub
# ... this should correct the missing information and it should boot next time.

# If NOT - you have to go through the steps again an might have to repair or install grub again.
Comment

PREVIOUS NEXT
Code Example
Shell :: Install the postgres CLI tools 
Shell :: java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_VERSION_DOWNGRADE: Package Verification Result 
Shell :: cmd to find find file 
Shell :: vscode manually install extension 
Shell :: ssh config only key 
Shell :: wpa_supplicant connect to wifi 
Shell :: how to commit files in github 
Shell :: how to scp from vm to local 
Shell :: git deleted files update 
Shell :: save command output 
Shell :: how to compress files in powershell 
Shell :: run url in pip 
Shell :: react redux install 
Shell :: react native cannot load 
Shell :: how to pass docker hub credentials for k8s pods 
Shell :: create file linux 
Shell :: find resolution of image terminal linux 
Shell :: install a package that is not in conda 
Shell :: create a batch file from batch file 
Shell :: jenkinsfile run curl in a function 
Shell :: mount is fstab 
Shell :: selinux 
Shell :: get files with name linux 
Shell :: npm install from git 
Shell :: chmod command 
Shell :: linux install software 
Shell :: force push to remote branch 
Shell :: print file size in mb linux 
Shell :: merging a branch to master 
Shell :: how to use nano command in linux 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =