Boot My Linux Using Grub

本文介绍了一种使用Live CD和GRUB解决因病毒导致Windows系统损坏后无法启动Ubuntu的方法。通过具体的步骤指导如何重新安装GRUB到主引导记录,实现双系统的正常启动。

Several days ago, there were something wrong with my laptop computer in the result of virus in Windows OS. It's so vexing to solve this problem so I had no choice but to reinstall the OS. However, another issue came out, that is how to boot my Ubuntu, the Linux OS. Right, there are definitely some methods to fix the issue. We can use the software GrubForDos or directly the LiveCD to make it, but the simplest way is the second way, doesn't it?

 

Firstly, we put LiveCD into your CD-ROM drive, and then choose the computer to boot from CD-ROM drive, that's easy! When computer comes into the operating system, we enter "grub" command in the virtual terminal. After that we are using grub application. The concrete commands like the following.

 

sudo su                                        # get root rights
grub                                             # use grub application
find /boot/grub/stage1             # check the partition that the Linux is in
root (hdx,y)                                 # point out the partition that the Linux is in
setup (hdx)                                  # install the grub into the MBRthat is in /dev/hda
quit                                               # quitthe grub application
reboot                                           # reboot the system  

 

The grub will work in the beginning after the computer rebooting, then we would have chance to choose which OS you want to start.

 

The contents of boot.ini file in my Windows are:

I am unable to try/install Ubuntu 22.04 using USB. I use the guideline provided by Ubuntu official website, the USB installer is created using balenaEtcher. I try to boot using the way provided by Lenovo official website (restart and press F12 while having USB plugged in). My laptop is Lenovo 310-14IKB Laptop (ideapad) - Type 80TU, Windows 10. I tried turning off fast startup/ changing boot mode to legacy/changing boot priority from UEFI to legacy/disabling safe booting mode, but none of them works. lenovousb-installation Share Improve this question Follow edited Oct 17, 2022 at 18:03 Pablo Bianchi's user avatar Pablo Bianchi 17.6k55 gold badges9191 silver badges129129 bronze badges asked Apr 30, 2022 at 9:08 Keus's user avatar Keus 9111 gold badge11 silver badge55 bronze badges 2 Please edit your original question to tell us more: Did you check the sha256sum of the iso file (that it was downloaded correctly)? What tool did you use to create the USB installer drive? How did you try to boot into the USB drive? - I see 'noveau' in the output list. It indicates that there is an nvidia graphics chip/card, and I suggest that you try booting with the boot option nomodeset. There is detailed help about it at this link. If that works, you can install a proprietary nvidia graphics driver later on. – sudodus CommentedApr 30, 2022 at 9:21 2 Your edits to the original question indicate that you are doing things correctly. You might check the sha256sum too (check versus the published value), but I am more convinced now, that you have a graphics problem, so please try booting with nomodeset (or simply select 'Ubuntu (safe graphics)' in the grub menu. – sudodus CommentedApr 30, 2022 at 10:03 If still no luck, we need new ideas to test, for example, have you tested with the previous but still supported LTS version Ubuntu 20.04.4? – sudodus CommentedApr 30, 2022 at 10:15 Thank you everyone!!!!!!! I made it! – Keus CommentedApr 30, 2022 at 12:06 Congratulations, and welcome back, if you have other questions in the future :-) – sudodus CommentedApr 30, 2022 at 12:26 Show 1 more comment 4 Answers Sorted by: Highest score (default) 4 Hope my little experience can help anyone using Lenovo laptop in future. I change to using Rufus to create the USB using the GPT option. I disabled the fast startup option but didn't disable the safe booting option. Then I boot the laptop using NOVO button (option 2 in Lenovo official guidelines) instead of using legacy bootmode. And lastly add in the nomodeset option Share Improve this answer Follow answered Apr 30, 2022 at 12:16 Keus's user avatar Keus 9111 gold badge11 silver badge55 bronze badges I have Dell Latitude E6530. I followed using Rufus v 3.20, GPT partition scheme, UEFI (non CSM) target system. Then, boot in UEFI mode (safe graphics) option. And finally! No black screen and I can progress the Ubuntu 22.04 installation. – Joshua T CommentedOct 5, 2022 at 13:32 Add a comment 2 dont use Try install bla bla use Safe GUI bla bla Share Improve this answer Follow answered Aug 17, 2023 at 5:46 Jonry Simbolon's user avatar Jonry Simbolon 2111 bronze badge Add a comment 2 My computer use RTX3090 and RTX2080, show the message the same. I selected Safe Graphic, it worked fine. Share Improve this answer Follow answered Jul 20, 2024 at 12:42 John's user avatar John 2122 bronze badges That was already said in the answers. You have added noting new. Sorry not an answer. – David DE CommentedJul 20, 2024 at 13:44 Add a comment 0 I was firing the USB from terminal command line and I was getting this error. When I switched to BalenaEtcher, in addition to change the USB port and sticker. it worked like a charm!详细解释一下
10-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值