Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
spostare gentoo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
cron
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 81

PostPosted: Tue Jan 27, 2004 5:40 pm    Post subject: spostare gentoo Reply with quote

ciao atutti ragazzi, come da subject vorrei spostare gentoo da hda1(partizione1) ad hda2(partizione2) chiaramente con tutti i permessi uguali in poche parole fare una copia esatta. Consigli? Grazie
Back to top
View user's profile Send private message
augustus
Apprentice
Apprentice


Joined: 28 Aug 2003
Posts: 173
Location: Italy

PostPosted: Tue Jan 27, 2004 5:41 pm    Post subject: Reply with quote

$ man cp

e dai un'occhiata alla flag a di cp
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Tue Jan 27, 2004 6:25 pm    Post subject: Reply with quote

augustus wrote:
$ man cp

e dai un'occhiata alla flag a di cp

Non e' meglio usare dd per fare una copia esatta?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Tue Jan 27, 2004 6:55 pm    Post subject: Reply with quote

No, cp riesce anche a deframmentare :)
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
cron
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 81

PostPosted: Tue Jan 27, 2004 8:56 pm    Post subject: Reply with quote

cp -a basta secondo voi? Ho letto il man di cp ma mi pare di aver capito che non basta
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Tue Jan 27, 2004 9:02 pm    Post subject: Reply with quote

Basta -a. Ovviamente ti conviene fare la copia della partizione da live CD gentoo o knoppix montando solo lo strettamente necessario (partizione "sorgente" e "destinazione"). Se hai altri filesystem montati all'interno della partizione potrebbe essere utile -x.
Back to top
View user's profile Send private message
Sparker
l33t
l33t


Joined: 28 Aug 2003
Posts: 992

PostPosted: Tue Jan 27, 2004 9:51 pm    Post subject: Reply with quote

dovrebbe bastare anche fare la copia da runlevel 1, senza copiare /proc /sys e simili.
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Tue Jan 27, 2004 10:09 pm    Post subject: Reply with quote

Quando hai spostato ricordati di sistemare l'fstab e il boot!
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Tue Jan 27, 2004 10:51 pm    Post subject: Reply with quote

Sparker wrote:
dovrebbe bastare anche fare la copia da runlevel 1, senza copiare /proc /sys e simili.


sì, esatto. Proprio per questo citavo -x.
Back to top
View user's profile Send private message
gnu-statix
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2003
Posts: 84
Location: Switzerland, Lugano

PostPosted: Tue Jan 27, 2004 10:58 pm    Post subject: Reply with quote

Ciao

io ho provato e ha funzionato a meraviglia.
Ho fatto:
init 1
cp -ax ....
modificato fstab del "nuovo sistema"
aggiustatina a grub

e ha funzionato
_________________
"Se in un primo momento l'idea non è assurda,
allora non c'è nessuna speranza che si realizzi." - Albert Einstein
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Tue Jan 27, 2004 11:00 pm    Post subject: Reply with quote

cron wrote:
cp -a basta secondo voi? Ho letto il man di cp ma mi pare di aver capito che non basta

Io metterei anche -p che mantiene i permessi dei file.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Tue Jan 27, 2004 11:08 pm    Post subject: Reply with quote

fedeliallalinea wrote:

Io metterei anche -p che mantiene i permessi dei file.


man cp wrote:

[...]

-a, --archive

Preserve as much as possible of the structure and attributes of
the original files in the copy (but do not preserve directory
structure). Equivalent to -dpPR.

[...]


-p è compresa in -a. Più che altro mi sembra inquietante il "do not preserve directory structure"... non capisco cosa intendano... la struttura di directory viene ovviamente ricreata (ho regolarmente utilizzato cp -a ad ogni cambio di hd senza problema alcuno)... :?:


Last edited by MyZelF on Tue Jan 27, 2004 11:19 pm; edited 2 times in total
Back to top
View user's profile Send private message
cron
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 81

PostPosted: Tue Jan 27, 2004 11:16 pm    Post subject: Reply with quote

grazie ragazzuoli :D
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Tue Jan 27, 2004 11:26 pm    Post subject: Reply with quote

cerri wrote:
No, cp riesce anche a deframmentare :)


Inoltre dd potrebbe dare problemi se la partizione di partenza e quella di destinazione non sono esattamente della stessa dimensione, o sbaglio?

Ad esempio se la partizione di destinazione è più piccola di quella di partenza e quella di partenza contiene dati verso la fine. :?: :-?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Tue Jan 27, 2004 11:35 pm    Post subject: Reply with quote

MyZelF wrote:
Inoltre dd potrebbe dare problemi se la partizione di partenza e quella di destinazione non sono esattamente della stessa dimensione, o sbaglio?

Ad esempio se la partizione di destinazione è più piccola di quella di partenza e quella di partenza contiene dati verso la fine. :?: :-?

Verissimo non ci avevo pensato.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Wed Jan 28, 2004 2:35 pm    Post subject: Reply with quote

mi sono documentato in giro e il modo migliore è usare il live cd

monti le partizioni di origine e dstinazione e con un cp -a riesci a fare tutto il necessario mantenendo tutti i permessi.


Buona fortuna
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Wed Jan 28, 2004 9:40 pm    Post subject: Reply with quote

cron wrote:
grazie ragazzuoli :D


Ovviamente dicci come hai fatto alla fine e se sei riuscito. I posteri ringrazieranno ;)
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Wed Jan 28, 2004 11:51 pm    Post subject: Reply with quote

io ne ho spostate un bel po' di gentoo eeeee
tutto perfetto

Live-cd + cp -p

ciao
Back to top
View user's profile Send private message
cron
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 81

PostPosted: Thu Jan 29, 2004 1:02 am    Post subject: Reply with quote

ciao shev ma non riesco a copiarlo
ho 2 partizioni ,in una gentoo e nell<altra macosx avevo pensato di copiare gentoo in una cartella nell partizione macosx ma non va<
ho avviato live cd ,ho montato sia gentoo (quello nell<hard disk) che macosx cosi
mount /dev/hdagentoo in una dir creata /mnt/gentoo e
mount /dev/hdamacosx in una dir creata /mnt/macosx ,poi ho fatto cp -a /mnt/gentoo /mnt/macosx/gentoo altra dir creata, ma niente.Penso sia un prob di formattazione di partizioni, secondo voi__?
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu Jan 29, 2004 7:14 am    Post subject: Reply with quote

Se non ci dici l'errore... può anche essere il tostapane che conflitta col frigo :D
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Thu Jan 29, 2004 9:22 am    Post subject: Reply with quote

cerri wrote:
Se non ci dici l'errore... può anche essere il tostapane che conflitta col frigo :D


Saggio cerri :D

Cmq posso chiederti perchè vuoi copiare gentoo in una cartella di macosx? Mi sfugge il senso...
Cmq siamo sicuri che il livecd supporti in scrittura il filesystem di macosx (hfs+ se non sbaglio)? Cmq postaci l'errore esatto, credo sia indispensabile per capire.
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
SteelRage
Apprentice
Apprentice


Joined: 17 Nov 2003
Posts: 192

PostPosted: Thu Jan 29, 2004 10:02 am    Post subject: script Reply with quote

Tempo fa avevo avuto la stessa necessità.
In giro per il forum di gentoo avevo trovato questo post

https://forums.gentoo.org/viewtopic.php?t=28123&highlight=script+cloning+gentoo

Che contiene il codice di uno scrippettino molto utile per clonare una partizione di root di gentoo...
L'ho provato più volte (e lo uso tuttora per fare i backup) e devo dire che funziona bene ed è molto comodo!

Se secondo voi è utile... Direi che si può aggiungere un bel [solved] al topic di questo thread ;-)
ciaociau

Steel
_________________
In the end we only see to change light to dark dark to light light to dark dark to light.
Back to top
View user's profile Send private message
Marculin
Guru
Guru


Joined: 24 Feb 2004
Posts: 376

PostPosted: Mon May 17, 2004 9:11 pm    Post subject: Reply with quote

Spero di non dire una cavolata ma se usassi il mv è la stessa cosa?
Per il cp ho visto che il -a inlcude -R giusto?Che differenza c'è tra -r e -R?Non l'ho capita molto :( grazie


Stavo cercando tra i vecchi post e trovo sempre qualcosa che non avevo letto :)
_________________
Non capisco perchè continuavo ad avere cosi paura della shell.....è cosi bella :)
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Mon May 17, 2004 9:27 pm    Post subject: Reply with quote

da livecd:

Code:
dd if=/dev/hda1 of=/dev/hda2


una copia più fedele di cosi nn si puo' :P
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
Marculin
Guru
Guru


Joined: 24 Feb 2004
Posts: 376

PostPosted: Thu May 20, 2004 12:49 pm    Post subject: Reply with quote

ma per il dd devi avere le partizioni della stessa dimensione...non capisco perchè copiare e poi cancellare...non conviene usare il mv?
_________________
Non capisco perchè continuavo ad avere cosi paura della shell.....è cosi bella :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum