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 04-24-2008, 11:59 AM
Micha
 
Default Copying a complete root parition over a network cable for a new install

I need to install debian for a friend of mine that got new machine. Apart for
the network card driver (which is actually a relative of mine) and the graphics
card which is intel instead of nvidia the install should be about the same.

I thought to save some headache and just copy over the whole linux partition
and just fix up the small tidbits (network driver, graphic driver and fstab).

Since these are two laptops, moving the hardrive over won't work so I need to
do it over the network. What would be the best way to do this? Should I boot
the new laptop with ubuntu or something or do a base debian install? Is there a
better way, and how do I make sure that the permissions and owners don't change
and that /proc, /sys, /dev etc. are not copied?

Thanks


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 04-24-2008, 03:52 PM
Pol Hallen
 
Default Copying a complete root parition over a network cable for a new install

> I thought to save some headache and just copy over the whole linux
> partition and just fix up the small tidbits (network driver, graphic driver
> and fstab).
U can use: the debian live cd and dd command or systemrescuecd, knoppix, etc.

Pol


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 04-24-2008, 04:11 PM
NN_il_Confusionario
 
Default Copying a complete root parition over a network cable for a new install

On Thu, Apr 24, 2008 at 02:59:37PM +0300, Micha wrote:
> Since these are two laptops, moving the hardrive over won't work so I need to
> do it over the network. What would be the best way to do this? Should I boot
> the new laptop with ubuntu or something or do a base debian install?

you can boot the other laptop with a live cd which has sshd and rsync

Then partition the disk, create the filesystems (and the swap partition,
if any), mount them in the correct place. Say, the / partition is
mounted in /mnt the the home partition in /mnt/home and so on.

Then configure sshd to accept connections as root from your laptop.

> Is there a
> better way, and how do I make sure that the permissions and owners don't change
> and that /proc, /sys, /dev etc. are not copied?

As root on your laptop:

rsync -e ssh -vaczISH --stats --numeric-ids -x / root@$IP-OF-THE-OTHER-LAPTOP:/mnt/

rsync -e ssh -vaczISH --stats --numeric-ids -x /home/ root@$IP-OF-THE-OTHER-LAPTOP:/mnt/home/

and so on

--
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 04-24-2008, 04:13 PM
Ron Johnson
 
Default Copying a complete root parition over a network cable for a new install

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

On 04/24/08 06:59, Micha wrote:
> I need to install debian for a friend of mine that got new machine. Apart for
> the network card driver (which is actually a relative of mine) and the graphics

That's an amusing image...

- --
Ron Johnson, Jr.
Jefferson LA USA

We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIELGbS9HxQb37XmcRAl+IAKDXj1RqjTKjWWIQuOVpaq LgOStxEQCggkwz
2oc5bI+5XSldqW8IP6PeIzY=
=MmIC
-----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 04-24-2008, 08:20 PM
"Javier Barroso"
 
Default Copying a complete root parition over a network cable for a new install

On Thu, Apr 24, 2008 at 5:22 PM, Oleksii.Dzhulai <nixlike@gmail.com> wrote:

The best way to copy whole partition is when it is offline (not used)

Boot both laptops from live-cd's (for example knoppix) and do like

described in this article

dd if=/dev/hda1|nc 192.168.1.1 2222 - on sending laptop

nc -l -p 2222|dd of=/dev/hda1 - on receiving one
Anybody* played with dd / cat* speed.

which count and bs parameters should be the best ?

We currently do:
cat /dev/hda | nc ....
 

Thread Tools




All times are GMT. The time now is 07:18 AM.

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