Author |
Message |
sinspot1
|
Posted: Thu Jun 15, 2006 12:17 am |
|
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
|
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.
_________________ Marty
Long live Myth and Knoppmyth!!!!!
|
|
Top |
|
 |
mac
|
Posted: Thu Jun 15, 2006 1:02 am |
|
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location:
Dushanbe, Tajikistan
|
maybe a bit backgound would help so that we knew why, will the system not boot with the installed kernel?
|
|
Top |
|
 |
sinspot1
|
Posted: Thu Jun 15, 2006 7:48 am |
|
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
|
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.
_________________ Marty
Long live Myth and Knoppmyth!!!!!
|
|
Top |
|
 |
mac
|
Posted: Thu Jun 15, 2006 8:43 am |
|
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location:
Dushanbe, Tajikistan
|
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.
|
|
Top |
|
 |
sinspot1
|
Posted: Thu Jun 15, 2006 9:15 pm |
|
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
|
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.
_________________ Marty
Long live Myth and Knoppmyth!!!!!
|
|
Top |
|
 |
Xsecrets
|
Posted: Fri Jun 16, 2006 1:06 pm |
|
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location:
Nashville, TN
|
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.
_________________ Have a question search the forum and have a look at the KnoppMythWiki.
Xsecrets
|
|
Top |
|
 |
sinspot1
|
Posted: Fri Jun 16, 2006 2:43 pm |
|
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
|
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
_________________ Marty
Long live Myth and Knoppmyth!!!!!
|
|
Top |
|
 |
Xsecrets
|
Posted: Fri Jun 16, 2006 2:53 pm |
|
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location:
Nashville, TN
|
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.
_________________ Have a question search the forum and have a look at the KnoppMythWiki.
Xsecrets
|
|
Top |
|
 |
sinspot1
|
Posted: Fri Jun 16, 2006 5:52 pm |
|
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
|
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
_________________ Marty
Long live Myth and Knoppmyth!!!!!
|
|
Top |
|
 |
sinspot1
|
Posted: Mon Jun 19, 2006 6:16 pm |
|
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
|
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.
_________________ Marty
Long live Myth and Knoppmyth!!!!!
|
|
Top |
|
 |