View Full Version : Upgrade Redhat to kernel 2.6


Adlee
Salam

I tried to upgrade my system to kernel 2.6 but had many problems with QM_Modules. So I am trying to do the upgrade using an RPM file. However, this RPM file did not run because it requires the Module-init-tools.

I got the module-init-tools-3.0-pre5.tar.gz files from the internet and installed it without any errors. Yet, the system still ask me for it and did not proceed with installation. Does any one know why?

Salam

OneOfOne
if you're sure you installed module-init-tools then just force the rpm. (you can do that in redhat, can't you?)

peace

Adlee
Salam

Originally posted by OneOfOne
if you're sure you installed module-init-tools then just force the rpm. (you can do that in redhat, can't you?)

No, I do not know how to force the rpm. Would you please tell me how?

Salam

OneOfOne
i dont use rpm but i think it's rpm --force --nodeps (--no-deps?) -Uv xxx.rpm
maybe a redhat/rpm guru can help you out with this one.

peace

Bondo2
on RH (or anyother distro for that matter) u can use
rpm --force to force install a package, --nodeps is used during removel (-e) only

ErrorMsg
force is not a good practice , usually this mean you get the rpm for other distro
always get rpms for you distro or at least same distro other version
----
DO NOT install module-init-tools-3.0-pre5.tar.gz
it should come with some of the rpms
in RH there is a GUI package manager there is a section called kernel devalopment install it

Adlee
Originally posted by ErrorMsg
DO NOT install module-init-tools-3.0-pre5.tar.gz
it should come with some of the rpms
in RH there is a GUI package manager there is a section called kernel devalopment install it

No, it does not come with RH. It comes with Ferdora. I checked all 6 CDs, but could not find this RPM. During RH installation, I included the kernel devalopment tools. I think there were 4 of them.

Gentelmen, sorry, may be I am not clear here. My problem is not with the installation. I already installed the module-init-tools-3.0-pre5.tar.gz files using the kconfigure and told me "Done", but the system seems does not recognize it or the kconfigure is telling me a lie. It still ask me for it. Any more help please.

Salam

Adlee
Salam

Can some one help me?

I got the rpm file module-init-tools and tried to install it but did not work even with force option. I recompiled my kernel again but I was not successful at all. My system halted and gave me the following:

RAMDISK: Copmressed image found at block 0
RAMDISK: Incomplete write (-1 !=32768)4194304
VFS: Cannot open root ............"LABLE=/" or unknown -block (0,0)
Please append a correct "root=" boot option
Kernel panik:VFS:Unable to mount root fs on unkown -block(0,0)

Is this a problem with my grub.conf file? It reads as follows:

default=2
timeout=10
splashimage=(hd1,7)/grub/splash.xpm.gz
title Red Hat Linux (2.6.0)
root (hd1,7)
kernel /vmlinuz-2.6.0 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.6.0.img
title Red Hat Linux (2.4.20-8)
root (hd1,7)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1

By the way I did not make any changes to my grub.conf file. All changes done by the installation process.

Can you help?

Salam

OneOfOne
change the line
kernel /vmlinuz-2.6.0 ro root=LABEL=/ hdc=ide-scsi
to
kernel /vmlinuz-2.6.0 ro root=/dev/hdXY hdc=ide-scsi

where /dev/hdXY is you root device NOT just the label of it.

peace

ErrorMsg
also
make sure that the files exsists

initrd-2.6.0.img
vmlinuz-2.6.0

Adlee
Salam

OneOfOne

I did what you told and it did work but the boot stoped again.

ErrorMsg

I made sure of both items and they were there but did not work.

I failed again. I have done this excersis for several times and lost my file once but no success. The problem is with module-init-tools. It installs ok but when I do depmod -v, it tells me no such command.

Thanks alot gentelman for your help I do not think I will make it. Ale3traf belhag fadhyla; Linux is not for me period.

Salam

habdin
Salamo 3alaikom,

Adlee, you may have missed the step of creating a initrd img for the new kernel. This is due to the bad (for home users) attitude of Redhat kernels to implement the filesystem support for ext3 filesystem as module. Make the initrd image (man initrd), edit /etc/grub.conf and add the entry to grub configuration file, reboot and try the kernel.

Salam.

Adlee
Salamo 3laikum

Finally, I did it. I compiled kernel 2.6.1 but using Mandrake not Red Hat. However, I got many problems. The most important one is the modem. My system can not detect my external modem. Also there is no sound. The system detected my sound card but could not run it. What can I do to fix them?

Although I said I will quit but I could not resist the attraction of Linux.

Salam

ErrorMsg
you have to reinstall the modem and sound driver using the same too that you did in the prevois kernel
*----*
not when you did
make menuconfig
you should pic that you want the support as loadable module
----
www.daif.net/linux/ar/kernel.html

Adlee
ErrorMsg

Salamo 3likum

Thanks alot. I already solved the modem and sound problems by recompiling the kernel. I am now lift with one problem with the auto mounting of my cdrom, floppy and windows partitions. I can mount my cdrom manually and use it. I mounted the windows partitions manually but it tells me that access is denied when I try to access them.

Can you help?

Salam

safrout
this is a prblem with ur /etc/fstab config

search the forum and u will find many threads talking about the proper way to config ur fstab

and there is an article about mounting cdroms also

ErrorMsg
you have fstab problem
add umask=0 to your hda1 options
see example in
www.daif.net/linux/ar/hw.html
----
/dev/hda1 /mnt/win_c vfat umask=0 0 0
and to make it read arabic files
/dev/hda 1/mnt/win_c vfat umask=0,codepage=864,iocharset=utf80 0
---
umaks mean a not and operator
so 0 means 777 and (not 0)=777 and 777 = 777

Adlee
Salam

I made the changes to my fstab file but did not work. The following is my fstab file:
/dev/hdd1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdd6 /home ext3 defaults 1 2
none /proc proc defaults 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro,nosuid,defaults,user,exec,nodev 0 0
dev=/dev/fd0,fs=ext2:vfat,--,codepage=850,iocharset=iso8859-1,sync 0 0
/dev/hdd5 swap swap defaults 0 0
# /dev/fd0 /mnt/floppy auto noauto,users 0 0
# /dev/cdrom /mnt/cdrom auto noauto,users,nosuid,nodev 0 0
/dev/hdb7 /mnt/h: vfat umask=0,codepage=864,iocharset=utf80 0

I have no problem to access my cdrom(DVD-RW), floppy and Windows partitions in the consol but not by using the graphical interface.

For your information, I have two linux systems in my PC. Mandrake 9.2 (kernel 2.6.1) and Manrake 10 (Cooker). But I see one fstab file in the /etc folder.

Salam

ErrorMsg
not hdd it's hda hdb ...
a b c d mean 1st primary 2nd primary ...
so
replace hdd with hda
also there is a space after iocharset=utf8
change:
iocharset=utf80 0
to be:
iocharset=utf8 0 0
-----
also those lines are strange
/dev/cdrom /mnt/cdrom auto noauto,ro,nosuid,defaults,user,exec,nodev 0 0
dev=/dev/fd0,fs=ext2:vfat,--,codepage=850,iocharset=iso8859-1,sync 0 0
they should be
/dev/fd0 /mnt/floppy auto noauto,userscodepage=864,iocharset=utf80 0 0
/dev/cdrom /mnt/cdrom auto noauto,users,nosuid,nodev,codepage=864,iocharset=utf80 0 0
----

ErrorMsg
sorry there is typo
in the last two lines
/dev/fd0 /mnt/floppy auto noauto,userscodepage=864,iocharset=utf8 0 0

/dev/cdrom /mnt/cdrom auto noauto,users,nosuid,nodev,codepage=864,iocharset=u
tf8 0 0

Adlee
Salam

Ok. Finally I got the problem solved and my system kernel upgraded to 2.6.0. Here what I did:

1- Installed Mandrake 9.2
2- Compiled kernel 2.6.1, succeeded but got many problems.
3- Upgraded to Mandrake 10 (cooker), this added kernel 2.4.22-10.
4- I started my system with the Mandrake 10, kernel 2.4.22-10. By the way the system shows it as Mandrake 9.2.
5- I copied all kernel 2.6.0 RPMs including the udev rpm from Mandrake 10 first cd to my home directory.
6- I ran the udev rpm and it installed every thing for kernel 2.6.0.
7- That's it. :D I got every thing working including supermount. I did not try the modem yet but It does not seem to have any problem.

The question now, how can I back up my Linux patritions? Is there any program like goast?

Thanks everyone for support.

Salam

alaa
there many programs for backing up your partitions.

but the first thing you should know is you don't realy need to do it that way.

files in GNU/Linux are just normal files, you can create a tarball archive of the files and copy them to a cd or some other backup media
then extract them again when you need to grab the backup

you can extract them even if you change your partitioning scheme or your harddisk

the only thing that would need tweaking would be installing the bootloader (which is one command away anyway).

if you insist on ghosting the partition this could be done using the dd tool.

then there are many scripts to automate these tasks for you, and programs to manage this process for large networks and things like that

I don't have experience with these things, but Mandrake has a nice tool called mondo that allows you to make bootable rescue cds

cheers,
Alaa

Adlee
Salam

Thanks alaa.

What I need exactly is a program that not only backup the files but also backup the complete system setup like the ghost. This will enable me to restore my system back to a certin point of time. So, when the system get damaged, I can restor it in no time. For example, I have upgraded my Mandrake 9.2 kernel to 2.6.0 and I wanted to change some settings in the kernel so I recompiled it and got my system damaged. Now, I have to start meen awal wa gedeed. If I have the system backup I could restore it easily.

Salam

alaa
aywa I understood this
my point it copying the files and preserving their permissions, ownership and timestamps will give you a perfect system ghost.

anyway check mondo it'll automate things for you (on Mandrake Contrib).

cheers,
Alaa

uniball
dd if=/dev/hdaX of=img

then dd if=img of=/dev/hdX

I'm not sure abt this !
It maybe dangerous.