找回密码
 注册
搜索
热搜: 回贴
微赢网络技术论坛 门户 服务器 Linux/BSD 查看内容

在hp dl160上安装amd64的gentoo

2009-12-20 13:50| 发布者: admin| 查看: 95| 评论: 0|原作者: 云忆

安装遇到了一些问题:
1、分区的问题
因为是4块750G硬盘做了个raid0,这样这个raid的大小就有3T,而常用的fdisk工具最大只支持2T的硬盘或分区,必须用parted工具,要改变分区表的格式才能支持超过2T的分区
# parted /dev/cciss/c0d0
parted> mklabel gpt
# 再用命令mkpart分4个区,并给boot分区标注boot标签
parted> toggle 1 boot
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d0: 3000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 500MB 500MB ext2 boot
2 500MB 4597MB 4097MB linux-swap
3 4597MB 1500GB 1495GB ext3
4 1500GB 3000GB 1500GB reiserfs
2、grub安装和启动的问题。
raid下grub不能直接认到hd0,要这样。
grub> device (hd0) /dev/cciss/c0d0
grub> root (hd0,0)
grub> setup (hd0)
还有,在写menu.lst文件时,
title Gentoo Linux 2.6.25-r9 of genkernel
root (hd0,0)
kernel /kernel-genkernel-x86_64-2.6.27-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/cciss!c0d0p3
initrd /initramfs-genkernel-x86_64-2.6.27-gentoo-r7
注意有个感叹号!
详细请看这篇文章:http://blog.tom.com/liuxudong/article/1943.html,不过如果手动编译gentoo的内核似乎就没有这个问题了。







最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 01:33 , Processed in 0.119162 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部