LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-03-2009, 04:16 PM   #1
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
What if you ran a different distro's kernel on your / filesystem?


Perhaps this isn't the right forum, but it is the Slackware filesystem I may be destroying so I though I'd ask here first.

What might or might not work if you ran a different distro's kernel but substituted Slackware's / filestem in grub or LILO? Say if you were multibooting Ubuntu or Debian and used their kernel and/or initrd but Slackware's filesystem. Anyone ever try that, even as a typo in a config?

Would it just not work, or would it mess up the filesystem beyond all repair? Or, would it work fine if the kernel was "generic" enough (i.e not too many strange distro specific patches)?
 
Old 02-03-2009, 04:32 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
It shouldn't mess up your filesystem and may or may not work, depending on how close the version and compiled options match -it will probably be looking the kernel modules which match the kernel too, so you might need to copy them into your slack filesystem so they are available when booting with the foreign kernel.
 
Old 02-03-2009, 04:32 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
It should work OK. People do this all the time when they compile their own kernel. Using another distribution's kernel should be no different than compiling your own kernel.

Another common example is booting a liveCD and then chroot to a hard drive / partition. You are using the liveCD kernel and the hard drive / file system. People do this often when repairing broken systems with the liveCD being produced by somebody other than the distribution which produced the / file system.

-------------------
Steve Stites
 
Old 02-03-2009, 04:44 PM   #4
camphor
Member
 
Registered: Jan 2009
Location: USA
Distribution: Fedora 14 / Slackware 13.1
Posts: 85

Rep: Reputation: 20
I've done it accidentally (don't ask), and didn't encounter any problems. However, I'd be careful with a totally different journaling system.
 
Old 02-03-2009, 04:47 PM   #5
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851

Original Poster
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Well, that's good to know. gnashley- thanks for the reminder about kernel modules. jailbait - probably because I don't understand it that well, chrooting seems less permanent than mounting as root...dunno, safer somehow, just like mounting from a rescue CD and renaming it as root. As for compiling your own kernel, well, the slackware kernel is pretty vanilla, so compiling a new one is like running slackware! Thanks though.
 
Old 02-03-2009, 04:49 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by mostlyharmless View Post
What might or might not work if you ran a different distro's kernel but substituted Slackware's / filestem in grub or LILO?
As the above posters noted, it will usually run. In fact most people do this at one time or another accidentally with a botched lilo configuration - it is mostly just confusing when you are not expecting it.

I doubt that you would harm your filesystem this way, at least not with common distro kernels, but I don't think it would be a good idea to do this as your normal operating boot, if that is the point of your question.

There is the obvious potential for complications with kernel modules, but I suspect that there could be other nasty effects, particularly if you try to install or build packages in that mode. Lots of potential for problems in fact.
 
Old 02-03-2009, 05:18 PM   #7
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851

Original Poster
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I wasn't really planning on that being my normal operating boot, but thought it might come in handy occasionally, mostly as a way to avoid the tedious and wasteful duplication of installation of applications.
 
  


Reply



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
Original distro's and distro's based on the originals? Moloko Linux - General 7 08-19-2005 05:37 PM
Are other distro's adding repositories so I can use yum for all my distro's? t3gah Linux - Software 4 03-21-2005 04:57 AM
kernel recompile, ran out of room evannextel Linux - General 3 06-22-2004 02:35 AM
Is 'Halt cpu when idle' in any distro's kernel? fedetxf Linux - General 6 01-14-2004 09:02 AM
Any distro's now shipping with 2.6 kernel? sb73542 Linux - General 2 01-11-2004 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration