[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrade disco rigido



mercoledì 31 ottobre 2001, alle 12:26, Luigi Montella:
: 
: 
: 
: On Wed, Oct 31, 2001 at 09:42:59AM +0100, /dev/null wrote:
: > On Wed, Oct 31, 2001 at 01:02:47AM +0100, Giuliano Grandin wrote:
: > > 2.6 Moving directories between filesystems. Alan Cox,
: > > A.Cox@swansea.ac.uk       
: > >                                                                                 
: > >    Quick way to move an entire tree of files from one disk to
: > > another           
: > >                                                                                 
: > >  (cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xvfp
: > > -)     
: > Ohmygosh!
: > Comunque ne ho vista una ancora più fuori di testa:
: > # mkfifo /tmp/tubo
: > # cd /source/directory
: > # tar cf /tmp/tubo . &
: > # cd /dest/directory
: > # tar xf /tmp/tubo
: 
: aaaaaaAAA!!!!
: 
: cd /
: find . -print|cpio -pdmu /dir/destinazione/
: 
Prima di tutto grazie a tutti,
	il mio problema, e nella mia prima mail non sono stato chiaro, è
questo: quando copio / (con tar, cpio, o cp -ax) cosa succede al
contenuto dei file system che hanno mount point in /. Vi do qualche
dettaglio in più. Le partizioni del vecchio disco sono 
/dev/hda9 on / type ext2 
/dev/hda6 on /home type ext2 
/dev/hda7 on /opt type ext2 
mettendo il disco nuovo queste partizioni diventano:
/dev/sda9 on /mnt/old_deb_root type ext2 
/dev/sda6 on /mnt/old_deb_home type ext2 
/dev/sda7 on /mnt/old_deb_opt type ext2 
mentre il disco nuovo è:
/dev/hda10 on /mnt/deb_root type ext2 
/dev/hda11 on /mnt/deb_home type ext2 
/dev/hda12 on /mnt/deb_opt type ext2 
sotto /mnt/old_deb_root ovviamente c'è home che è il mount point di
/deb_home. Non è che viene copiato come directory? 

	Ancora grazie
	Stefano
	
-- 
Stefano Canepa e-mail: sc@linux.it

To follow the path: look at the master, follow the master, walk with the
master, see trough the master, become the master.



Reply to: