Re: Duplicating current debian install

2002-02-15 Thread Paul Seelig
On Fri, Feb 15, 2002 at 06:03:20PM +0100, Eduard Bloch wrote:
> François Chenais wrote on Fri Feb 15, 2002 um 05:42:06PM:
> > 
> > i want to change my laptop disk from 5 Go to 20 Go
> > But I do not want reinstall my debian.
> 
Normally one installs Debian just once and then simply clones the
existing system.  My own Debian system was first installed in 1996 and
has survived at least two computer changes and three or four hard disk
replacements.  In addition the very same system has been propagated to
five other computer systems so far. ;-)

> > Does a tar enougth ?
> 
Not quite...

> Disk-upgrade-howto says, tar has a serious bug, however I do not know
>
Uh oh!

The problem with GNU tar is that it chokes on very long path names
(like 256 characters or whatever).  Unfortunately it still does. :-(

> what they are talking about. I suggest:
> 
> tar -l -p -s --same-owner --numeric-owner / | tar -l -p -s --same-owner 
> --numeric-owner -C /mount/newdisk
>
After having installed the new disk along to the old one, booting from
a rescue media (www.knopper.net/knoppix is my favourite) and properly
mounting both disk's partitions, i've used the classic

  cd /mnt/oldsystem && tar cpf - . | ( cd /mnt/newsystem && tar xpf -)

The tar problem has bitten me nonetheless. So i'd rather suggest using
the following:

   Install the new disk along to the old one, boot from a rescue
   media, then properly mount both disk's partitions and do

   cd /mnt/oldsystem && cp -a . /mnt/newsystem

Works perfectly and long path names seem to be no problem.

 Good luck, P. *8^)
-- 
If not specific to HP please always reply to 
"Paul Seelig <[EMAIL PROTECTED]>"



Re: Duplicating current debian install

2002-02-15 Thread Osamu Aoki
On Fri, Feb 15, 2002 at 06:03:20PM +0100, Eduard Bloch wrote:
> 
> Disk-upgrade-howto says, tar has a serious bug, however I do not know
> what they are talking about. I suggest:
> 
> tar -l -p -s --same-owner --numeric-owner / | tar -l -p -s --same-owner 
> --numeric-owner -C /mount/newdisk
> 

There were a nice post by a debian developer Manoj Srivastava on this
issue.  He explained "afio" is the only right way.

I copied it to my web page:

  http://qref.sourceforge.net/quick2/ch-tips.en.html#s-ss-cp

  If link is broken, start from
  http://qref.sourceforge.net/quick2/

I may be moving these documents to Debian site (DDP) soon.

Osamu
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ 
+  Osamu Aoki <[EMAIL PROTECTED]>, GnuPG-key: 1024D/D5DE453D  +
+  My debian quick-reference, http://qref.sourceforge.net/quick/  +



Re: Duplicating current debian install

2002-02-15 Thread Eduard Bloch
#include 
Jason Majors wrote on Fri Feb 15, 2002 um 09:49:17AM:

> Do not simply tar/copy/etc. a running /var partition and expect it to start
> properly at the next boot. I forget the specifics, but booting into single
> user allowed me to move it without these problems, so if you do tarballs, go
> single user first.

Be precise. After copying the data, I would boot the Debian installation
disk, go to second console, mount the new root on /mnt, "chroot /mnt".
Then edit fstab (insert new device names), edit lilo.conf (insert new
partitions), run lilo once. Then "exit", "umount /mnt" and "reboot".

Gruss/Regards,
Eduard.
-- 
 installations anleitung für intelx86 richtig ?
 Angel`Eye: Kommt auf deinen Rechner an. Wenn du die Antwort nicht weiß,
   ist sie ja.
-- #debian.de



Re: Duplicating current debian install

2002-02-15 Thread Eduard Bloch
#include 
François Chenais wrote on Fri Feb 15, 2002 um 05:42:06PM:
> Hello, 
> 
>   i want to change my laptop disk from 5 Go to 20 Go
>   But I do not want reinstall my debian.
> 
>   Does a tar enougth ?

Disk-upgrade-howto says, tar has a serious bug, however I do not know
what they are talking about. I suggest:

tar -l -p -s --same-owner --numeric-owner / | tar -l -p -s --same-owner 
--numeric-owner -C /mount/newdisk

Gruss/Regards,
Eduard.
-- 
Die dümmsten Hähne haben die dicksten Eier.



Re: Duplicating current debian install

2002-02-15 Thread Jason Majors
>   i want to change my laptop disk from 5 Go to 20 Go
>   But I do not want reinstall my debian.
> 
I moved my /var once and had some problems, and here's what I learned:
Do not simply tar/copy/etc. a running /var partition and expect it to start
properly at the next boot. I forget the specifics, but booting into single
user allowed me to move it without these problems, so if you do tarballs, go
single user first.

Just a thought...you might want to see what dd can do in the way of disk
imaging.



Duplicating current debian install

2002-02-15 Thread François
Hello, 

i want to change my laptop disk from 5 Go to 20 Go
But I do not want reinstall my debian.

Does a tar enougth ?


François