LinuxQuestions.org
Visit Jeremy's Blog.
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 10-26-2008, 08:28 AM   #1
dangold
LQ Newbie
 
Registered: Mar 2006
Posts: 17

Rep: Reputation: 0
switching system's want to stay with my current configuration


Hi,
i'm in a rush so ill ask some questions all toghther.

I've got a computer with slack12.1 that is working alright for me.

i want to move to the new computer everything as i have now,
will it be alright if ill do that in someway ?

and if so
how can i do that?

i dont mind to reinstall and then just putting all the old packages (if i had a list of them)
but how i do that ??
and all the configure's for the programs ?

i'm really a newbie
(if i cuold i would have just copy everything on a usb and then copy it back )

Thanks ahead.
 
Old 10-26-2008, 09:07 AM   #2
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
The new computer requires different software (drivers) to run it, so just ghosting/cloning your current setup is unlikely to work. Most people in this situation, just set up a new system, then copy over their /home, where most if not all of your ordinary desktop settings live anyway. Then just go through and install any other programs your old system had that the new one doesn't.

David
 
Old 10-26-2008, 09:33 AM   #3
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by dangold View Post
(if i cuold i would have just copy everything on a usb and then copy it back )
YOu can do that, but this will require manual edit of configuration files and several additional steps, and the whole operation should be made in certain way, so this is not recommended for a newbie.

Quote:
Originally Posted by budword View Post
The new computer requires different software (drivers) to run it, so just ghosting/cloning your current setup is unlikely to work.
It will work (it won't work only if you use very customized stripped-down kernel, and some program might require recompiling on different CPU), but this will require additional steps. This is not for newbies.
 
Old 10-26-2008, 02:34 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I moved to a new box early this year and used the same hard drive.

Some simple preparations before you move the hard drive:

Ensure you have a generic xorg.conf file available such as xorg.conf-vesa. This configuration file is not dependent upon custom video hardware. Test that configuration file in your old box:

cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
cp /etc/X11/xorg.conf-vesa /etc/X11/xorg.conf
startx

While in X, open a terminal window and verify there were no X related errors or warnings:

grep '(EE)' /var/log/Xorg.0.log
grep '(WW)' /var/log/Xorg.0.log

If you are using a custom kernel then you'll want to add some lines to your boot loader to allow booting from the generic or huge kernels. Test booting with all boot loader options.

Regardless of how you decide to move the hard drive, backup critical storage locations such as /home, /etc, and /usr/local.

Move the hard drive.

Update any software packages.

Run xorgconfig or xorgsetup to configure a new xorg.conf file for your new video hardware.

Run netconfig to configure your network setup.
 
Old 10-27-2008, 12:25 PM   #5
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Woodsman,

I'd think that if one doesn't boot automatically into X, then xorgconfig or xorgsetup could be run after booting the first time in the new system.

I'm more curious about other hardware-related issues one might encounter. I _think_ the generic kernels that come with Slackware are sufficient for most tasks so that changing the motherboard and other hardware won't cause a problem. But, is it better to boot using the one of the huge kernels first and then remake the initrd?

I'm curious because I'm planning on building a new computer soon and I'd like to essentially transplant my Windows XP and Slackware installations by simply putting the old hard drives in the new computer.

(I understand XP will need more work, but a repair installation and a call to Microsoft to get the new key to activate the installation should work. If so, that will save me a fair amount of money).

Regards,

-Drew
 
Old 10-27-2008, 01:01 PM   #6
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
As already suggested, if you've got a heavily customised kernel, a straight copy probably won't work.

If you're using a stock kernel and the stock kernel recognises your new hardware, then moving the harddrive will work in exactly the same way as installing from fresh.

I personally didn't move the harddrive, so much as swapped out the rest of the hardware ... but it amounts to the same result

The major plus-point is that there's no need to reconfigure *any* of your programs, because they are addressed by the filesystem, not hdd nomenclature.

Transplant the harddrive (and/or data), boot it up and see what happens. You may need to adjust your fstab to deal with any changes to addressing, and in my case I transplated from 1 ethernet card to a motherboard with an ethernet port plus the old card. If you're reliant on network connections, ensure you've either blacklisted the correct module, or have turned off one or the other network device at BIOS level.

All this is easily accomplished using CD1 to boot as a rescue disk and mounting the hdd partitions.

Disclaimer: I personally found this a trivial task, since it's basically the same as fixing a broken install without reinstalling, but if you're reliant on the installer to map your fstab and deal with your network settings (for example), then you may find it more challenging.

As Woodsman says (paraphrased): when it doubt, back it up!

- Piete.
 
Old 10-27-2008, 01:19 PM   #7
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
I use copies of the same partition on both my laptop & desktop. I use the generic kernel with an initrd that I made using the huge kernel on the desktop. It works fine on both machines. If you want the machine being copied to perform the same tasks as the copied machine, all you have to worry about is xorg.conf. In my case, the two machines perform different tasks & I have the following in the script that does the copying:
Quote:
cd /mnt/slacktop/etc
rm exports fstab hosts HOSTNAME
ln -s exports.slacktop exports
ln -s fstab.slacktop fstab
ln -s hosts.slacktop hosts
ln -s HOSTNAME.slacktop HOSTNAME
cd /mnt/slacktop/etc/rc.d
chmod -x rc.samba
chmod +x rc.wireless
The above snippet is for the laptop. I also have [exports,fstab,hosts,HOSTNAME].server files in /etc, & link to them when I copy to the server. I am using the proprietary driver files (built from SBo-based packages) in the laptop (ATI) & the desktop (nVidia). Currently I am using the [flgrx,nvidia]-switch scripts from those packages to change drivers, but I am working on a script to automagically determine which card is installed & set the proper driver. I recently found a script to do this in a post here, but it isn't quite what I want, so I'm tweaking it.
Regards,
Bill
 
  


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
Current xkbmap / X.org kb layout switching ? yacccobb Linux - Software 3 08-21-2006 04:15 AM
su - and stay in current dir lord-fu Linux - Newbie 2 11-16-2005 08:08 AM
HOWTO stay -current uselpa Slackware 7 09-13-2005 04:51 AM
What is the simplest way to stay current? yonatan1 Slackware 4 03-18-2005 03:57 PM
how do i stay current? yocompia Slackware 5 07-19-2003 11:42 PM

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

All times are GMT -5. The time now is 09:40 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