LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1089|回复: 1

grub raid0 ide三硬盘双启动记录

[复制链接]
发表于 2008-5-6 07:18:09 | 显示全部楼层 |阅读模式
看到论坛上grub的配置很多了,我之前没有找到自己的方案,现在写一下,给需要的朋友,我的配置:
athlon64 黑核5000+
2G DDR 800
ati hd2600XT
jetway Ha03
IDE 40G单装了一个ubuntu(三个分区) + 两块sata200G组成的400G raid0(单装了winxp四个分区)
Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf0b1ebb0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5100    40965718+   7  HPFS/NTFS
/dev/sda2            5101       15299    81923467+   7  HPFS/NTFS
/dev/sda3           15300       28048   102406342+   7  HPFS/NTFS
/dev/sda4           28049       48387   163373017+   7  HPFS/NTFS

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x004e0050

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x666a9752

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1        1945    15623181   83  Linux
/dev/sdc2            1946        2188     1951897+  82  Linux swap / Solaris
/dev/sdc3            2189        4865    21503002+  83  Linux
平时启动都是改变bios启动顺序,然后选择第一启动硬盘实现的
然后现在修改下menu.lst可以启动winxp了,不用一直去进bios选择了
贴上menu.lst
## ## End Default Options ##

title                Ubuntu 8.04, kernel 2.6.24-17-generic
root                (hd0,0)
kernel                /boot/vmlinuz-2.6.24-17-generic root=UUID=9d5a8fbe-0ba7-4220-bd16-aa9df5dcb562 ro quiet splash
initrd                /boot/initrd.img-2.6.24-17-generic
quiet

title                Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
root                (hd0,0)
kernel                /boot/vmlinuz-2.6.24-17-generic root=UUID=9d5a8fbe-0ba7-4220-bd16-aa9df5dcb562 ro single
initrd                /boot/initrd.img-2.6.24-17-generic

title                Ubuntu 8.04, kernel 2.6.24-16-generic
root                (hd0,0)
kernel                /boot/vmlinuz-2.6.24-16-generic root=UUID=9d5a8fbe-0ba7-4220-bd16-aa9df5dcb562 ro quiet splash
initrd                /boot/initrd.img-2.6.24-16-generic
quiet

title                Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root                (hd0,0)
kernel                /boot/vmlinuz-2.6.24-16-generic root=UUID=9d5a8fbe-0ba7-4220-bd16-aa9df5dcb562 ro single
initrd                /boot/initrd.img-2.6.24-16-generic

title                Ubuntu 8.04, memtest86+
root                (hd0,0)
kernel                /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

[color="Magenta"]title WindowsXp perfession ****
        map (hd0) (hd1)
        map (hd1) (hd0)
        rootnoverify (hd1,0)
        chainloader +1
makeactive
 楼主| 发表于 2008-5-6 07:21:25 | 显示全部楼层
sudo cat /boot/grub/device.map
(hd0)        /dev/sda   #ide40G
(hd1)        /dev/sdb   #sata200G
(hd2)        /dev/sdc    #sata200G 两个sata组成raid0 装的xp,4个区全部是ntfs
sudo mount
/dev/sdc1 on / type reiserfs (rw,relatime,notail)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-17-generic/volatile type tmpfs (rw)
/dev/sdc3 on /home type reiserfs (rw,relatime)
/dev/mapper/pdc_baahg2 on /media/wind type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
/dev/mapper/pdc_baahg3 on /media/wine type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
/dev/mapper/pdc_baahg4 on /media/winf type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表