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