LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 12-19-2005, 02:16 AM   #1
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
usefulness of mandriva-patches in kernel, or just new 2.614. kernel from source?


Hi, Is the patching of the kernel by Mandriva necessary?
(I mean for good functionning of the OS with mandriva tools or scripts or anything else)

I may find some times to compile my first kernel.
I have a 2.6.14 source from a magazine.
I was going to add it alongside Mandy 10.2's kernel.

In other words, should I look for a 2.6.14 mandriva patched source kernel (if this is available), or can I just upgrade to any 2.6.14 or above, without worrying too much about these mandriva patches.

I know I could urpmi a new kernel,
http://wwwnew.mandriva.com/en/security/kernelupdate
but at the end of the day I want to see if I can do it from the source I have, or another source, not from a rpm).

I have seen occasional rambling about mdk patching of the kernel breaking things. I really have no experience to say that it does.

PS: This will be my first kernel compilation;
I have plenty of links and readings to help me through,
so this should be all right.
 
Old 12-19-2005, 04:00 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
The one thing I can think of that will break is supermount. Look in your /etc/fstab file and if you have supermount on the lines with /dev/cdrom or /dev/fd0 then your kernel is patched with supermount.

You can manually patch your kernel if you want to keep supermount or you can leave out supermount and change you /etc/fstab file so you manually mount your cdrom or floppy

http://sourceforge.net/projects/supermount-ng

<edit> Be sure you use the config file located in the /boot directory when you build your new kernel. That way you know you are starting from a "known good" config file.

cd /usr/src/linux
MYKERNEL="`uname -r`"; cp /boot/config-$MYKERNEL .config
make oldconfig

Last edited by /bin/bash; 12-19-2005 at 04:04 AM.
 
Old 12-19-2005, 05:26 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Quote:
Hi, Is the patching of the kernel by Mandriva necessary?
(I mean for good functionning of the OS with mandriva tools or scripts or anything else)
Yes, for good functioning it is necessary. Often though you can get away with a vanilla kernel with no patches since the bugs/incompatabilities the patches fix might not always affect you.

Quote:
I may find some times to compile my first kernel.
I have a 2.6.14 source from a magazine.
I was going to add it alongside Mandy 10.2's kernel.
That's definately the best way - make sure you can still boot into Mandriva's kernel if you need to.

Quote:
In other words, should I look for a 2.6.14 mandriva patched source kernel (if this is available), or can I just upgrade to any 2.6.14 or above, without worrying too much about these mandriva patches.
I don't think Mandriva has released a 2.6.14 kernel RPM, but there might be one if you look in the cooker repostories.

Quote:
I know I could urpmi a new kernel,
http://wwwnew.mandriva.com/en/security/kernelupdate
but at the end of the day I want to see if I can do it from the source I have, or another source, not from a rpm).
That only gets the updated kernels for your distro and since updates are backported into the current kernel version for the distro using this method you'll never get a newer version of the kernel.

Quote:
/bin/bash: The one thing I can think of that will break is supermount. Look in your /etc/fstab file and if you have supermount on the lines with /dev/cdrom or /dev/fd0 then your kernel is patched with supermount.
Supermount is only for floppy drives in these newer versions of Mandriva. It uses hal/fstab-sync for CD/DVD and USB drives

Last edited by tkedwards; 12-19-2005 at 05:28 PM.
 
Old 12-20-2005, 01:37 AM   #4
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Original Poster
Rep: Reputation: 47
Thanks very much for these comprehensive answers.
I do use supermount. I will try with a vanilla kernel, and patch it for supermount.

Quote:
That only gets the updated kernels for your distro and since updates are backported into the current kernel version for the distro using this method you'll never get a newer version of the kernel.
Gosh, never realised this was done that way.

I hope the 2.6.14 [edit 2.6.15 does this is the milestone] now makes smartmontools work with
sata drive (I read somewhere about these kind of improvements).
Anyway, this is the curiosity factor first

The day I manage to get this to work, and I notice some
incompatibilities, I will post back here.

Last edited by Emmanuel_uk; 07-18-2006 at 02:06 AM.
 
Old 12-20-2005, 03:54 PM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Quote:
Gosh, never realised this was done that way.
Yeah pretty much every distro does this, and not just for the kernel but for almost every other package too. Its why you have to keep upgrading to the latest version of your distro if you want to keep up with the latest packages.
 
Old 12-20-2005, 08:33 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Quote:
Supermount is only for floppy drives in these newer versions of Mandriva. It uses hal/fstab-sync for CD/DVD and USB drives
I guess I slept right through that change. Mandrake has been holding onto supermount for way too long. Time to let go and move onto better things.
 
Old 12-20-2005, 08:56 PM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Yeah I asked on the cooker mailing list because I was confused about how it all worked:
Quote:
> I'm a little bit confused about how removable drives (CD/DVDs and USB
> devices) get mounted in 2005LE. I know that fstab-sync is called by HAL
> to add entries for USB devices to /etc/fstab on the fly but what process
> is meant to mount those newly added devices?

gnome-volume-manager.

> Also what process mounts
> CD/DVD drives?

gnome-volume-manager.

> Why is the floppy drive the only one with 'supermount' in
> the options of its fstab entry?

because floppy drives do not notify the kernel when a medium is
inserted, so you cannot use a mounting method which relies on detecting
the sudden presence of a medium. You have to use one which simply
attempts to mount the drive when access to it is requested - like
supermount.

> Is supermount still used in 2005LE?

Only for floppies and a few other cases where insertion notification
doesn't happen (some tape drives, IIRC).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are the Mandriva 2005 LE kernel patches? yitzhakbg Linux - Software 4 08-23-2006 01:23 AM
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
Applying MANY patches to kernel source declassified Linux - General 7 09-03-2005 07:00 AM
RedHat patches vs open source patches paulsh2k4 Linux - Software 1 10-14-2004 03:18 AM
Kernel question (about kernel patches) alekoos Linux - Newbie 1 04-29-2004 11:33 AM


All times are GMT -5. The time now is 11:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration