|
今天很高兴我在移动硬盘上安装了magic linux 2.0。
移动硬盘:三星40G+星博的壳
引用:http://www.chinalinuxpub.com/bbs/showthread.php?t=47606
谢谢sinofool !!!!!!!!!!!!!!!!!!!!!!!!!
安装步骤:
1.我先是安装的redflag4.1因为它在安装时直接能安装到移动硬盘上。
2.把我硬盘上的magic linux传到移动硬盘原来redflag4.1的区上(我把原来的文件
放在一个文件夹下了)
3.按做initrd文件
××××××××××××××这是原来magic linux 2.0 的ini文件***************
#!/bin/nash
mount -t proc /proc /proc
setquiet
echo Mounted /proc filesystem
echo Mounting sysfs
mount -t sysfs /sys /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs /dev /dev
mknod /dev/console c 5 1
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mkdir /dev/pts
mkdir /dev/shm
echo Creating device nodes
echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
makedevs
makedevs
echo Creating root device
mkrootdev /dev/root
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root /sysroot
echo Switching to new root
switchroot --movedev /sysroot
*****************magic linux 2.0的原文件结束**********************
*****************下面是最终我改过的文件***********************
#!/bin/nash
mount -t proc /proc /proc
setquiet
echo Mounted /proc filesystem
echo Mounting sysfs
mount -t sysfs /sys /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs /dev /dev
mknod /dev/console c 5 1
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mkdir /dev/pts
mkdir /dev/shm
echo Creating device nodes
#The after line were added by hail
/sbin/udevstart
#The before line were added by hail
echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
#the after lines were added by hail
echo "***Loading scsi************************************************************"
insmod /lib/scsi_transport_spi.ko
insmod /lib/scsi_transport_fc.ko
echo "****Loading usb-storage **************************************************"
insmod /lib/usb-storage.ko
echo "****Loadin usb-uhci(ehci-hcd.ko)******************************************"
insmod /lib/ehci-hcd.ko
echo "wait 15 seconds for init UsbDisk*******************************************"
/bin/sleep 15
/sbin/udevstart
#the before lines were added by hail
#makedevs
#makedevs
echo Creating root device
mkrootdev /dev/root
#The after lines were added by hail
echo "****Reread partition table *************************************************"
/sbin/sfdisk -R /dev/sda
#The before lines were added by hail
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root /sysroot
echo Switching to new root
switchroot --movedev /sysroot
********************最终文件结束*************************
4.在menu.lst中加入
title MagicLinux Boot from USBDisk
root (hd0,5)
kernel /boot/vmlinuz-2.6.12.3 ro root=/dev/sda6
initrd /boot/USBDisksda6.img
总结:
有一些细节请看http://www.chinalinuxpub.com/bbs/showthread.php?t=47606
我在朋友的机器上试过了能启动就是显卡有问题。
5。其它问题:在试过三台机器有一个华硕的k8机器就是起不来。直接到grub的shell中就不走了(好像没有找到menu.lst,只是把移动硬盘的mbr启动)。其它两台都 能选择menu.lst的内容并顺利启动。不知是为什么。请高手指点。
6.你们如果装的时候可以不必装redflag.用dd把grub传到MBR中也可以!!
(因为当时我的机器是4.51的bios 没有usb-hdd)
7.感谢。网友的文章!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
感谢我的兄弟让我多少在他的机器上试验。谢谢了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!! |
|