Using grub command line

Recently, I installed CentOS 5.5 from hard disk with an existing Windows 7.
During my daily operation, I accidently damaged CentOS. So I need to reinstall
CentOS. But my desktop does have a CD-ROM driver. Ant it does not support USB
boot. So I need to hard disk installation for CentOS. Unfornately, the grub menu
does not show Windows 7 during booting. So I manually boot Windows 7 with grup.
Here is how I have done it. Type c when the grub menu shows up. The time
count-down stops, type c again. The grub command line shows up. Type the
following grup commands:

rootnoverify (hd0,0)
chainloader +1
boot

After done it, Windows 7 will boot. Note there is no space in (hd0,0).
Otherwise, device string errors will show up.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Command Line Fundamentals: Learn to use the Unix command-line tools and Bash shell scripting By 作者: Vivek N ISBN-10 书号: 178980776X ISBN-13 书号: 9781789807769 出版日期: 2018-12-24 pages 页数: (314) The most basic interface to a computer—the command line—remains the most flexible and powerful way of processing data and performing and automating various day-to-day tasks. Command Line Fundamentals begins by exploring the basics, and then focuses on the most common tool, the Bash shell (which is standard on all Linux and iOS systems). As you make your way through the book, you’ll explore the traditional Unix command-line programs as implemented by the GNU project. You’ll also learn to use redirection and pipelines to assemble these programs to solve complex problems. By the end of this book, you’ll have explored the basics of shell scripting, allowing you to easily and quickly automate tasks. Contents What You Will Learn Use the Bash shell to run commands Utilize basic Unix utilities such as cat, tr, sort, and uniq Explore shell wildcards to manage groups of files Apply useful keyboard shortcuts in shell Employ redirection and pipes to process data Write both basic and advanced shell scripts to automate tasks Authors Vivek N Vivek N is a self-taught programmer who has been programming for almost 30 years now, since the age of 8, with experience in X86 Assembler, C, Delphi, Python, JavaScript, and C++. He has been working with the command line since the days of DOS 4.01 and is keen to introduce the new generation of computer users to the power it holds to make their life easier.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值