Moderator: ago


Uhmmmm sembra vera..:deadhead:. wrote:mondo rescue con google mi ha dato questo: http://www.microwerks.net/~hugo/

Ho visto... a quanto ne so il programma, allo stato dell'arte, funziona alla grande.fedeliallalinea wrote:@Lupin_III: non e' bello quello che si legge sulla homepage di mondo http://www.mondorescue.org/
E' sicuramente un mirror, perchè nelle news si fa riferimento ad articoli che parlano di mondo-rescue con riferimento alla home page originale www.mondorescue.org.:deadhead:. wrote:mondo rescue con google mi ha dato questo: http://www.microwerks.net/~hugo/
man tar wrote: -C, --directory DIR
change to directory DIR
Code: Select all
# rm -rf /tmp/* /usr/portage/distfiles/* /var/tmp/*
# umount /mnt/*
# cd /
# tar cjpf /stage4_09-01-05.tar.bz2 / --exclude=stage4_09-01-05.tar.bz2 --exclude=/proc --exclude=/sys
Code: Select all
tar: /proc/205/exe: Cannot readlink: No such file or directory
tar: /proc/204/task/204/exe: Cannot readlink: No such file or directory
tar: /proc/204/exe: Cannot readlink: No such file or directory
tar: /proc/206/task/206/exe: Cannot readlink: No such file or directory
tar: /proc/206/exe: Cannot readlink: No such file or directory
tar: /proc/207/task/207/exe: Cannot readlink: No such file or directory
tar: /proc/207/exe: Cannot readlink: No such file or directory
tar: /proc/208/task/208/exe: Cannot readlink: No such file or directory
tar: /proc/208/exe: Cannot readlink: No such file or directory
tar: /proc/289/task/289/exe: Cannot readlink: No such file or directory
tar: /proc/289/exe: Cannot readlink: No such file or directory
tar: /proc/352/task/352/exe: Cannot readlink: No such file or directory
tar: /proc/352/exe: Cannot readlink: No such file or directory
tar: /proc/354/task/354/exe: Cannot readlink: No such file or directory
tar: /proc/354/exe: Cannot readlink: No such file or directory
tar: /proc/355/task/355/exe: Cannot readlink: No such file or directory
tar: /proc/355/exe: Cannot readlink: No such file or directory
tar: /proc/427/task/427/exe: Cannot readlink: No such file or directory
tar: /proc/427/exe: Cannot readlink: No such file or directory
tar: /proc/8408/task/8408/fd/3: Cannot stat: No such file or directory
tar: /proc/8408/fd/3: Cannot stat: No such file or directory
tar: /proc/8808/task: Cannot savedir: No such file or directory
tar: /proc/8808/fd: Cannot savedir: No such file or directory
tar: /proc/8808/mem: File removed before we read it
tar: /proc/8808/cwd: Cannot readlink: No such file or directory
tar: /proc/8808/root: Cannot readlink: No such file or directory
tar: /proc/8808/exe: Cannot readlink: No such file or directory
tar: /proc/10082: Cannot stat: No such file or directory
tar: /proc/10134: Cannot stat: No such file or directory
tar: /stage4_09-01-05.tar.bz2: file changed as we read it
tar: --exclude=: Cannot stat: No such file or directory
tar: --exclude=/proc: Cannot stat: No such file or directory
tar: --exclude=/sys: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Code: Select all
# mv stage4_09-01-05.tar.bz2 /tmp/
# cd /tmp/
# tar jtvf stage4_09-01-05.tar.bz2
Code: Select all
# rm -rf /tmp/*
Code: Select all
lavish@darkstar ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 19G 4.3G 15G 23% /
none 500M 644K 500M 1% /dev
none 500M 0 500M 0% /dev/shm

Code: Select all
tar cvjlp --exclude=stage4.tar.bz2 --exclude=/tmp --exclude=/var/tmp --exclude=/usr/portage/distfiles --exclude=/root/.ccache -f /mnt/backup/nowhere/stage4.tar.bz2 /
Code: Select all
tar cjp --exclude=stage4.tar.bz2 --exclude=/proc --exclude=/sys --exclude=/quello/che/volete -f /stage4.tar.bz2 /
Mah, onestamente leggendo non ci ho fatto troppo caso, in effetti la differenza è subdola, poi nel caso una rapida letta alla man page che mette in fondo filename e/o directory chiarisce rapidamente il punto e uno non ci pensa....lavish wrote:Ma com'e' possibile che non se ne sia accorto nessuno? Hanno letto questo how-to ed il wiki in migliaia di utenti!randomaze wrote:Oibò hai ragione



E` un filesystem virtuale, ti viene creato dal sistema (ponendo sia opportunamente configurato, ma se fai uno stage4 e conservi più o meno le impostazioni del kernel dovrebbe essere così).BlueInGreen wrote:ok...in questo istante il procio sta creando lo stage 4...
ma c'è una cosa che non mi è ancora chiara... chiedo scusa se vi sembresò banale...
se io escludo dal backup la cartella sys...
chi me la ripristinerà?
Se usi udev, ricordati di creare i nodi /dev/console e /dev/null. Dovrebbe essere tutto.Insomma io ho l'hard disk appena formattato, vado di livecd,creo le partizioni, le formatto, le monto. Monto anche il filesystem proc e faccio il chroot.
A quel punto estraggo lo stage4. Configuro il fstab in maniera adeguata e lancio Lilo per sovrascrivere l'mbr.
Dimentico nulla? E la cartella sys??da dove dovrebbe spuntarmi fuori?
Grazie per la pazienza.


Teoricamente se non attivi DevFS al boot dovrebbe essere esattamente come non averlo, quindi dovresti utilizzare udev. Se utilizzi la device tarball (che è il default con udev, se non erro) probabilmente non ti serve creare i due nodi che ho indicato. Io alla fine sono passato ad udev puro (e funziona piuttosto bene), e dunque quei due nodi li ho dovuti creare.BlueInGreen wrote:Uso Udev, ma non puro, nel senso che nel kernel ho ancora il supporto per il dev_fs ma ho disabilitato l'automounting. Ho fatto così perchè ho letto sul wiki che un sistema "ibrido" di questo tipo dovrebbe creare meno problemi. Dici che devo creare comunque qui punti di mount?? Io al monento del passaggio ad udev non ho creato nulla (solo cambiato in xorg.conf il mountpoint del mouse).

Perché tanti --exclude? Secondo me sarebbe meglio rimontare la partizione di root in una sottocartella di mnt:lavish wrote:
Il comando ~esatto (almeno qui fa quello che deve fare) e':
Code: Select all
tar cjp --exclude=stage4.tar.bz2 --exclude=/proc --exclude=/sys --exclude=/quello/che/volete -f /stage4.tar.bz2 /
Code: Select all
mkdir /mnt/backup
mount /dev/hdxx /mnt/backup
tar -cjp --exclude /mnt --exclude /tmp -f /mnt/backup.tar.bz2 /mnt/backup

In effetti mi sembrerebbe una buona soluzione (lasciando comunque tmp tra gli exclude, visto che io ce l'ho sulla stessa partizione). Qualcuno è a conoscenza di qualche controindicazione per questo metodo, che tra l'altro ha anche il vantaggio di includere nell'archivio i file /dev/null e /dev/console necessari a udev?cloc3 wrote: Perché tanti --exclude? Secondo me sarebbe meglio rimontare la partizione di root in una sottocartella di mnt:Code: Select all
mkdir /mnt/backup mount /dev/hdxx /mnt/backup tar -cjp --exclude /mnt -f /mnt/backup.tar.bz2 /mnt/backup


Code: Select all
# pwd
/
# tar cCjpf stage4.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=/proc --exclude=/sys --exclude=/home --exclude=/dev
tar: Codardamente mi rifiuto di creare un archivio vuoto
Usare `tar --help' per ulteriori informazioni.
# tar cCjpf stage4.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=/proc --exclude=/sys
tar: Codardamente mi rifiuto di creare un archivio vuoto
Usare `tar --help' per ulteriori informazioni.
# ls -l
totale 68K
drwxr-xr-x 2 root root 4,0K 4 mar 15:02 bin
drwxr-xr-x 2 root root 123 4 mar 18:18 boot
drwxr-xr-x 5 root root 4,0K 5 mar 14:24 bootcpy
drwxr-xr-x 3 root root 19 5 mar 14:37 chroot
drwxr-xr-x 19 root root 0 5 mar 13:38 dev
drwxr-xr-x 71 root root 8,0K 5 mar 14:28 etc
drwxr-xr-x 17 root root 4,0K 28 gen 17:27 home
drwxr-xr-x 8 root root 4,0K 4 mar 14:58 lib
drwxr-xr-x 6 root root 71 3 mar 00:33 mnt
drwxr-xr-x 5 root root 68 5 mar 00:04 opt
dr-xr-xr-x 81 root root 0 5 mar 13:03 proc
drwx------ 12 root root 4,0K 5 mar 14:11 root
drwxr-xr-x 2 root root 8,0K 5 mar 14:13 sbin
-rw-r--r-- 1 root root 0 5 mar 14:31 stage4.tar.bz2
drwxr-xr-x 10 root root 0 5 mar 13:03 sys
drwxrwxrwt 10 root root 4,0K 5 mar 14:39 tmp
drwxr-xr-x 15 root root 4,0K 3 mar 01:04 usr
drwxr-xr-x 14 root root 4,0K 2 mar 22:55 var
drwxrwxrwx 8 gentoo users 4,0K 4 mar 09:53 wow1