jackiechen858
12-06-2004, 06:49 PM
Hi there,
I tried to install knoppix from cd to hd by myself.
my hd partition:
/dev/hda1 /boot
/dev/hda2 swap
/dev/hda3 the knoppix partition
I installed grub on /dev/hda1,
grub.conf :
title Knoppix 1
root (hd0,0)
kernel /boot_knoppix/vmlinuz root=/dev/hda3 lang=us hdc=ide-scsi
initrd /boot_knoppix/miniroot.gz
I did
cp -f /boot/vmlinuz /mnt/hda1/boot/boot_knoppix/vmlinuz
cp -f /cdrom/boot/isolinux/minirt24.gz /mnt/hda1/boot/boot_knoppix/miniroot.gz
cp -Rp /cdrom/* /mnt/hda3
It works fine, I can boot knoppix from hd now.
but then I tried to boot from CD, I found it always running on /dev/hda3, evn if it start from cd.
It first load from cd, then when it run the linuxrc script, it always found the KNOPPIX from /dev/hda3 , so it
mount /dev/hda3 on /cdrom , not i wanted /dev/cdrom on /cdrom
I believe it has something to do with the /proc/cmdline :
ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce quiet BOOT_IM
AGE=knoppix BOOT_IMAGE=linux24
if I boot from hd, the /proc/cmdline:
root=/dev/hda3 lang=us hdc=ide-scsi
do I need to modiy the linuxrc to fix it, or I missed something?
Thanks.
I tried to install knoppix from cd to hd by myself.
my hd partition:
/dev/hda1 /boot
/dev/hda2 swap
/dev/hda3 the knoppix partition
I installed grub on /dev/hda1,
grub.conf :
title Knoppix 1
root (hd0,0)
kernel /boot_knoppix/vmlinuz root=/dev/hda3 lang=us hdc=ide-scsi
initrd /boot_knoppix/miniroot.gz
I did
cp -f /boot/vmlinuz /mnt/hda1/boot/boot_knoppix/vmlinuz
cp -f /cdrom/boot/isolinux/minirt24.gz /mnt/hda1/boot/boot_knoppix/miniroot.gz
cp -Rp /cdrom/* /mnt/hda3
It works fine, I can boot knoppix from hd now.
but then I tried to boot from CD, I found it always running on /dev/hda3, evn if it start from cd.
It first load from cd, then when it run the linuxrc script, it always found the KNOPPIX from /dev/hda3 , so it
mount /dev/hda3 on /cdrom , not i wanted /dev/cdrom on /cdrom
I believe it has something to do with the /proc/cmdline :
ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz nomce quiet BOOT_IM
AGE=knoppix BOOT_IMAGE=linux24
if I boot from hd, the /proc/cmdline:
root=/dev/hda3 lang=us hdc=ide-scsi
do I need to modiy the linuxrc to fix it, or I missed something?
Thanks.