<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>never's blog</title>
  <link rel="alternate" type="text/html" href="http://www.debian.org.hk/blog/never"/>
  <link rel="self" type="application/atom+xml" href="http://www.debian.org.hk/blog/1552/atom/feed"/>
  <id>http://www.debian.org.hk/blog/1552/atom/feed</id>
  <updated>2008-05-22T15:17:20+08:00</updated>
  <entry>
    <title>Debian Lenny in HPT37x RAID1 install</title>
    <link rel="alternate" type="text/html" href="http://www.debian.org.hk/blog-entry/debian-lenny-hpt37x-raid1-install" />
    <id>http://www.debian.org.hk/blog-entry/debian-lenny-hpt37x-raid1-install</id>
    <published>2008-05-14T11:04:39+08:00</published>
    <updated>2008-05-22T15:17:20+08:00</updated>
    <author>
      <name>never</name>
    </author>
    <category term="Debian Testing (Etch)" />
    <category term="Simplified Chinese" />
    <summary type="html"><![CDATA[<p><a href="http://www.lovin.cn/blog/?action=show&amp;id=172">Debian Lenny in HPT37x RAID1 install</a></p>
<p>2008, May 13, 2:55 PM</p>
<p>&nbsp;</p>
    ]]></summary>
    <content type="html"><![CDATA[<p><a href="http://www.lovin.cn/blog/?action=show&amp;id=172">Debian Lenny in HPT37x RAID1 install</a></p>
<p>2008, May 13, 2:55 PM</p>
<p>&nbsp;</p>
<p>安装步骤:<br />
1. Press F1 for help, or ENTER to boot: install dmraid=true (输入的内容)<br />
2. Choose Language: English -&gt; other -&gt; Asia -&gt; China 3. Select a keyboard layout: American English 4. Configure the network: suromail (输入机器名)<br />
5. Configure the network: suro.cn (输入域名)</p>
<p>6. Partition disks: YES<br />
6.1. Pri/Log 160.0 GB FREE SPACE<br />
6.2. Create a new partition<br />
6.3. New partition size: 输入大小 见如下:<br />
&nbsp;- Pri/boot 200MB&nbsp; -&gt; 见第6.4.步, 激活为引导分区<br />
&nbsp;- Pri/ 5GB<br />
&nbsp;- Pri/home 90GB<br />
&nbsp;- Log/var 50GB<br />
&nbsp;- Log/var/log 5GB<br />
&nbsp;- Log/usr 7.8GB<br />
&nbsp;- Log/swap<br />
6.4. Bootable flag on (激活 /boot 为引导分区, 只用一次)<br />
6.5. Done settin up the partition -&gt; Pri/ 5GB (重复第 6.2. )<br />
6.6. Write changes in SATA RAID partitioning (完成之后写到 RAID)<br />
6.7. Partition disks: YES (写到 RAID 前确认一次)</p>
<p>7. Format File System (格式化并mount文系统)<br />
7.1. 197.4MB ext2<br />
7.2. Use as: do not use -&gt; ext3 journaling file system (使用 EXT3) 7.3. Mount point: /boot -&gt; / -&gt; /home -&gt; /var -&gt; /var/log -&gt; /usr 7.4. Done setting up the partition (完成分区)<br />
7.5. 5.0GB ext2<br />
7.6. Use as: do not use -&gt; ext3 journaling file system 7.7. Mount / -&gt; /home -&gt; /var -&gt; /var/log -&gt; /usr ......<br />
7.8. 5.0GB ext2<br />
7.9. Use as: do not use -&gt; ext3 journaling file system 7.10. Mount point: Enter manually -&gt; /var/log (手工输入加载点)<br />
7.11. Done setting up the partition (完成分区)<br />
...<br />
7.12. 2.0GB ext2<br />
7.13. Use as: do not use -&gt; swap area 设为交换分区<br />
7.14. Done setting up the partition (完成分区)<br />
7.15. Finish partitioning and write changes to disk (完成并同步到RAID)<br />
7.16. Write the changes to disks?&nbsp; YES (确认同步到 RAID)</p>
<p>8. Setup users and passwords<br />
8.1. root password: ******* 确认再输入一次<br />
8.2. Full name fo the new user: Qno FAE -&gt; 登陆名 qnofae -&gt; 输入两次密码</p>
<p>9. Configure the paekage manager: CHINA -&gt; debian.cn99.com<br />
&nbsp;- (常州服务器) -&gt; HTTP proxy information [空白, 不用输入内容, 直接回车]<br />
10. Configuring popularity contest: NO (默认为&quot;否&quot;手动更新)<br />
11. Software selection: 按下空格取消第一项桌面环境, 仅[Standard system]</p>
<p>12. Install the GRUB boot loader on a hard disk: NO (选择手, 另外手工安装)<br />
记下 the GRUB root device is: /target/dev/mapper/hpt37x_******x 后面要用到</p>
<p>13. 按下 Alt + F2 切换到第二控制台, 按 ENTER 激活并手工安装引导器(bootloader)<br />
13.1. 输入 chroot /target/<br />
13.2. 输入 bash<br />
13.3. 输入 mkdir /boot/grub<br />
13.4. 输入 cp /usr/lib/gurb/i386-pc/* /boot/grub/ 13.5. 输入 grub 13.6. 输入 device (hd0) /dev/mapper/hpt37x_******<br />
刚刚抄下的内容, 如 hpt37x_dchhhdagfe1<br />
但这里输入是没有数字的, 如hpt37x_dchhhdagfe</p>
<p>13.7. 输入 root (hd0,0)<br />
13.8. 输入 setup (hd0,0)<br />
13.9. 输入 quit<br />
13.10. 输入 update-grub<br />
这里会提示找不到 menu.lst, 问是否创建新的 menu.lst, 输入 Y, 回车</p>
<p>14. 输入 vi /boot/grub/menu.lst<br />
找到 root (hpt37x_dchhhdagfe1)<br />
改为 root (hd0,0)<br />
共改两个地方, 一个为正常启动模式, 另一个为单用户模式<br />
保存 menu.lst 之后输入三个 exit</p>
<p>15. 按下 Alt + F1 回来 Debian install main menu<br />
选 Continue without boot loader 即不安装 bootloader 继续完成后面的步骤</p>
<p>16. 取出CD, 按 Continue, 系统会自动重起, 安装完成.</p>
    ]]></content>
  </entry>
</feed>
