LinHES Forums http://forum.linhes.org/ |
|
tring to install new kernal http://forum.linhes.org/viewtopic.php?f=11&t=10491 |
Page 1 of 1 |
Author: | sinspot1 [ Thu Jun 15, 2006 12:17 am ] |
Post subject: | tring to install new kernal |
I am tring to install a new kernal right after the setup copies to the hard drive and before the reboot. It tell me that it cann't find the unmount command. Does anyone know the best way to install a new kernal in knoppmyth before it is fully up and running. I have the kernal download and burned onto a cd I just need to get it copied to the server. |
Author: | mac [ Thu Jun 15, 2006 1:02 am ] |
Post subject: | |
maybe a bit backgound would help so that we knew why, will the system not boot with the installed kernel? |
Author: | sinspot1 [ Thu Jun 15, 2006 7:48 am ] |
Post subject: | |
fair enough. I am using a new 3ware raid controller 9590SE and the drivers are suppose to in the kernal since 2.6.14 and the turn version of knoppmyth is using 2.6.15 However I am getting a kernal panic and the reboot after the install so I was thinking that the driver may not fully be there. So I wanted to try and load a new kernal at boot up to see if that would help I was going to try and load 2.6.20. Thanks for the help. |
Author: | mac [ Thu Jun 15, 2006 8:43 am ] |
Post subject: | |
Just installing the new kernel is not going to help you if the support for raid card is not compiled in. There is support in the existing kernel. 2.6.15 in for form a module. ie. 3w-9xxx.ko boot your install disk and drop out to prompt (no need to reinstall) mount your filesystem under /mnt. If you can't mount it then load the raid module first with "modprobe 3w-9xxx.ko" then: cd /mnt/boot/ mkdir lb gunzip initrd.gz mount -o loop initrd lb cd lb cp /lib/modules/2.6.15-chw-2/kernel/drivers/scsi/3w-9xxx.ko modules/ nano linuxrc then add "insmod /modules/3w-9xxx.ko" at line 2. and make sure that it is mounting the correct filesystem at about line 7. save and exit -- cd .. umount lb gzip initrd lilo -r /mnt === I am going to be away from home for the next two weeks and doubt that I'll have computer access -- so maybe someone else can follow up if you get hung up -- though it should be fairly easy. |
Author: | sinspot1 [ Thu Jun 15, 2006 9:15 pm ] |
Post subject: | |
ok. I think I am close just a couple of things...... I mount my drive as /mnt/sda1 but then when I go to do the "cd /mnt/boot/" it is not there. So I thought maybe I was just to go under my drive and then to the boot directory so I did cd /mnt/sda1/boot and went on. I did a vi on linuxrc then add "insmod /modules/3w-9xxx.ko" at line 2. #!/static/sh mount -t proc proc /proc insmod /modules/3w-9xxx.ko echo 256 > /proc/sys/kernel/real-root-dev umount /proc mount -t ext3 /dev/sda1 /mnt /static/prvot_root /mnt /mnt/initrd when I get to the "lilo -r /mnt" I get the error "warning: root at /mnt has no /dev directory /etc/lilo.conf: no such file or directory" when I reboot I am still getting the /linuxrc: out of file descriptors /etc/init: out of file descriptors Kernel panic - not syncing: attempted to kill init. If some could tell where things are going wrong that would be great. I ok with Linux but not as good as I wish I was. I kind of see what is going on but don't know enough to see where my error is. Thanks again for the help. |
Author: | Xsecrets [ Fri Jun 16, 2006 1:06 pm ] |
Post subject: | |
it would make sense that /mnt/boot is not there if you mounted at /mnt/sda1 it would be at /mnt/sda1/boot It might make things easier if after you mount then you do chroot /mnt/sda1 then act like you are in the running system so boot stuff would be at /boot as long as you were chrooted. |
Author: | sinspot1 [ Fri Jun 16, 2006 2:43 pm ] |
Post subject: | |
ok. I think that is help I have now gotten the the last step where I type in lilo -r /mnt I get this message Warning: root at /mnt has no /dev directory /etc/lilo.conf: No such file or directory which doesn't make since because there in under /sda1/etc there is not one under / then going under etc I have double check everything else I have the file under the /modules direcotry if I unzip the initrd again. So I think if I can just get the last command to run to update lilo I should be good. Thank again for the help |
Author: | Xsecrets [ Fri Jun 16, 2006 2:53 pm ] |
Post subject: | |
if you have chrooted you simply need to type lilo or lilo -v you do not need to enter any other switches or any path information. |
Author: | sinspot1 [ Fri Jun 16, 2006 5:52 pm ] |
Post subject: | |
when I do lilo fron the chroot prompt I get Fatal: open /dev/sda: permission denied and just to make sure I am doing it right I entered chroot /dev/sda1 and then get a prompt of sh-3.00# Thanks again for the help |
Author: | sinspot1 [ Mon Jun 19, 2006 6:16 pm ] |
Post subject: | |
just an update I got it to work. Had to search some just linux forums on the error message and found a post on how to do it. With a couple of adjustments for my setup I was able to get it to work. I would like to thank the 2 people who posted and helped me out. Thank you again. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |