LinuxQuestions.org
Visit Jeremy's Blog.
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-20-2008, 06:56 AM   #1
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Rep: Reputation: 15
how portable is a Linux installation?


I recently had a failure of my motherboard and cpu and was able to replace it with a similar but different vendor (socket 478) motherboard.
My Linux installation, did a filesystem check on the root partition, rebooted, checked the filesystems of the other partitions and after a few logins and a timeout (not clear why it didn't accepted the first login), I could run it as if almost nothing had happened.
Compare this to how I had to "repair" my windowsXP installation!

Is this typical for Slackware(12), all Linux versions, or all Unices?
 
Old 02-20-2008, 08:11 AM   #2
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Good stuff!
Don't know about other *nixes, but certainly all Linux distributions would be similar.
Of course if you had compiled your own kernel and then replaced the cpu with one that was not compatible, it wouldn't haven been quiet as smooth.
Similarly if you had compiled your own kernel and had removed drivers (e.g. using make menuconfig) that you didn't need on the old motherboard, you might have had problems if the same drivers was then needed by the new one.
On my Gentoo box I probably would have had more problems since I have customised it to my cpu and removed plenty of drivers I don't need at the moment. Of course if I was worried I could keep a generic kernel available in /boot to my Grub config.
Linux is maybe the most portable OS there is. E.g. which other OS can run on anything from your watch, phone and TV to giant super computers?
 
Old 02-20-2008, 08:21 AM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
As long as the drivers (loaded into the kernel, on boot) are generic enough to support the hardware you're using, or you have more drivers loaded that you need, everything is kosher.
 
Old 02-20-2008, 09:16 AM   #4
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
Well, WindowsXP is one generic kernel. You can install XP (e.g.) on any i386 processor and motherboard as well. The problem arises when you change motherboard even when you need to load a new sata driver as the only new driver; Windows goes in repair mode and installs everything over your current installation. There is more than the driver issue, Windows manages to complicate things because of commercial issues is my guess, it is not a professional but a commercial OS with all sorts of hidden dependencies. That I think is the point. Linux just behaves as an OS should, nothing special about that.

Last edited by Kristian2; 02-20-2008 at 09:18 AM.
 
Old 02-20-2008, 09:59 AM   #5
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
One of the problems I think that causes windows problems in such a situation is the binary and very detailed registry. It contains lots of details on your current hardware and can't handle sudden changes like this (even though, far as I know windows also add lots of unnecessary drivers at installation). Linux is much more flexible in the way it works with the largely text mode /etc tree and the kernel based drivers.
 
Old 02-20-2008, 01:34 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by Kristian2 View Post
Well, WindowsXP is one generic kernel. You can install XP (e.g.) on any i386 processor and motherboard as well. The problem arises when you change motherboard even when you need to load a new sata driver as the only new driver; Windows goes in repair mode and installs everything over your current installation. There is more than the driver issue, Windows manages to complicate things because of commercial issues is my guess, it is not a professional but a commercial OS with all sorts of hidden dependencies. That I think is the point. Linux just behaves as an OS should, nothing special about that.
WinXP is one build then adapted to suit the hardware. The overlay is the problem with WinXP for a change in hardware that was not original to the install. The exceptions and setting up the registry will always kill you.

As long as the Linux kernel is x86 compatible then you won't have a problem. The problem will exist if drivers for subsystems are different for the MB. With XP you can usually get around this with the safe mode and modify where needed but not always. I would just let M$ do the work.

As for GNU/Linux/Slackware you will have a problem if you custom the kernel. If the stock is x86 then not a problem. You can always modprobe a device if the mapper and devices are not recognized with udev.

Your existing rules would most likely present a problem for different devices. You could always delete the rules and get a renew at boot.
 
Old 02-20-2008, 01:55 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Indeed this would work for pretty much all distros. Some cases in which this may not be true might be if you upgraded the video card and were running proprietary drivers (although the drivers are unified, if you ran a legacy driver and bought a newer card, you'd need to upgrade the driver). Another case is if you have a custom kernel with only what you need built-in ... then you'd have to reconfigure, recompile, reinstall the kernel.
 
Old 02-20-2008, 02:25 PM   #8
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Stuff like this is the reason that I always keep a copy of the huge kernel image handy. If for some reason I need to change hardware and my custom kernel won't work, then I can fall back on the huge kernel.
 
Old 02-21-2008, 07:48 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

That's our safe mode! I always have a kernel available for trouble. That way recovery is just a few MB of storage for the spare boot kernel. There's always the rescue but why not have alternate means to recovery.

My rescue recovery cd set is about 8 cds of varied flavors.
 
Old 02-21-2008, 08:44 AM   #10
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by monsm View Post
One of the problems I think that causes windows problems in such a situation is the binary and very detailed registry. It contains lots of details on your current hardware and can't handle sudden changes like this (even though, far as I know windows also add lots of unnecessary drivers at installation). Linux is much more flexible in the way it works with the largely text mode /etc tree and the kernel based drivers.
95% of winbloze "code" is anti-piracy rubbish that tries to stop you from moving your installation to another computer. Not only does that not work (see all the cracks in any web site) but it fsck anyone who tries to recover their own system.

You can clone a generic Linux installation almost effortlessly. I laid a copy of my primary Slackware desktop system onto a laptop in less than 20 minutes one day when I had to travel.
 
  


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
portable linux? |Spec-ops Linux - General 3 11-19-2005 07:28 AM
Portable Installation on USB HD Rossb907 Linux - Software 0 04-01-2005 10:54 AM
Solaris installation using portable firewire cdrw kohokuak Solaris / OpenSolaris 3 09-23-2004 03:23 AM
FreeBSD installation using portable firewire cdrw kohokuak *BSD 0 09-23-2004 01:25 AM

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

All times are GMT -5. The time now is 01:41 AM.

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