分页: 1 / 2
Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 15:44
由 relaxssl
4块SCSI硬盘,按照步骤设置好了Raid0之后,接下来安装,一直到“Install the GRUB boot loader on a hard disk"这一步出错,如图所示,然后我继续安装,continue to install without grub boot. 安装完了之后重启,光标就在黑黑的屏幕上闪,没有任何提示,也不知道如何进入命令界面,请指点
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 15:47
由 oneleaf
手工安装grub试试?
使用 root() 和 setup() 来安装。
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 15:56
由 relaxssl
To fix a non-bootable system and ensure GRUB is installed on both drives, manually install GRUB as follows:
* Reboot the machine from the original Linux CDROM
* From the Linux boot menu, select “Rescue a broken system”
* Continue through the prompts until the screen “Device to use as a root file system” appears
* Press Alt-F2 to switch to a second console screen then press Enter to activate it.
* Mount the md0 RAID device and use chroot and grub to install the bootloader onto both sda and sdb using the following commands
mount /dev/md0 /mnt
chroot /mnt
grub
device (hd0) /dev/sda
root (hd0,0)
setup (hd0)
device (hd1) /dev/sdb
root (hd1,0)
setup (hd1)
quit
* Reboot the system with command “shutdown -r now”, remove the CDROM and allow the system to boot from the hard drive.
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 15:57
由 relaxssl
I followed the instructions on "Setting up software RAID in Ubuntu Server" (posted on April 24th, 2007 by Derrick Webber at the advosys.ca site) and created RAID1 with 2 hard disks. The Ubuntu 8 Server system are installed on RAID1 and rebooted successfully. But when I tried to load the GRUB boot loader onto the second disk with these steps,
--
* Reboot the server from the original Ubuntu Server CDROM
* From the Ubuntu boot menu, select “Rescue a broken system”
* at the screen “Device to use as a root file system” appears
* Press Alt-F2 to switch to a second console screen then press Enter to activate it.
* then the following commands.
I received an error:
mount /dev/md0 /mnt
chroot /mnt
grub
device (hd0) /dev/sd
Error: Device not found.
device (hd1) /dev/sdb
Error: Device not found.
--
Can anyone help?
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 15:58
由 relaxssl
Quote:
Originally Posted by weiyuanw View Post
I received an error:
mount /dev/md0 /mnt
chroot /mnt
grub
device (hd0) /dev/sd
Error: Device not found.
device (hd1) /dev/sdb
Error: Device not found.
--
Can anyone help?
I also came accross this very problem. The reason is that you are missing /dev/sda and /dev/sdb entries. Just make them with mknod and you are all set. The syntax is:
mknod /dev/sda b <major> <minor>
mknod /dev/sdb b <major> <minor>
Copy the <major> and <minor> from your rescue's system /dev directory.
Last edited by Robert_SK; 08-22-2008 at 04:36 PM..
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 16:03
由 oneleaf
忽略掉这个试试? device (hd0) /dev/sda
或 sudo fdisk -l 看看所有的分区?
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 16:10
由 relaxssl
oneleaf 写了:手工安装grub试试?
使用 root() 和 setup() 来安装。
可是对于raid0的手动安装好像不是那么简单,到底安装到哪个盘?是全部盘都安装一个?有没有更具体点的步骤呢?
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 16:15
由 oneleaf
hd0,即可。你使用的是软阵列,我一般的做法是单独分一个/boot 位于 /dev/sda 再在 /dev/sdb 上划出交换分区 ,再将两个硬盘上剩下的分区作成md,这样就不会有任何问题。
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 18:40
由 relaxssl
oneleaf 写了:忽略掉这个试试? device (hd0) /dev/sda
或 sudo fdisk -l 看看所有的分区?
# sudo fdisk -l
cannot open /proc/partitions
郁闷了,在alt+f2之前没有仔细看各个磁盘和分区,现在遇到这个错误,有什么方法解决?
另外,我果然遇到和前人遇到的相同问题:
grub> device (hd0) /dev/sda
Error 15: File not found
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 19:12
由 relaxssl
[Enter rescue mod]
Enter a device you wish to use as your root file system. You will be able to choose among various rescue operations to perform on this file system.
Device to use as root file system:
/dev/sda1
/dev/sda2
/dev/sda5
/dev/sdb1
/dev/sdb2
/dev/sdb5
/dev/sdc1
/dev/sdc2
/dev/sdc5
/dev/sdd1
/dev/sdd2
/dev/sdd5
/dev/md0
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 19:15
由 relaxssl
I also came accross this very problem. The reason is that you are missing /dev/sda and /dev/sdb entries. Just make them with mknod and you are all set. The syntax is:
mknod /dev/sda b <major> <minor>
mknod /dev/sdb b <major> <minor>
搜索网络,找到别人遇到相同错误的解决方法,从我上面的截图,对应这里的<major><minor>到底是什么?
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 19:41
由 yaoms
代码: 全选
mknod /dev/sda b 8 0
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 19:43
由 relaxssl
iNutshell> helloyl: 我的 sda 是 8,0
<iNutshell> helloyl: 我的 sda 是 8 0
<helloyl> 8 0是如何查出来的呢
<iNutshell> helloyl: ls -l /dev/sda
<iNutshell> helloyl: 可以看到
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 19:45
由 relaxssl
yaoms 写了:代码: 全选
mknod /dev/sda b 8 0
这个8 0是怎么得来的呢?是不是用
Re: Software Raid0安装到Grub boot loader的时侯失败
发表于 : 2008-12-23 19:47
由 relaxssl
# ls -l /dev/sda
brw-rw---- 1 root root 8, 0 Dec 23 10:54 /dev/sda