Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Backup completo di Gentoo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
akx
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2005
Posts: 107
Location: Treviso

PostPosted: Tue Jul 05, 2005 8:43 pm    Post subject: Backup completo di Gentoo Reply with quote

Ho una domanda forse un po' strana da porvi, secondo voi è possibile comprimere i miei /dev/hda2 /boot, /dev/hda4 /root e salvarli in un dvd in modo da poterli estrarre ed avere un sistema precompilato e configurato per il mio portattile in caso che io combini qualche "casino irrecuperabile o quasi" senza riemergere tutto e ricompilare con conseguente perdita considerevole di tempo?
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Tue Jul 05, 2005 8:49 pm    Post subject: Reply with quote

ciao cerca nel forum stage4 : è la risposta alle tue domande :-D
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
akx
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2005
Posts: 107
Location: Treviso

PostPosted: Tue Jul 05, 2005 8:50 pm    Post subject: Reply with quote

grassie ricerco subito...non sapevo esistesse un quarto stage....
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: Tue Jul 05, 2005 9:01 pm    Post subject: Reply with quote

ufficialmente non esiste in effetti,
è stato battezzato cosi dalla comunità ma il nome
è molto coerente e la procedura funziona bene imho
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
GaugeTheory
Apprentice
Apprentice


Joined: 03 Oct 2004
Posts: 212
Location: Genoa, Italy

PostPosted: Tue Jul 05, 2005 10:20 pm    Post subject: Reply with quote

Io ho un clone del mio sistema operativo messo su un'altra partizione.
Semplicemente, da livecd o quant'altro, ho montato la partizione del sistema origine in /mnt/gentoo e una partizione vuota in /mnt/new, poi sono andato in /mnt/new e ho dato un bel
Code:
tar -xccf Sistema.tar /mnt/gentoo
ho spostato il file tar di nuovo in /mnt/gentoo e l'ho scompattato in /mnt/new. Ho fatto un paio di spostamenti, modificato /etc/fstab e da /boot ho messo bootable il sistema-clone, e ora ho un dual boot con sistema origie o sistema clone.

In caso di casini (già fatto molte e molte volte) booto il sistema clone (in cui ovviamente ho spostato il file Sistema.tar), formatto la partizione del sistema origine e ci scompatto sopra Sistema.tar
Ogni tanto aggiorno il file Sistema.tar e vivo felice :)
_________________
Considerate la vostra semenza:.................Consider your seed:
Fatti non foste a viver come bruti,.............You weren't made to live like brutes,
Ma per seguir virtute e conoscenza..........But to follow wisdom and knowledge.
(Dante Alighieri)
Back to top
View user's profile Send private message
wolf3d
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 101
Location: Nibelheim

PostPosted: Wed Jul 06, 2005 12:23 am    Post subject: Reply with quote

GaugeTheory wrote:
tar -xccf


typo error :?:
_________________
The Brave Do Not Fear The Grave
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Wed Jul 06, 2005 8:27 am    Post subject: Reply with quote

semmai tar -cvzpf ......
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Wed Jul 06, 2005 9:29 am    Post subject: Reply with quote

GaugeTheory wrote:
Semplicemente

Code:
dd /dev/hdxn /dev/hdym

credo sia più semplice... veloce... completo...
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: Wed Jul 06, 2005 11:55 am    Post subject: Reply with quote

si puo' fare in molti modi va bene anche un:

Code:
[pulizia tmp files,distfiles,ecc]
cd /
tar cjpf stage4.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=/proc

_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
jesus_was_rasta
Apprentice
Apprentice


Joined: 26 Sep 2004
Posts: 173

PostPosted: Wed Jul 06, 2005 12:21 pm    Post subject: Reply with quote

Qua ho trovato uno scrippetino very very useful!
Ti fa lo stage4 con un minimo di interattività e scartando i dati inutili (tmp e varie)
https://forums.gentoo.org/viewtopic-t-312817-highlight-mkstage4.html
Io lo uso regolarmente e sono very happy! :lol:
Ciao!
Back to top
View user's profile Send private message
akx
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2005
Posts: 107
Location: Treviso

PostPosted: Wed Jul 06, 2005 9:03 pm    Post subject: Reply with quote

X-Drum wrote:
si puo' fare in molti modi va bene anche un:

Code:
[pulizia tmp files,distfiles,ecc]
cd /
tar cjpf stage4.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=/proc


Ma se faccio in questo modo e il file compresso lo masterizzo poi per ripristinare il sistema in caso di guai basta che lo decomprimo all'interno della mia partizione "/"?
Back to top
View user's profile Send private message
maxolo
n00b
n00b


Joined: 21 Mar 2005
Posts: 32
Location: Matera

PostPosted: Wed Jul 06, 2005 10:26 pm    Post subject: Reply with quote

Ciao, essendo anche io interessato al problema mi hanno parlato dello stage4 tempo fa, ho trovato della documentazione utile per me e credo che sia anche al caso tuo: quì il link

[url]
http://www.gentoo-italia.net/article.php?story=20040705123623806
[/url]

Spero di esserti stato utile:)
In bocca al lupo.
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: Thu Jul 07, 2005 1:52 am    Post subject: Reply with quote

akx wrote:
X-Drum wrote:
si puo' fare in molti modi va bene anche un:

Code:
[pulizia tmp files,distfiles,ecc]
cd /
tar cjpf stage4.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=/proc


Ma se faccio in questo modo e il file compresso lo masterizzo poi per ripristinare il sistema in caso di guai basta che lo decomprimo all'interno della mia partizione "/"?


esatto dopo aver partizionato e formattato il disco...
dato che è un archivio in ogni caso anche se hai un partizionamento
particolare (/var,/home,ecc) non c'è problema:
monti tutte le partizioni, e poi via di
Code:
tar xvjpf stage4.tar.bz2 -C /mnt/gentoo/

o giu' di li dipende...
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
akx
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2005
Posts: 107
Location: Treviso

PostPosted: Thu Jul 07, 2005 11:13 pm    Post subject: Reply with quote

ok, quindi che cosa mi consigliate di eliminare oltre ai distfiles prima di comprimere il tutto?
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: Thu Jul 07, 2005 11:15 pm    Post subject: Reply with quote

beh io credo di si (sempre che tua abbia una connessione inet)
poi questo è cio che io farei e faccio di solito, ma ognuno ha
esigenze differenti
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Thu Jul 21, 2005 8:21 pm    Post subject: Reply with quote

Ho dato il comando
Code:
# tar cjpf stage4.home.tar.bz2 /home/user
tar: Removing leading `/' from member names

cosa significa quell'output?

Cmq sta andando avanti a comprimere.

Andrea
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Thu Jul 21, 2005 9:38 pm    Post subject: Reply with quote

akx wrote:
ok, quindi che cosa mi consigliate di eliminare oltre ai distfiles
Io non eliminerei nulla, bensì userei l'opzione --exclude di tar. Molto potente , ma leggi il man o l'help in linea a riguardo. I distfiles se li cancelli e poi devi aggiornare un pacchetto perchè ne è uscita una patch t dovrai riscaricare i sorgenti, con lavoro evitabile da parte di uno dei mirror server in giro per il mondo.

@bandreabis
ipotizzo che tar ti stia avvertendo che non sta salvando tutti i tuoi file memorizzandone la posizione assoluta, bensi relativa, ergo quando scompatterai i files non te li metterà sotto
Code:
/home/user
bensì in
Code:
$cartella_dove_sei_ora/home/user

_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
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
Page 1 of 1

 
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