Hey, I've been trying to move my install to my hdb since this, I've edited etc fstab correctly, but I can't seem to get my linuxrc in initrd.gz edited correctly, If anyone knows what to do please let me know.
What I'm trying to do is leave it booting from linuxboot.cfg on the e: drive unlike a native install but without a rootfs, I've already eliminated my swap file as you can obviously see from the fstab, I'm using hdb2 for swap and it works perfectly, I just need to be able to load from the other hardrive so I can eliminate rootfs on the e: partition.Here is my fstab and origional linuxrc and what I've tried so far. I copied everything from rootfs over to hdb1 and fstab works fine, but I can't get the linuxrc to work.
fstab
CODE |
# /etc/fstab: static file system information. # # /dev/hdb1 / reiserfs defaults,errors=remount-ro 1 1 /dev/loop/0 /mnt/loop0 reiserfs defaults,errors=remount-ro 0 0 proc /proc proc defaults 0 0 /dev/cdrom /mnt/cdrom iso9660 defaults,ro,user,noauto 0 0 /dev/hdb2 none swap sw 0 0 #/mnt/fatx/e/swap none swap sw 0 0
/dev/hda51 /mnt/fatx/c fatx defaults,noauto=0000 0 0 /dev/hda50 /mnt/fatx/e fatx defaults,umask=0000 0 0 /dev/hda55 /mnt/fatx/f fatx defaults,umask=0000 0 0
|
linuxrc
CODE |
#!/bin/sh -x ### # Gentoox initrd # Copyright (C) Thomas "ShALLaX" Pedley ([email protected]) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ###
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/ export PATH
umask 022
mount -t proc none /proc mount -t devpts none /dev/pts echo 0x100 > /proc/sys/kernel/real-root-dev
mkdir -p /cdrom /ram /proc
insmod /lib/modules/`uname -r`/fat.o insmod /lib/modules/`uname -r`/fatx.o
mount mount -t fatx /dev/ide/host0/bus0/target0/lun0/part50 /cdrom mount -o loop /cdrom/rootfs /ram
# Switch roots and run init cd /ram pivot_root . initrd /etc/init.d/devfsd start #/sbin/hdparm -d 0 /dev/hda if [ ! -p /dev/initctl ] then rm -f /dev/initctl mknod -m 600 /dev/initctl p fi kill -USR1 1
umount -n /initrd/proc >/dev/null 2>&1 #exec chroot . /sbin/init dev/console 2>&1 exec chroot . sh -c 'umount -n /initrd >/dev/null 2>&1;\ exec -a init.new /sbin/init 2'\ dev/console 2>&1
|
tried
CODE |
mount mount -t fatx /dev/ide/host0/bus0/target0/lun0/part50 /cdrom mount -t reiserfs /dev/ide/host0/bus0/target1/lun0/part1 /ram
|
tried
CODE |
mount mount -t reiserfs /dev/ide/host0/bus0/target1/lun0/part1 /ram #mount -t reiserfs /dev/ide/host0/bus0/target1/lun0/part1 /ram
|
I get kernel panic /dev/console doesn't exist or something like that.