FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-06-2009, 06:29 AM
Cahaya Lilin
 
Default Install Debian GNU/Linux

Hello all..
*
I want to* know is there Debian linux can install by copy the entire files in the hard disk to another hard disk ??
*
Because i already install linux in my computer and now i want to install linux in another computer but not install it from the cd, it would be good if Debian GNU/linux can install in another computer just by copy all of the files..

*
and is there setting i have to do ??
*
Thanx..
*
*
 
Old 02-06-2009, 07:12 AM
Mitja Podreka
 
Default Install Debian GNU/Linux

Cahaya Lilin wrote:

Hello all..

I want to know is there Debian linux can install by copy the entire
files in the hard disk to another hard disk ??

Because i already install linux in my computer and now i want to
install linux in another computer but not install it from the cd, it
would be good if Debian GNU/linux can install in another computer just
by copy all of the files..

and is there setting i have to do ??

Thanx..
I've done this recently. Boot into original computer with a live CD and
copy all the files to an external disk. Then boot with live CD into new
computer and copy the files from external disk.



Regards,
Mitja


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-06-2009, 08:13 AM
Kevin Philp
 
Default Install Debian GNU/Linux

I would say "be very careful". It will work if the following are true:

1. All the drivers loaded on computer A are the same as required for
computer B - do they have the same CPU/motherboard chipset/graphics card


2. Your partitions are the same and match up in FSTAB - be particularly
careful if your FSTAB uses UUID notation.


3. You will need to reinstall grub into the MBR anyway.

I would be pleased to hear others peoples comments because this would
make my backup procedure easier - but unless the computers are the
same/very similar I am not confident its a sensible approach.


Kevin.


Mitja Podreka wrote:

Cahaya Lilin wrote:

Hello all..

I want to know is there Debian linux can install by copy the entire
files in the hard disk to another hard disk ??

Because i already install linux in my computer and now i want to
install linux in another computer but not install it from the cd, it
would be good if Debian GNU/linux can install in another computer
just by copy all of the files..

and is there setting i have to do ??

Thanx..
I've done this recently. Boot into original computer with a live CD
and copy all the files to an external disk. Then boot with live CD
into new computer and copy the files from external disk.



Regards,
Mitja





--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-06-2009, 10:35 AM
Mitja Podreka
 
Default Install Debian GNU/Linux

Kevin Philp wrote:

I would say "be very careful". It will work if the following are true:

1. All the drivers loaded on computer A are the same as required for
computer B - do they have the same CPU/motherboard chipset/graphics card


2. Your partitions are the same and match up in FSTAB - be
particularly careful if your FSTAB uses UUID notation.


3. You will need to reinstall grub into the MBR anyway.

I would be pleased to hear others peoples comments because this would
make my backup procedure easier - but unless the computers are the
same/very similar I am not confident its a sensible approach.


Kevin.


Recently I've upgraded my workstation. I changed motherboard and went
from AMD to Intel. Hard drive stayed the same and Debian booted without
problem. But since I had problems with this installation before I wanted
to reinstall and lazy as I am, I just copied the Debian installation
from my home computer with different motherboard, same CPU and different
graphics card (nVidia -> ATi) and completely different partition
structure. I copied the files (using cp not dd) to a second
(new/additional) hard drive and this caused me some problems with Grub
trying to boot from the old hard drive. After some mild tweaking (Grub
and X) I ended up with fully configured working Debian installation.


Some time ago I made something similar on my laptop. I copied files to
external disk, deleted an rearranged partitions and copied the files
back. Setup Grub and boot without problem.


Regards,
Mitja



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-06-2009, 10:37 AM
Umarzuki Mochlis
 
Default Install Debian GNU/Linux

2009/2/6 Cahaya Lilin <lingling.165@gmail.com>

Hello all..
*
I want to* know is there Debian linux can install by copy the entire files in the hard disk to another hard disk ??
*
Because i already install linux in my computer and now i want to install linux in another computer but not install it from the cd, it would be good if Debian GNU/linux can install in another computer just by copy all of the files..


*
and is there setting i have to do ??
*
Thanx..You could try cloning the whole hard disk with a live cd that have partimage or simply use clonezilla. It's not as simple as copy pasting but you'll get the exact copy of your original machine.


*
*


--
Regards,

Umarzuki Mochlis
http://gameornot.net
 
Old 02-06-2009, 12:48 PM
Cahaya Lilin
 
Default Install Debian GNU/Linux

mmm ...


I will try it out, i hope no problems occur..

Thanx
 
Old 02-06-2009, 12:58 PM
Johannes Wiedersich
 
Default Install Debian GNU/Linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kevin Philp wrote:
> I would say "be very careful". It will work if the following are true:
>
> 1. All the drivers loaded on computer A are the same as required for
> computer B - do they have the same CPU/motherboard chipset/graphics card

Not necessary. With modern kernels all drivers are compiled as modules
and loaded automatically as the hardware is detected on boot.

If you have compiled your kernel with special options and/or manually
tweaked its configuration, then of course the statement is right. For
most hardware the stock debian kernels should work after the copy.

> 2. Your partitions are the same and match up in FSTAB - be particularly
> careful if your FSTAB uses UUID notation.

Valid point.

> 3. You will need to reinstall grub into the MBR anyway.

True.

> I would be pleased to hear others peoples comments because this would
> make my backup procedure easier - but unless the computers are the
> same/very similar I am not confident its a sensible approach.

Why shouldn't it be sensible?

For the 'copy' part, I'd suggest to use rsync with the -a and -x options
(or otherwise ensure that the permissions are kept).

Change the hostname and network settings, it necessary.

Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmMQewACgkQC1NzPRl9qEVn4QCdEDp09MXP8y W2koirE4p1Fiij
mWUAn2lCJzIDv16FhW38knxY09rVJuJj
=2R7E
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-06-2009, 03:23 PM
Stefan Monnier
 
Default Install Debian GNU/Linux

> I want to know is there Debian linux can install by copy the entire files
> in the hard disk to another hard disk ??

Yes, you can.

> Because i already install linux in my computer and now i want to install
> linux in another computer but not install it from the cd, it would be good
> if Debian GNU/linux can install in another computer just by copy all of the
> files..

> and is there setting i have to do ??

As mentioned, you'll have to setup the boot-loader manually on the
new drive. Also you may have to adjust the config, e.g. /etc/fstab,
/etc/hostname, /etc/X11/xorg.conf, etc...

This method is the one I use whenever I can to install Debian, so it
works well. Other than the boot-loader settings, I have always adjusted
the rest of the config after rebooting into the "new" system: usually
just copying plus setting up the boot-loader is enough to get
a functional system.

But you had better be confortable with the command line, and editing
config files "by hand", of course.


Stefan



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-06-2009, 04:49 PM
Javier
 
Default Install Debian GNU/Linux

Cahaya Lilin escribió:

mmm ...

I will try it out, i hope no problems occur..

Thanx



Ey don't forget to preserve permissions. If you use "cp", it is the -p
option.
If you don't do it, some services are surely going to fail, as well as
other programs not functioning as expected.


Take care.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-10-2009, 12:32 AM
Emanoil Kotsev
 
Default Install Debian GNU/Linux

Cahaya Lilin wrote:

> Hello all..
>
> I want to know is there Debian linux can install by copy the entire files
> in the hard disk to another hard disk ??
>
> Because i already install linux in my computer and now i want to install
> linux in another computer but not install it from the cd, it would be good
> if Debian GNU/linux can install in another computer just by copy all of
> the files..
>
> and is there setting i have to do ??
>
> Thanx..

So to sum up (HOW TO CLONE A SYSTEM with two or one cup(s) of coffee)

SOURCE PC:
1) it works if the source system is prepared so. Which means at least to
install kernel for the target system (if not in the same family Motorolla
i*86x32/64 etc), so that you can boot on your new machine.

2) then what I prefer to do is to mount the partitions somewhere so I can
access only the data I need

cd /tmp; mkdir backup
mount /dev/XXX[1-9] backup
mount /dev/XXX[1-9] backup/boot
mount /dev/XXX[1-9] backup/home
(repeat for other partitions as in fstab, if you want to backup them)

3) plugin external disk (usb or so) and mount_it_somewhere

4) backup all (preserves permitions and so on)
tar cjvf mount_it_somewhere/system.tar.bz2 backup
(have a cup of coffee)
5) unmount mount_it_somewhere and all mounted on backup

TARGET PC:
1) boot with live cd/ usb disk or what ever linux capable
2) cd /tmp; mkdir -p backup/{boot,home} (the same structure like in 2 above)

3) plugin external disk (usb or so) and mount_it_somewhere

4) extract all
tar xjvf mount_it_somewhere/system.tar.bz2

5) customize
- ssh,ssl and other keys
- root, user passes
- x driver, other drivers
( there are/were few problems with ATI - NVidia proprietary GL and vice
versa migration, because both of them installed different GL libraries, but
they might have fixed it in recent versions)

6) run grub install to make the system bootable

7) recreate initrd if necessary

8) unmount mount_it_somewhere and all mounted on backup

9) reboot




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 06:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org