how to use appl of one image in another
I have installed RH8.0 in my system.
Then I have downloaded the linux kernel 2.4.18 and configured it and compiled it to get new image.
when I boot into the new image, Iam unable to use the applications of the original image.(like Xwindows)
How can I access the packages which were installed with the original image in the newly created image?
ravikumar
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 10 lines · Ravi Kumar Munnangi
I have installed RH8.0 in my system.
Then I have downloaded the linux kernel 2.4.18 and configured it and compiled it to get new image.
when I boot into the new image, Iam unable to use the applications of the original image.(like Xwindows)
How can I access the packages which were installed with the original image in the newly created image?
As a *general* matter, changing the kernel image you are using should not affect your ability to run applications. Particular applications may be incompatible with particular kernels, because they rely on features (drivers, or even core capabilities) not present in the kernel you are currently running.
X (or X Window, not "Xwindows") can fall into this category, if you are using an X deiver that depends on finding kernel framebuffer support for it. If that is what you are encountering, you fix it by compiling in the appropriate framebuffer support.
But I offer that only as an example of a specific problem that a kernel and a particular app may have. (Networking apps ... DHCP clients, ip (iproute2), iptables, and netstat, to name a few specifics ... are another common example, as they often rely on very specific networking options being compiled in the kernel.)
To get real help, you will need to explain what you mean by "unable to use" and be more clear about what applications are involved (I don't know what you consider to be "like Xwindows", so I can only answer about that actual application).
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
I have installed RH8.0 in my system.
Then I have downloaded the linux kernel 2.4.18 and configured it and compiled it to get new image. I have used the old configuration(make oldconfig) with my RH8.0(2.4.18-14).
when I boot into the new image,I have observed the following things form the /var/log/boot.log
sshd:starting sshd
sshd:execvp:no such file or directory
sshd:failed
rc:starting sshd:failed
rpc.yppasswdd:execvp:no such file or directory
yppasswdd:rpc.yppasswdd startup failed
gpm:execvp:no such file or directory
gpm:gpm startupj failed
httpd:execvp:no such file or directory
httpd:startup failed
crond:execvp:no such file or directory
crond:startup failed
rc.sysinit:mounting proc filesystem succeeded
sysctl:net.ipv4.ip_forward=0
net.ipv4.conf.default.rp_filter=1
net.ipv4.kernel.core_user_pid=1 rc.sysinit:configuring kernel parameters:succeeded mount:mount:mount point /proc/bus/usb does not exist
rc.sysinit:mounting usb filesystem:failed
modprobe:can't locate module hid
Initaialising USB HID interface:failed
modprobe:can't locate module keybdev
Initialising USB keyboard failed
modprobe:can't locate module mousedev
Initialising USB MOUSE :failed
mount:mount fs type ext3 not supported by kernel Mounting local filesystems :failed updfstab:execvp: no such file or directory
kudzu: updating /etc/fstab failed iptables:modprobe
iptables:failed
iptables:can't locate module ip-tables iptables:perhaps iptables or your kernel needs to be
upgraded
Also, the output of the command df ,
shows that all my partitions are of type ext3.
Iam also unable to see the files or directories of
home,misc,nfshome,initrd,opt,usr partitions while Iam able to see the files of root partition.
Is it because I have specified in the /etc/lilo.conf as
"root=/dev/hda1"
Its not booting when I have given the option,
append="root=LABEL=/"
When my original image(RH8.0) is booting and working
fine with this configuration and append="root=LABEL=/"
in lilo.conf,
why is my new image not working ?
please think over this!!!!!!!!!
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
This report is far too incomplete to get a good response. First of all, your earlier message asked about applications "like Xwindows", and the ones you list here neither include X nor are similar to it in any interesting way I can think of.
Second, selected, context-free log output gives a troubleshooter almost nothing to go on.
Specific comments interspersed below.
Quoted 6 lines · Ravi Kumar Munnangi
I have installed RH8.0 in my system.
Then I have downloaded the linux kernel 2.4.18 and configured it and compiled it to get new image. I have used the old configuration(make oldconfig) with my RH8.0(2.4.18-14).
I don't quite follow the description of this procedure. It is unclear what the relation between your old kernel and new kernel is, where you got the new kernel source from, and whether you followed the complete procedure for compiling a kernel (as outlined in /usr/src/linux/README). For *example*, after compiling the kernel, did you do both "make modules" and "make modules_install"?
Quoted 7 lines
when I boot into the new image,I have observed the following things form the
/var/log/boot.logsshd:starting sshd
sshd:execvp:no such file or directory
sshd:failed
rc:starting sshd:failed
This message, and the ones that follow, indicate that the various programs cannot find the library call execvp. Why? Hard to say from what you've told us. To investigate, try running "ldd /usr/sbin/sshd" and see if any of the references to libraries are dangling. If one is, that is the source of your problem.
The same procedure applies to the rest of these.
But a real possibility (based on messages further down) is that you have a problem with mounting a filesystem.
Quoted 11 lines
rpc.yppasswdd:execvp:no such file or directory yppasswdd:rpc.yppasswdd startup failed
gpm:execvp:no such file or directory
gpm:gpm startupj failedhttpd:execvp:no such file or directory
httpd:startup failedcrond:execvp:no such file or directory
crond:startup failed
Same comments as above apply to these 4.
Quoted 6 lines
rc.sysinit:mounting proc filesystem succeeded sysctl:net.ipv4.ip_forward=0
net.ipv4.conf.default.rp_filter=1 net.ipv4.kernel.core_user_pid=1rc.sysinit:configuring kernel parameters:succeeded mount:mount:mount point
/proc/bus/usbdoes not exist
This suggests that your kernel compile did not work the way you think it did, and some kernel feature that the init scripts expect was not compiled in.
Quoted 8 lines
rc.sysinit:mounting usb filesystem:failed modprobe:can't locate module hid
Initaialising USB HID interface:failed
modprobe:can't locate module keybdev
Initialising USB keyboard failed
modprobe:can't locate module mousedev
Initialising USB MOUSE :failed
These make me suspect that either you did not compile and install modules, or your general compile procedure did not include all the features that the init scripts expect.
Quoted 3 lines
mount:mount fs type ext3 not supported by kernel Mounting local filesystems :failed
The lack of ext3 support suggests one of the two problems I referred to above. Without knowing your filesystem setup (as reported in /etc/fstab) I cannot tell you all the consequences of this. But if /usr is a separate partition, the lack of /usr/lib could be causing many of your problems.
One workaround here is to edit /etc/fstab so the filesystems now specified as type ext3 are instead specified as "ext3,ext2". If you do that ... and if the kernel has ext2 support, but it is hard to imagine a working kernel that does not ... then a failure to mount as ext3 will cause a fallback to ext2, and the partitions will mount (albeit without journaling).
Quoted 7 lines
updfstab:execvp: no such file or directory
kudzu: updating/etc/fstabfailed iptables:modprobe
iptables:failed
iptables:can't locate module ip-tables iptables:perhaps iptables or your kernel needs to be
Quoted 5 lines
upgraded
Also, the output of the command df ,
shows that all my partitions are of type ext3.
Don't tell me; show me (that is, quote the output). If they are ext3, but the kernel does not know how to mount ext3, then how did you get them to mount? Are you referring here to mounting under the old or the new kernel?
Quoted 8 lines
Iam also unable to see the files or directories of
home,misc,nfshome,initrd,opt,usr partitions while Iam able to see the files of root partition.Is it because I have specified in the
/etc/lilo.confas
Quoted 8 lines
"root=/dev/hda1"Its not booting when I have given the option, append="root=LABEL=/"
When my original image(RH8.0) is booting and working
fine with this configuration and append="root=LABEL=/"
in lilo.conf,
I'm not certain about this, but I **think** the approach that fails depends on /etc/fstab, while the one that works does not. So it may be another manifestation of the ext3 problem you report earlier.
Quoted 1 line
why is my new image not working ?
Probably because you compiled it incorrectly. Since there is almost no information in your message about the procedure you followed to get this source, configure it, and compile, I can't offer a *specific* suggestion. My general suggestion is that you review the basic instructions for how to compile (location identified above) and see where you did not follow them.
Your reference to "make oldconfig" is too cryptic for me to discuss it in any detail, but I suspect it reflects a failure to follow the right procedure. This approach will update an existing .config file, but for it to work, you need to have done a kernel compile before of a working kernel (so the existing .config reflects your old kernel's setup). I can't tell from what you sent us if you did this, or if the old kernel was a pre-compiled kernel-image installed by Red Hat.
Before responding, **please** read /usr/sec/linux/README so you understand the general procedure for compiling kernels.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
A message that is not in the archive (sent off-list or not yet received): [email protected]
You sent this to me personally; I'm replying to the list, since that is how I prefer to provide technical assistance.
I think your error is in misunderstanding what "make oldconfig" does. It does NOT magically cause the new compile options to match your running kernel. It simply makes whatever is currently in (in this case) /home/cs0205/linux/.config match the current kernel source.
The purpose of this option is to simplify moving from an older to to a newer kernel source tree; it will prompt you to answer only questions that are not already addressed in the .config file. But if this is the first time you are compiling a kernel on the machine, it will have no way of knowing what options are in the current, running kernel-image.
As you use it, you are compiling the kernel with the as-shipped .config settings. They are unlikely to match your requirements. Your kernel is mising features you need to work with your overall setup.
To avoid this problem, use instead one of the configuration choices that has you review the entire .config file -- "make config", "make menuconfig" (I prefer this one, personally), or "make xconfig" -- and configure the kernel to match your needs.
The "make clean" step you add is not called for in the README doc. I doubt it causes a problem, but if your problems persist after you follow the preceding advice, try doing it before you do the "make config" or equivalent.
Quoted 43 lines · Ravi Kumar Munnangi
Iam using Redhat linux 2.4.18-14(which came with
Quoted 42 lines
Quoted 4 lines
installing RHlinux-8.0.
Now I want to reconfigure the kernel.I have download the linux 2.4.18 from
ftp.kernel.org
Quoted 25 lines
Ihave put the file in
/home/cs0205/
There itself I unzipped the file.
Then I saw a new directory/home/cs0205/linux
then cd/home/cs0205/linux
make mrproper
make oldconfig
make dep
make clean
make bzImage
make modules
makemodules_install
make install
I have then changed my/etc/lilo.conffile as
follows
prompt
timeout=50
default=linux_new
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linearimage=/boot/vmlinuz-2.4.18-14
Quoted 11 lines
label=linux initrd=/boot/initrd-2.4.18-14.img read-only append="root=LABEL=/" image=/boot/vmlinuz-2.4.18 label=linux_new initrd=/boot/initrd-2.4.18.img read-only root="/dev/hda1"I have run
/sbin/lilo
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs