Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Linux- Difficult?

Status
Not open for further replies.

COBOL

MIS
Jul 2, 2000
26
0
0
Suppose I wanted to go from Red Hat Linux to another Linux.
Is it difficult?
Or Maybe from Linux to Solaris or other UNIX, AIX for example.
 
That's going to depend on what you want to lose and what you want to keep.

Those are just distributions, and really refer to the software suites they install, and the ways in which they customize them... i.e. background images during the login, modified window managers to tie automatic menu creation to package installation etc...

Linux to Solaris or something of that variety is totally different.

If you want to keep your installed apps, it's one thing, if you want to keep the contents of your home directory it's easy.... though even easier to backup and restore.

I personally would always just backup my data and re-install from scratch, then restore the data... because different programs will be reliant on libraries you're likely to be replacing/removing. Then there's the whole package management issue inherent to most varieties of linux, and I'd had to see how it handled that.

-Rob
 
Fundamental commands stay the say, as well as some filestructures. Linux to BSD is a smooth transition, Linux to Solaris a little harder. It all depends what you want to do/learn. If you are going to change to another Linux distribution, try Debian or Slackware.
 
Perhaps you want a lower-level-of-abstraction reply.

All distros nowadays recognize existing partitions. DO BACK EVERYTHING UP. But if you are sure you can tell where your user data is (i.e. in which partition /home is), you can define the mountpoint of that partition as /home again, tell the installer not to reformat it, and the new install will (should) leave your data alone.

After the install, you may have to give yourself ownership of all in /home/<your-userid> to yourself again using chwon.

(Question for the wiser: IS THIS NECESSARY or will one system recognize the older's ownership associations? - i.e. is it a hashed, install-specific, or not????)

Also be careful with which filesystem you specify. It should be the same as in your previou install, with some exception: eg you may mount an ext3 partition as ext2 (without journaling) and perhaps reactivate and re-do journaling later (but it's not in general a good idea).

I would not even try to mix and match two different distributions. One distro is enough at war with itself already.

BUT you may want to do a copy of all files in /etc, where most settings live. Afterwards, you may use them (with caution) as an inspiration to change settings in the new system.

Moreover, be careful with /var. The older-style mailsystems put mail files there. So, you may want to treat /var along the lines of /home. There again, you may have little or nothing of value there. FWIK, tribal mailers like mutt, pine etc use /var, but Evolution, Mozilla and other modern ones tend to put the stuff in (hidden) folders in /home/<your-userid>.
(Wiser boys & girls, do you concur?)

Finally, OS changes: not all OSs support all filesystems. There are Linux kernels or modules with support for the strangest filesystems, and commercial Unices may support ext2/3, reiserfs or whatever, but you need to check.

Another argument in favor of going clean slate.


Filippo / spamhog
Computer Victim (as in &quot;fashion victim&quot;) - Milan, North Poldavia - 40% WinME, 40% Linux (Debian, Libranet, Vector, Lycoris), 20% Win98, trace amounts of Win2k, xBSD, QNX
 
IS THIS NECESSARY or will one system recognize the older's ownership associations? - i.e. is it a hashed, install-specific, or not????
If the you save your old password and group files and copy them onto the new system, you shouldn't have to do it. If you instead recreate the users and groups, make sure their IDs are the same as the on your old system.

//Daniel
 
Thank you Daniel! So associations are just recorded as ascii userid strings, w/o any additional obfuscation, right? Simpler than I feared.



Filippo / spamhog
Computer Victim (as in &quot;fashion victim&quot;) - Milan, North Poldavia - 40% WinME, 40% Linux (Debian, Libranet, Vector, Lycoris), 20% Win98, trace amounts of Win2k, xBSD, QNX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top