﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-心有灵兮'blog-文章分类-linux</title><link>http://www.blogjava.net/cugdingqiong/category/22693.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 30 May 2007 13:39:58 GMT</lastBuildDate><pubDate>Wed, 30 May 2007 13:39:58 GMT</pubDate><ttl>60</ttl><item><title>用windows系统的ntloader引导linux启动 </title><link>http://www.blogjava.net/cugdingqiong/articles/119207.html</link><dc:creator>心有灵兮</dc:creator><author>心有灵兮</author><pubDate>Tue, 22 May 2007 11:04:00 GMT</pubDate><guid>http://www.blogjava.net/cugdingqiong/articles/119207.html</guid><wfw:comment>http://www.blogjava.net/cugdingqiong/comments/119207.html</wfw:comment><comments>http://www.blogjava.net/cugdingqiong/articles/119207.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/cugdingqiong/comments/commentRss/119207.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/cugdingqiong/services/trackbacks/119207.html</trackback:ping><description><![CDATA[<span style="COLOR: #ff0000">一 linux中硬盘和分区的表示</span> <br><br>在Linux下，硬盘是这样标识的，第一块硬盘是hda，第二块硬盘是hdb，依次类推。第一个硬盘的第一个分区是hda1，第二个是hda2，扩展分区中包含了逻辑分区，逻辑分区也是有编号的，例如hda4。<br><br><span style="COLOR: #ff0000">二 引导信息的安装位置。</span><br><br>有两种可选方案，一种是安装在硬盘的主分区，即是通常所说的MBR，另外就是安装在Linux的主分区的引导区，没有必要把grub或lilo装在MBR，装在linux自己的引导区就好了。<br><br>若利用ntloader引导linux启动（没有安装grub或lilo在mbr），安装windows完成启动后ntloder中是看不到Linux的，不过这没有关系，看下面的步骤：<br><br><span style="COLOR: #0000ff">1、首先要登录Linux，有三种方式：</span><br><br>A：从安装盘的dosutils目录下拷贝这几个文件：loadlin.exe和vmlinuz到C盘下（前提是你的C盘不是ntfs格式），启动到Dos，运行：<br>loadlin.exe vmlinuz root=/dev/hda? ro?<br>说明：命令行中的hda?指的是安装Linux的分区名称。<br>回车即可进入linux<br><br>B:使用安装光盘启动机器，在出现Boot的时候，打入：<br>linux vmlinuz root=/dev/hda? ro<br>说明：命令行中的hda?指的是安装Linux的分区名称。<br>回车即可进入Linux<br><br>C:用linux的启动盘<br><br><span style="COLOR: #0000ff">2、使用Windows的ntloder引导Linux<br></span>首先，在linux下mount C盘：<br>mkdir /mnt/winc<br>mount -t vfat /dev/hda? /mnt/winc -o iocharset=cp936<br>说明：命令行中的hda?指的是安装Windows的分区名称。<br>然后执行：<br>dd if=/dev/hda? of=/mnt/winc/linuxboot.lnx bs=512 count=1<br>说明：命令行中的hda?指的是安装Linux的分区名称。<br><br><span style="COLOR: #0000ff">3、编辑/mnt/winc/boot.ini,加入下面一行：</span><br>c:\linuxboot.lnx="Linux(随便什么都行)"<br>存盘，重新启动，可以看到Windows的启动列表中有了一个Linux的选项，选择它就进入Linux了。<br><br>可以到Dos环境执行：fdisk /mbr然后重新安装grub或lilo，就可以用它们引导windows了。 
<img src ="http://www.blogjava.net/cugdingqiong/aggbug/119207.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/cugdingqiong/" target="_blank">心有灵兮</a> 2007-05-22 19:04 <a href="http://www.blogjava.net/cugdingqiong/articles/119207.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>