In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to solve The file / boot/grub/stage1 not read cor when linux appears". In daily operation, I believe many people have doubts about how to solve the problem of The file / boot/grub/stage1 not read cor in linux. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt that "linux appears The file / boot/grub/stage1 not read cor how to solve"! Next, please follow the editor to study!
The operating system was reinstalled and grub was overwritten. In order to resume boot, I took a live cd of ubuntu to boot. After entering linux, I went to the command line to restore grub.
First mount the original / partition
Sudo mkdir / mnt/root
Sudo mount / dev/sda7 / mnt/root
Sudo mount-t proc none / mnt/root/proc
Sudo mount-o bind / dev / mnt/root/dev
If you don't know the device name of the / partition, you can check it using sudo fdisk-l.
Use chroot to enter the original / partition
Chroot / mnt/root / bin/bash
Source / etc/profile
Restore grub
Sudo grub-install-no-floppy / dev/sda
Failed, prompt "The file / boot/grub/stage1 not read correctly"
After searching the relevant articles on the Internet, I found that it was caused by a change in the partition, which was related to the files fstab and mtab.
Edit / etc/mtab found that the partition device of / is incorrect. After modifying it, rerun it
Grub-install / dev/sda was successful.
Enter grub after reboot, select linux, and find that the partition cannot be found. Use the e-edit grub option to change the root to the correct partition device.
Then enter the b command to start. If you modify the menu.lst before rebooting, this problem will not occur.
At this point, the study on "how to solve the problem of The file / boot/grub/stage1 not read cor in linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.