Live-build persistent oui! Mais pour une seule machine

Salut,

Dans la série live-build : live-manual.fr

Une clés (8 Gio) usb-live (squeeze/lxde) le tout personnalisé à souhait :smiley: et persistante, avec une extension, une swap et une primaire (live-rw)

Cette persistance n’est valable que sur une seule machine.

Trois pc à dispositions.

  • Un premier reboot sur la machine 1, nickel, le réseau est fonctionnel.

  • Reboot sur machine 2 puis 3, nickel, mais les connexions externes ne sont pas opérationnelles.

Je relance [mono]dd if= /home/…/…/binary.img of=/dev/sdb[/mono] et création d’une live-rw (persistent)

  • Reboot sur machine 2, ok. Accès réseau.

  • Reboot sur machine 1 et 3, nickel, sauf que … l’accès réseau et HS!

À nouveau [mono]dd if= /home/…/…/binary.img of=/dev/sdb[/mono] sauf que là, je ne crée pas de live-rw.

Et, cette fois un reboot sur les trois machines est concluant à tout point de vue. :dance:

Mais bon, ce n’est pas vraiment le but, non ?

J’y voyais un très grand intérêt dans cette persistance …

On m’aurait menti ???

Très étrange en effet. C’est comme si il ne voyait pas la partition persistente lorsqu’il démarre sur une autre machine.
As-tu essayé sur 1 seule autre machine ou sur plusieurs? (Le problème vient peut-être d’une seule machine).

Sinon, je n’ai pas d’autres idées à part te proposer d’essayer la dernière version de live-build qui règle peut-être ce bug.
Attention toutefois, désormais la partition persistente devra avoir le label “persistence” et un fichier live-persistence.conf à sa racine.
J’en parle vite fait ici : thuban.toile-libre.org/Logiciel- … ersistence
Sinon la doc de live-manual est sur ton pc :slightly_smiling:

Salut,

C’est bien le cas :mrgreen: !

Au moins deux bêtes de course dans le lot. (128 et 258 Mio de ram) :laughing:

La plus en selle, (la troisième) 1260 Mio.

Dans mon cas, non!

Trois machines, un laptop (portable-1), deux fixes (fixe-1, fixe-2).

La clés lancé une première fois sur l’un deux, quel qu’il soit, condamne les deux autres à n’avoir aucun réseau possible.

Ceci indépendamment de l’ordre du choix de la machine: portable-1, fixe-1 ou fixe-2

Étrange ?

Solution à approfondir, peut être …

Oui j’ai vu cela, je tenterai … :083

[quote]J’en parle vite fait ici : thuban.toile-libre.org/Logiciel- … ersistence
[/quote]
Je ne l’ai pas manqué! :wink:

Je sais, mais … sans résultat probant! :think:

Merci thuban ^¿^

Tu étais au lit avec quelques jeunes éphèbes ?

Pour ton problème de réseau, est ce que ne serait pas lié au chip réseau de la machine ? A drivers différent, ton live build considère des réseaux différents ?

Il faudrait aussi pouvoir récupérer les logs de démarrage du live. Il indique en clair ses essais pour trouver une partition “persistence” lors du boot.

Bonjour,

Je fais un copier coller d’une partie d’un message que j’ai poste sur un tuto sur une live debian personnalisé
Voila un peu mes galeres !!!

ca fait qqs temps (2 a 3 semaines) que je me prend la tete avec live build (3.0~a51-1)
J’ai deja un cle usb avec grub2 et qqs iso de depannage et une xubuntu avec une partition “home-rw” persistente. une autre que j’ai appelle live-rw pour tester avec live build (suivant qqs forums) et j’ai cree une partition nommée « persistence » … a ce moment la tout est monte …mais sans partition nommé « persistence » rien ne se monte !!
Bref pas tres au point la persistence. j’ai contourné le probleme en rajoutant un script dans le repertoire « config/includes.chroot/lib/live/config/ » et ca roule !!!
D’autre part si qqun a reussi a construire une image avec le debian-installer … je suis preneur. au moment de l’installation de l’installer il y a conflit entre grub-pc et grub-legacy ….
Pour rajouter des depots c’est aussi le parcours du combattant !! meme pour ajouter le depot multimedia officiel (pour avidemux et autres) impossible a cause des signatures (pas moyen d’avoir la cle publique du depot pour mettre dans le fichier /config/archives/*.key.chroot) … un moyen de contourner ca rajouter l’options a lb config
–apt-options « –yes –allow-unauthenticated »
c’est pas tres propre ….mais ca marche !!!

Quand au image hybrib-iso elle demarre bien sous virtualbox mais en bootant sur l’image iso sur la clé
j’ai tjrs le message: "modprobe: module swap not found in module.dep"
j’ai bien essaye de rajouter “noswap” sur la ligne de boot …mais rien a faire
Donc je fait une image binary …mais comme j’ai pas envie de foutre le bordel sur ma clé je monte l’image comme cela:
mount -o loop,offset=512 binary.img /mnt/isotmp
Pour ne pas recuperer le secteur de boot et je copie tout le repertoire /mnt/isotmp sur une partition dediée sur ma clef et je mets l’entrée correspondant dans mon grub !!

Bref que du bonheur …et chaque fois il faut recommencer a zero !!
Je vous conseille plutot de recuperer « xubuntu-12.04-desktop-i386.iso »
et de suivre le tutoriel « doc.ubuntu-fr.org/personnaliser_livecd »
je me suis ainsi fait une xubuntu live au petit ognions (1,6 Go l’image iso) avec la persistence que je met a jour regulierment tres facilement et rapidement dans un chroot.
Pas obligé de recommencer a chaque fois j’ai juste qu’a copier l’iso ensuite sur ma cle usb
J’ai aussi essaye mkarchiso mais pas tres clair non plus !! j’ai vite laisse tomber !!

En conclusion : assez demoralisant live-build !!

Cordialement

En conclusion : lire la documentation, ça aide. Il n’y a nullement besoin de toute reprendre à zéro à chaque fois.

Salut,

La persistence est à présent néante :mrgreen: !

J’ai crée …

  • une nouvelle binary.img en y incluant:
--bootappend-live "persistence ..."
  • une partition (ext3) persistence
  • un fichier live-persistence.conf

Un premier boot, en tant qu’user j’ai crée un répertoire /home/user/essai_persistence_30122012_12h03

Un deuxième reboot, pas de persistence, le répertoire essai_persistence_30122012_12h03 n’existe pas :013 !

[code][root@debian] ~ # fdisk -l

Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00078c04

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1308 10498048 83 Linux
/dev/sda2 1308 2435 9052096 5 Extended
/dev/sda5 1308 1389 652288 82 Linux swap / Solaris
/dev/sda6 1389 2434 8396800 83 Linux

Disk /dev/sdb: 8019 MB, 8019509248 bytes
247 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e16ee

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 129 986111+ 83 Linux
Partition 1 has different physical/logical endings:
phys=(1023, 3, 32) logical=(128, 194, 4)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 129 659 4052992 83 Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(122, 195, 10) logical=(128, 194, 5)
Partition 2 has different physical/logical endings:
phys=(627, 86, 35) logical=(658, 25, 46)
Partition 2 does not end on cylinder boundary.
[root@debian] ~ # [/code]

[root@debian] ~ # mount aufs on / type aufs (rw) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sdb1 on /live/image type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro) tmpfs on /live/cow type tmpfs (rw,noatime,mode=755) tmpfs on /live type tmpfs (rw,relatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/sdb2 on /media/persistence type ext3 (rw,nosuid,nodev,uhelper=udisks) [root@debian] ~ #

[root@debian] ~ # ll /live/cow total 0 drwxr-xr-x 12 root root 260 30 déc. 11:11 . drwxrwxrwt 4 root root 80 30 déc. 11:10 .. drwxr-xr-x 15 root root 640 30 déc. 11:11 etc drwxr-xr-x 3 root root 60 30 déc. 10:02 home drwxr-xr-x 2 root root 40 30 déc. 11:10 live drwxr-xr-x 3 root root 60 30 déc. 11:11 media drwxr-xr-x 2 root root 60 30 déc. 11:12 root drwxrwxrwt 2 root root 40 30 déc. 11:11 tmp drwxr-xr-x 4 root root 80 27 déc. 15:46 usr drwxr-xr-x 8 root root 160 27 déc. 15:46 var -r--r--r-- 7 root root 0 30 déc. 11:10 .wh..wh.aufs drwx------ 2 root root 40 30 déc. 11:10 .wh..wh.orph drwx------ 2 root root 80 30 déc. 11:11 .wh..wh.plnk [root@debian] ~ #

[root@debian] ~ # ll /media/persistence total 24 drwxr-xr-x 3 root root 4096 30 déc. 10:53 . drwxr-xr-x 3 root root 60 30 déc. 11:11 .. -rw-r--r-- 1 root root 184 30 déc. 10:54 live-persistence.conf drwx------ 2 root root 16384 30 déc. 10:51 lost+found [root@debian] ~ #

[root@debian] ~ # cat /media/persistence/live-persistence.conf /home /etc union / union /usr union /root union /bin union /sbin union /var union /srv union /mnt union /media union /boot union /lib union /lost+found union /opt union [root@debian] ~ #

  • les logs ne sont guère bavard …

notes: dans ma config (lb config) j’avais inclus (entre autre) l’activation boot.log

[code][root@debian] ~ # cat /etc/default/bootlogd

Run bootlogd at startup ?

BOOTLOGD_ENABLE=yes
[root@debian] ~ #[/code]

[root@debian] ~ # ll /var/log/ total 1173 drwxr-xr-x 12 root root 580 30 déc. 11:11 . drwxr-xr-x 19 root root 160 27 déc. 15:46 .. -rw-r--r-- 1 root root 27278 30 déc. 10:02 alternatives.log drwxr-xr-x 2 root root 34 30 déc. 10:03 apt -rw-r--r-- 1 root root 26909 30 déc. 09:56 aptitude -rw-r----- 1 root adm 2448 30 déc. 11:17 auth.log -rw-r----- 1 root adm 2986 30 déc. 11:11 boot -rw-r----- 1 root adm 31 27 déc. 15:46 boot.0 -rw-r--r-- 1 root root 205228 27 déc. 15:47 bootstrap.log -rw-rw---- 1 root utmp 0 27 déc. 15:46 btmp drwxr-xr-x 2 root root 60 30 déc. 11:11 ConsoleKit drwxr-xr-x 2 root root 3 28 nov. 2011 cups -rw-r----- 1 root adm 9596 30 déc. 11:28 daemon.log -rw-r----- 1 root adm 9933 30 déc. 11:11 debug -rw-r--r-- 1 root root 4612 30 déc. 11:11 denyhosts -rw-r----- 1 root adm 36084 30 déc. 11:11 dmesg -rw-r----- 2 root adm 31 27 déc. 15:46 dmesg.0 -rw-r--r-- 1 root root 590161 30 déc. 10:02 dpkg.log drwxr-s--- 2 Debian-exim adm 60 30 déc. 11:11 exim4 -rw-r----- 1 root adm 8302 30 déc. 11:11 fail2ban.log -rw-r--r-- 1 root root 24024 30 déc. 11:10 faillog -rw-r--r-- 1 root root 1757 30 déc. 09:52 fontconfig.log drwxr-xr-x 2 root root 47 27 déc. 15:46 fsck drwxr-xr-x 2 root root 60 30 déc. 11:11 gdm -rw-r----- 1 root adm 55939 30 déc. 11:11 kern.log -rw-rw-r-- 1 root utmp 292292 30 déc. 11:10 lastlog -rw-r--r-- 1 root root 43 30 déc. 11:10 live.log -rw-r----- 1 root adm 293 30 déc. 11:11 lpr.log -rw-r----- 1 root adm 0 30 déc. 11:11 mail.err -rw-r----- 1 root adm 0 30 déc. 11:11 mail.info -rw-r----- 1 root adm 0 30 déc. 11:11 mail.log -rw-r----- 1 root adm 0 30 déc. 11:11 mail.warn -rw-r----- 1 root adm 45747 30 déc. 11:11 messages drwxr-xr-x 2 root root 100 30 déc. 11:11 news -rw-r--r-- 1 root root 0 30 déc. 09:43 pycentral.log -rw-r----- 1 root adm 66307 30 déc. 11:28 syslog -rw-r----- 1 root adm 0 30 déc. 11:11 user.log -rw-rw-r-- 1 root utmp 7296 30 déc. 11:11 wtmp -rw-r--r-- 1 root root 22925 30 déc. 11:11 Xorg.0.log [root@debian] ~ #

[root@debian] ~ # cat /var/log/live.log No default user for accessibility options. [root@debian] ~ #

[root@debian] ~ # cat /var/log/boot.0 (Nothing has been logged yet.) [root@debian] ~ #

[quote][root@debian] ~ # cat /var/log/boot
Sun Dec 30 11:11:09 2012: Setting parameters of disc: (none).
Sun Dec 30 11:11:09 2012: Setting preliminary keymap…done.
Sun Dec 30 11:11:11 2012: Activating swap…done.
Sun Dec 30 11:11:11 2012: Loading kernel modules…done.
Sun Dec 30 11:11:11 2012: Cleaning up ifupdown…
Sun Dec 30 11:11:11 2012: Setting up networking…
Sun Dec 30 11:11:11 2012: Fast boot enabled, so skipping file system check. … ^[[33m(warning).^[[39;49m
Sun Dec 30 11:11:11 2012: Mounting local filesystems…done.
Sun Dec 30 11:11:11 2012: Activating swapfile swap…done.
Sun Dec 30 11:11:11 2012: Cleaning up temporary files…
Sun Dec 30 11:11:11 2012: Setting kernel variables …done.
Sun Dec 30 11:11:11 2012: Configuring network interfaces…done.
Sun Dec 30 11:11:11 2012: Starting portmap daemon…
Sun Dec 30 11:11:11 2012: Starting NFS common utilities: statd.
Sun Dec 30 11:11:11 2012: Cleaning up temporary files…
Sun Dec 30 11:11:12 2012: Setting up ALSA…done.
Sun Dec 30 11:11:12 2012: Setting console screen modes.
Sun Dec 30 11:11:12 2012: ^[]R^[[9;30]^[[14;30]Skipping font and keymap setup (handled by console-setup).
Sun Dec 30 11:11:12 2012: Setting up console font and keymap…done.
Sun Dec 30 11:11:13 2012: live-boot is configuring sendsigs…
Sun Dec 30 11:11:13 2012: Setting sensors limits.
Sun Dec 30 11:11:13 2012: INIT: Entering runlevel: 2
Sun Dec 30 11:11:13 2012: Using makefile-style concurrent boot in runlevel 2.
Sun Dec 30 11:11:13 2012: Starting NFS common utilities: statd.
Sun Dec 30 11:11:13 2012: Starting portmap daemon…Already running…
Sun Dec 30 11:11:13 2012: Starting enhanced syslogd: rsyslogd.
Sun Dec 30 11:11:13 2012: Checking battery state…done.
Sun Dec 30 11:11:13 2012: Starting ACPI services…
Sun Dec 30 11:11:13 2012: Starting anac(h)ronistic cron: anacron.
Sun Dec 30 11:11:13 2012: Starting system message bus: dbus.
Sun Dec 30 11:11:13 2012: Starting deferred execution scheduler: atd.
Sun Dec 30 11:11:13 2012: Starting periodic command scheduler: cron.
Sun Dec 30 11:11:13 2012: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Sun Dec 30 11:11:14 2012: Starting acpi_fakekey daemon…done.
Sun Dec 30 11:11:14 2012: Starting bluetooth: bluetoothd.
Sun Dec 30 11:11:14 2012: Starting Hardware abstraction layer: hald.
Sun Dec 30 11:11:15 2012: Starting Common Unix Printing System: cupsd.
Sun Dec 30 11:11:15 2012: Starting GNOME Display Manager: gdm.
Sun Dec 30 11:11:15 2012: Starting DenyHosts: denyhosts.
Sun Dec 30 11:11:17 2012: Starting MTA: exim4.
Sun Dec 30 11:11:18 2012: Starting kerneloops:
Sun Dec 30 11:11:18 2012: Loading cpufreq kernel modules…done (none).
Sun Dec 30 11:11:18 2012: CPUFreq Utilities: Setting ondemand CPUFreq governor…disabled, governor not available…done.
Sun Dec 30 11:11:18 2012: saned disabled; edit /etc/default/saned
Sun Dec 30 11:11:19 2012: Starting OpenBSD Secure Shell server: sshd.
Sun Dec 30 11:11:25 2012: Starting anti portscan daemon: portsentry in atcp & audp mode.
[root@debian] ~ # [/quote]

[quote][root@debian] ~ # cat /var/log/ConsoleKit/history
1356865877.906 type=SEAT_ADDED : seat-id=‘Seat1’ seat-kind=0
1356865878.007 type=SEAT_SESSION_ADDED : seat-id=‘Seat1’ session-id=‘Session1’ session-type=’’ session-x11-display=’:0’ session-x11-display-device=’/dev/tty7’ session-display-device=’’ session-remote-host-name=’’ session-is-local=TRUE session-unix-user=1000 session-creation-time=‘2012-12-30T11:11:17.958306Z’
1356865878.019 type=SEAT_ACTIVE_SESSION_CHANGED : seat-id=‘Seat1’ session-id=‘Session1’
1356865888.767 type=SEAT_SESSION_ADDED : seat-id=‘Seat1’ session-id=‘Session7’ session-type=’’ session-x11-display=’’ session-x11-display-device=’’ session-display-device=’/dev/tty6’ session-remote-host-name=’’ session-is-local=TRUE session-unix-user=1000 session-creation-time=‘2012-12-30T11:11:28.640921Z’
1356865888.767 type=SEAT_SESSION_ADDED : seat-id=‘Seat1’ session-id=‘Session6’ session-type=’’ session-x11-display=’’ session-x11-display-device=’’ session-display-device=’/dev/tty1’ session-remote-host-name=’’ session-is-local=TRUE session-unix-user=1000 session-creation-time=‘2012-12-30T11:11:28.619929Z’
1356865888.768 type=SEAT_SESSION_ADDED : seat-id=‘Seat1’ session-id=‘Session5’ session-type=’’ session-x11-display=’’ session-x11-display-device=’’ session-display-device=’/dev/tty4’ session-remote-host-name=’’ session-is-local=TRUE session-unix-user=1000 session-creation-time=‘2012-12-30T11:11:28.589913Z’
1356865888.768 type=SEAT_SESSION_ADDED : seat-id=‘Seat1’ session-id=‘Session4’ session-type=’’ session-x11-display=’’ session-x11-display-device=’’ session-display-device=’/dev/tty3’ session-remote-host-name=’’ session-is-local=TRUE session-unix-user=1000 session-creation-time=‘2012-12-30T11:11:28.550922Z’
1356865888.768 type=SEAT_SESSION_ADDED : seat-id=‘Seat1’ session-id=‘Session3’ session-type=’’ session-x11-display=’’ session-x11-display-device=’’ session-display-device=’/dev/tty2’ session-remote-host-name=’’ session-is-local=TRUE session-unix-user=1000 session-creation-time=‘2012-12-30T11:11:28.535522Z’
1356865888.781 type=SEAT_SESSION_ADDED : seat-id=‘Seat1’ session-id=‘Session2’ session-type=’’ session-x11-display=’’ session-x11-display-device=’’ session-display-device=’/dev/tty5’ session-remote-host-name=’’ session-is-local=TRUE session-unix-user=1000 session-creation-time=‘2012-12-30T11:11:28.521190Z’
[root@debian] ~ # [/quote]

:question: :013

* edit *
Mémo pour mon prochain post …

  • je garde l’image actuel: binary.img

Sachant que ce paramètre est toujours présent sur ma version actuel. :mrgreen:

--bootappend-live "persistence ..."

  • Avant suppression de la partition persistence.

  • Création d’une partition live-rw

  • Reboot sur live-usb

user@debian:~$ ll total 22 drwxr-xr-x 13 user user 320 30 déc. 12:16 . drwxr-xr-x 4 root root 60 30 déc. 10:02 .. -rw-r--r-- 1 user user 5265 27 déc. 14:59 .bashrc drwx------ 3 user user 60 30 déc. 12:16 .cache drwxr-xr-x 5 user user 100 30 déc. 12:16 .config drwx------ 3 user user 60 30 déc. 12:16 .dbus drwxr-xr-x 2 user user 60 30 déc. 12:15 Desktop -rw------- 1 user user 2 30 déc. 12:16 .dmrc drwxr-xr-x 2 user user 120 30 déc. 12:16 .fontconfig drwx------ 3 user user 60 30 déc. 12:16 .gconf drwx------ 2 user user 60 30 déc. 12:16 .gconfd drwx------ 2 user user 40 30 déc. 12:16 .gvfs drwx------ 3 user user 60 30 déc. 12:15 .kde drwx------ 3 user user 60 30 déc. 12:16 .local drwxr-xr-x 2 user user 70 30 déc. 10:02 .ssh -rw-r--r-- 1 user user 19 30 déc. 12:15 .su-to-rootrc -rw------- 1 user user 117 30 déc. 12:16 .Xauthority -rw-r--r-- 1 user user 328 30 déc. 12:16 .xsession-errors user@debian:~$

[code][root@debian] ~ # fdisk -l

Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00078c04

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1308 10498048 83 Linux
/dev/sda2 1308 2435 9052096 5 Extended
/dev/sda5 1308 1389 652288 82 Linux swap / Solaris
/dev/sda6 1389 2434 8396800 83 Linux

Disk /dev/sdb: 8019 MB, 8019509248 bytes
247 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e16ee

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 129 986111+ 83 Linux
Partition 1 has different physical/logical endings:
phys=(1023, 3, 32) logical=(128, 194, 4)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 129 263 1024000 83 Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(122, 195, 10) logical=(128, 194, 5)
Partition 2 has different physical/logical endings:
phys=(250, 63, 5) logical=(262, 128, 20)
Partition 2 does not end on cylinder boundary.
[root@debian] ~ # [/code]

[root@debian] ~ # mount aufs on / type aufs (rw) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sdb1 on /live/image type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro) tmpfs on /live/cow type tmpfs (rw,noatime,mode=755) tmpfs on /live type tmpfs (rw,relatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/sdb2 on /media/live-rw type ext3 (rw,nosuid,nodev,uhelper=udisks) [root@debian] ~ #

[root@debian] ~ # ll /live/cow total 0 drwxr-xr-x 12 root root 260 30 déc. 12:16 . drwxrwxrwt 4 root root 80 30 déc. 12:15 .. drwxr-xr-x 15 root root 640 30 déc. 12:16 etc drwxr-xr-x 3 root root 60 30 déc. 10:02 home drwxr-xr-x 2 root root 40 30 déc. 12:15 live drwxr-xr-x 3 root root 60 30 déc. 12:16 media drwxr-xr-x 2 root root 60 30 déc. 12:17 root drwxrwxrwt 2 root root 40 30 déc. 12:15 tmp drwxr-xr-x 4 root root 80 27 déc. 15:46 usr drwxr-xr-x 8 root root 160 27 déc. 15:46 var -r--r--r-- 7 root root 0 30 déc. 12:15 .wh..wh.aufs drwx------ 2 root root 40 30 déc. 12:15 .wh..wh.orph drwx------ 2 root root 80 30 déc. 12:16 .wh..wh.plnk [root@debian] ~ #

[root@debian] ~ # ll /media/live-rw total 20 drwxr-xr-x 3 root root 4096 30 déc. 12:06 . drwxr-xr-x 3 root root 60 30 déc. 12:16 .. drwx------ 2 root root 16384 30 déc. 12:06 lost+found [root@debian] ~ #

[root@debian] ~ # mkdir /home/user/essai_persistence_live-rw_30122012_13h21

[root@debian] ~ # ll /media/live-rw total 20 drwxr-xr-x 3 root root 4096 30 déc. 12:06 . drwxr-xr-x 3 root root 60 30 déc. 12:16 .. drwx------ 2 root root 16384 30 déc. 12:06 lost+found [root@debian] ~ #

[root@debian] ~ # ll /live/cow/home/user/ total 16 drwxr-xr-x 13 user user 340 30 déc. 12:20 . drwxr-xr-x 3 root root 60 30 déc. 10:02 .. drwx------ 3 user user 80 30 déc. 12:18 .cache drwxr-xr-x 5 user user 100 30 déc. 12:16 .config drwx------ 3 user user 60 30 déc. 12:16 .dbus drwxr-xr-x 2 user user 60 30 déc. 12:15 Desktop -rw------- 1 user user 2 30 déc. 12:16 .dmrc drwxr-xr-x 2 root root 40 30 déc. 12:20 essai_persistence_live-rw_30122012_13h21 drwxr-xr-x 2 user user 120 30 déc. 12:16 .fontconfig drwx------ 3 user user 60 30 déc. 12:16 .gconf drwx------ 2 user user 60 30 déc. 12:16 .gconfd drwx------ 2 user user 40 30 déc. 12:16 .gvfs drwx------ 3 user user 60 30 déc. 12:15 .kde drwx------ 3 user user 60 30 déc. 12:16 .local -rw-r--r-- 1 user user 19 30 déc. 12:15 .su-to-rootrc -rw------- 1 user user 117 30 déc. 12:16 .Xauthority -rw-r--r-- 1 user user 328 30 déc. 12:16 .xsession-errors [root@debian] ~ #

  • Reboot, sans y croire, because …
--bootappend-live "persistence ..."

* edit *

Échec, pas de persistence.

  • À nouveau création d’une nouvelle image: binary.img ayant cette fois pour paramètre …
  • Une fois terminé … création d’une partition live-rw

Un retour dès que possible … :083

live-usb persistente!!! :dance::083:033

  • la création d’une partition (label) live-rw engendre la persistence contrairement à une partition (label) persistence! :mrgreen:

  • Deuxième reboot après la création d’un répertoire /home/user/essai_persistence_live-rx_31122012_16h17

user@debian:~$ ll total 90 drwxr-xr-x 17 user user 4096 30 déc. 15:23 . drwxr-xr-x 4 root root 4096 30 déc. 13:51 .. -rw------- 1 user user 178 30 déc. 15:19 .bash_history -rw-r--r-- 1 user user 5265 30 déc. 13:01 .bashrc drwx------ 3 user user 4096 30 déc. 15:14 .cache drwxr-xr-x 6 user user 4096 30 déc. 15:20 .config drwx------ 3 user user 4096 30 déc. 15:11 .dbus drwxr-xr-x 2 user user 4096 30 déc. 15:19 Desktop -rw------- 1 user user 2 30 déc. 15:23 .dmrc drwxr-xr-x 2 user user 4096 30 déc. 15:16 essai_persistence_live-rx_31122012_16h17 drwxr-xr-x 2 user user 4096 30 déc. 15:11 .fontconfig drwx------ 3 user user 4096 30 déc. 15:23 .gconf drwx------ 2 user user 4096 30 déc. 15:20 .gconfd drwx------ 3 user user 4096 30 déc. 15:19 .gnome2 drwx------ 2 user user 4096 30 déc. 15:19 .gnome2_private drwx------ 2 user user 4096 30 déc. 15:11 .gvfs drwx------ 3 user user 4096 30 déc. 15:10 .kde drwx------ 3 user user 4096 30 déc. 15:11 .local drwx------ 4 user user 4096 30 déc. 15:19 .mozilla drwxr-xr-x 2 user user 70 30 déc. 13:51 .ssh -rw-r--r-- 1 user user 19 30 déc. 15:10 .su-to-rootrc -rw------- 1 user user 117 30 déc. 15:23 .Xauthority -rw-r--r-- 1 user user 288 30 déc. 15:23 .xsession-errors user@debian:~$

user@debian:~$ sudo -s Can't send mail: sendmail process failed with error code 1 [root@debian] /home/user # cd [root@debian] ~ #

[root@debian] ~ # mount aufs on / type aufs (rw) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sdb1 on /live/image type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro) /dev/sdb2 on /live/cow type ext3 (rw,noatime,errors=continue,data=ordered) tmpfs on /live type tmpfs (rw,relatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw) [root@debian] ~ #

[root@debian] ~ # ll /live/cow total 56 drwxr-xr-x 12 root root 4096 30 déc. 15:22 . drwxrwxrwt 4 root root 80 30 déc. 15:22 .. drwxr-xr-x 15 root root 4096 30 déc. 15:22 etc drwxr-xr-x 3 root root 4096 30 déc. 13:51 home drwxr-xr-x 2 root root 4096 30 déc. 15:09 live drwx------ 2 root root 16384 30 déc. 15:01 lost+found drwxr-xr-x 2 root root 4096 30 déc. 15:19 root drwxrwxrwt 2 root root 4096 30 déc. 15:10 tmp drwxr-xr-x 4 root root 4096 30 déc. 13:09 usr drwxr-xr-x 8 root root 4096 30 déc. 13:09 var -r--r--r-- 8 root root 0 30 déc. 15:09 .wh..wh.aufs drwx------ 2 root root 4096 30 déc. 15:09 .wh..wh.orph drwx------ 2 root root 4096 30 déc. 15:10 .wh..wh.plnk [root@debian] ~ #

[root@debian] ~ # ll /live/cow/home/user/ total 84 drwxr-xr-x 16 user user 4096 30 déc. 15:23 . drwxr-xr-x 3 root root 4096 30 déc. 13:51 .. -rw------- 1 user user 178 30 déc. 15:19 .bash_history drwx------ 3 user user 4096 30 déc. 15:14 .cache drwxr-xr-x 6 user user 4096 30 déc. 15:20 .config drwx------ 3 user user 4096 30 déc. 15:11 .dbus drwxr-xr-x 2 user user 4096 30 déc. 15:19 Desktop -rw------- 1 user user 2 30 déc. 15:23 .dmrc drwxr-xr-x 2 user user 4096 30 déc. 15:16 essai_persistence_live-rx_31122012_16h17 drwxr-xr-x 2 user user 4096 30 déc. 15:11 .fontconfig drwx------ 3 user user 4096 30 déc. 15:23 .gconf drwx------ 2 user user 4096 30 déc. 15:24 .gconfd drwx------ 3 user user 4096 30 déc. 15:19 .gnome2 drwx------ 2 user user 4096 30 déc. 15:19 .gnome2_private drwx------ 2 user user 4096 30 déc. 15:11 .gvfs drwx------ 3 user user 4096 30 déc. 15:10 .kde drwx------ 3 user user 4096 30 déc. 15:11 .local drwx------ 4 user user 4096 30 déc. 15:19 .mozilla -rw-r--r-- 1 user user 19 30 déc. 15:10 .su-to-rootrc -rw------- 1 user user 117 30 déc. 15:23 .Xauthority -rw-r--r-- 1 user user 288 30 déc. 15:23 .xsession-errors [root@debian] ~ #

[code][root@debian] ~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr x.x.x.x.x.x.x
inet adr:192.168.1.13 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: x.x.x.x.x.x.x/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:277 errors:0 dropped:0 overruns:0 frame:0
TX packets:367 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:23197 (22.6 KiB) TX bytes:30947 (30.2 KiB)
Interruption:16 Adresse de base:0x2000

eth1 Link encap:Ethernet HWaddr x.x.x.x.x.x.x
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interruption:20

eth1:avahi Link encap:Ethernet HWaddr x.x.x.x.x.x.x
inet adr:169.254.9.229 Bcast:169.254.255.255 Masque:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interruption:20

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)

pan0 Link encap:Ethernet HWaddr ex.x.x.x.x.x.x
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

[root@debian] ~ # [/code]

[code][root@debian] ~ # fdisk -l

Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00078c04

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1308 10498048 83 Linux
/dev/sda2 1308 2435 9052096 5 Extended
/dev/sda5 1308 1389 652288 82 Linux swap / Solaris
/dev/sda6 1389 2434 8396800 83 Linux

Disk /dev/sdb: 8019 MB, 8019509248 bytes
247 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00063164

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 129 986111+ 83 Linux
Partition 1 has different physical/logical endings:
phys=(1023, 3, 32) logical=(128, 194, 4)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 129 664 4096000 83 Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(122, 195, 10) logical=(128, 194, 5)
Partition 2 has different physical/logical endings:
phys=(632, 176, 56) logical=(663, 178, 6)
Partition 2 does not end on cylinder boundary.
[root@debian] ~ # [/code]

  • Reste à voir ce qu’il en sera du réseau en bootant sur machine 2 et 3 … :think:

Bonjour …ou Ia ora na ( si des tahitiens suivent le forum !!)
Merci

C’est sur qu’en gros bourrin que je suis je ne lit pas les docs et je fonce bille en tête. !! reflexe d’un vieux adepte de mandriva peut-être !!). mais j’ai fini par lire ce “F… manual” … comme j’ai vu dans un autre forum …
Mais j’ai toujours pas compris comment on pouvez rajouter un paquets ou mettre a jour sans passer par par un “sudo lb clean”
j’ai bien essayé de faire un “sudo lb clean --binary” sans trop comprendre en quoi consiste l’etape binary !!
et au build: msg d’erreur ne trouve pas de vmlinux* (de memoire …pas trop envie de recommencer tout à zero juste pour avoir le msg d’erreur :whistle: )
Mais je m’aperçois que je doit pas être le seul a ne pas lire le ou les manuels !!
Je joint le petit script que j’ai realise pour monter mon home …si ca peut aider tjrs pour ceux qui lisent pas les manuels. il est de la forme des script d’init.d parce qu’au debut je l’avais mis dans mais ce ne marchait pas ( a mettre dans “config/includes.chroot/lib/live/config/”)
En changeant simplement les variables LABELHOM et UUIDHOM par vos valeurs --> ca marche qqs soit la machine !!!

J’ai du mal a jouter le fichier: (normal j’ai pas lu la doc encore) --> donc copier coller

#! /bin/sh

BEGIN INIT INFO

Provides: local-mount-home

Required-Start: checkfs

Required-Stop:

Default-Start: S

Default-Stop:

Short-Description: Mount user file system

Description:

END INIT INFO

PATH=/sbin:/bin:/usr/bin

#script qui colorie ok en vert au boot a priori !!
. /lib/lsb/init-functions

#PARTHOM=“sdd4”
#UUIDHOM=“e1cd215a-6407-44be-9174-659d7e8b691f”
#LABELHOM=“test”
#pour test
#REPHOM="/hometest"
REPHOM="/home"

###valeur op si ca marche####
LABELHOM=“home-rw”
#suivant la machine ou c’est montée l’appelation de la partition change
#donc recup de la partition en fonction du label
#PARTHOM=ls -l /dev/disk/by-label/|grep $LABELHOM|tr -s " " |cut -d" " -f11|sed 's#[/. ]##g'
PARTHOM=ls -l /dev/disk/by-label/|tr -s " " " "|cut -d " " -f9-|grep "^$LABELHOM ->"|cut -d " " -f3|sed 's#[/. ]##g'
UUIDHOM=“1fa31d17-06a3-48c6-ba08-5263a02c38bd”

do_start()
{

NBRDISK=`ls -l /dev/disk/by-uuid/|grep "$UUIDHOM.*$PARTHOM"|wc -l` 
if [ $NBRDISK -ne 1  ]
then
	echo "l'UUIDHOM ne correspond pas au disque $PARTHOM"
	exit 3
else
	#echo "Trouvé Disque $PARTHOM avec l'UUID: $UUIDHOM"
	NBRMNT=`mount|grep "$PARTHOM.*$REPHOM"|wc -l`
	if [ $NBRMNT -eq 0  ]		
	then
		if [ ! -e "$REPHOM" ] #le rep n existe pas ?
		then
			#echo "le Repertoire $REPHOM n'existe pas Création ..."
			mkdir "$REPHOM"
			echo "Montage du Disque $PARTHOM sur $REPHOM"
			mount "/dev/$PARTHOM" "$REPHOM"
		else
			#echo "le Repertoire $REPHOM existe déjà"
			#NBRFIC=`find $REPHOM -type f |wc -l` test supprimé car présence de fichier mais je m'en fous
			if [ `mount|grep "$REPHOM"|wc -l` -gt 0 ]
			then
				echo "Il y a déja un montage sur le rep: $REPHOM\nle Disque $PARTHOM ne sera pas monté" # ou le rep n'est pas vide"					
			else
				echo "Montage du Disque $PARTHOM sur $REPHOM"
				mount "/dev/$PARTHOM" "$REPHOM"
			fi				
		fi		
	else # sait ton jamais monté plusieurs fois
		if [ $NBRMNT -gt 1  ]			
		then
			echo "le Disque $PARTHOM est deja monté $NBRMNT fois !!!!!"
		else
			echo "le Disque $PARTHOM est deja monté sur `mount|grep "$PARTHOM"|cut -d " " -f3` !!"
		fi
	fi		


fi

}

do_stop ()
{
NBRMNT=mount|grep "$PARTHOM.*$REPHOM"|wc -l
if [ $NBRMNT -ne 0 ]
then
echo “Demontage de $PARTHOM”
umount $REPHOM
else
echo “$PARTHOM n’est pas monté”
fi

}

############debut du programme##########
case “$1” in
start|"")
do_start
;;
restart|reload|force-reload)
do_stop
do_start
;;
stop)
do_stop
;;
*)
echo “Usage: local-mount-home.sh [start|stop]” >&2
exit 3
;;
esac

Salut,

:dance: :violin: :041:033

live-usb persistent et réseau sur les trois machines résolus!!!

* Trois machines

  • machine-1 : 1260 Mio de ram Squeeze/kde4 (pc fixe)

  • machine-2 : 256 Mio de ram Squeeze/pur (pc fixe)

  • machine-3 : 128 Mio de ram Squeeze/lxde (pc portable)

Après moult recherches/essais et les bonnes questions qui en découlent.

  • Causes des dysfonctionnements. Chaise/Clavier :mrgreen: !

Dans mes config et paramètres que j’avais inclus, dont deux par erreurs:

/config/chroot_local-includes/etc/hosts.allow /config/chroot_local-includes/etc/hosts.deny

et je soupçonne également:

/config/chroot_local-includes/etc/sysctl.conf
  • Au final, construction d’une nouvelle image binary.img

* Un premier boot sur la machine-2

[code]user@debian:~$ ping -c3 googlr.fr
PING googlr.fr (216.8.179.25) 56(84) bytes of data.
64 bytes from ptr-216-8-179-25.ptr.nextdimensioninc.com (216.8.179.25): icmp_req=1 ttl=47 time=126 ms
64 bytes from ptr-216-8-179-25.ptr.nextdimensioninc.com (216.8.179.25): icmp_req=2 ttl=47 time=125 ms
64 bytes from ptr-216-8-179-25.ptr.nextdimensioninc.com (216.8.179.25): icmp_req=3 ttl=47 time=125 ms

googlr.fr ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 125.091/125.749/126.449/0.555 ms
user@debian:~$

user@debian:~$ ping -c3 debian-fr.org
PING debian-fr.org (91.121.50.62) 56(84) bytes of data.
64 bytes from chp1.zehome.com (91.121.50.62): icmp_req=1 ttl=52 time=25.5 ms
64 bytes from chp1.zehome.com (91.121.50.62): icmp_req=2 ttl=52 time=25.6 ms
64 bytes from chp1.zehome.com (91.121.50.62): icmp_req=3 ttl=52 time=25.4 ms

debian-fr.org ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 25.420/25.560/25.671/0.104 ms
user@debian:~$
user@debian:~$
user@debian:~$ ping -c3 91.121.50.62
PING 91.121.50.62 (91.121.50.62) 56(84) bytes of data.
64 bytes from 91.121.50.62: icmp_req=1 ttl=52 time=25.3 ms
64 bytes from 91.121.50.62: icmp_req=2 ttl=52 time=26.1 ms
64 bytes from 91.121.50.62: icmp_req=3 ttl=52 time=25.9 ms

— 91.121.50.62 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 25.304/25.789/26.130/0.352 ms
user@debian:~$

user@debian:~$ ping -c3 216.8.179.25
PING 216.8.179.25 (216.8.179.25) 56(84) bytes of data.
64 bytes from 216.8.179.25: icmp_req=1 ttl=47 time=125 ms
64 bytes from 216.8.179.25: icmp_req=2 ttl=47 time=125 ms
64 bytes from 216.8.179.25: icmp_req=3 ttl=47 time=125 ms

— 216.8.179.25 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 125.317/125.508/125.714/0.440 ms
user@debian:~$
[/code]

[code]root@debian:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr x.x.x.x.x.x.x
inet adr:192.168.1.14 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: x.x.x.x.x.x.x/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:74 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:10161 (9.9 KiB) TX bytes:8850 (8.6 KiB)

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:1616 (1.5 KiB) TX bytes:1616 (1.5 KiB)

pan0 Link encap:Ethernet HWaddr x.x.x.x.x.x.x
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@debian:~#[/code]

* Deuxième boot sur la machine-1

[code]user@debian:~$ ping -c2 debian-fr.org
PING debian-fr.org (91.121.50.62) 56(84) bytes of data.
64 bytes from chp1.zehome.com (91.121.50.62): icmp_req=1 ttl=52 time=25.3 ms
64 bytes from chp1.zehome.com (91.121.50.62): icmp_req=2 ttl=52 time=26.4 ms

debian-fr.org ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 25.374/25.906/26.438/0.532 ms
user@debian:~$
user@debian:~$ ping -c2 91.121.50.62
PING 91.121.50.62 (91.121.50.62) 56(84) bytes of data.
64 bytes from 91.121.50.62: icmp_req=1 ttl=52 time=26.0 ms
64 bytes from 91.121.50.62: icmp_req=2 ttl=52 time=25.9 ms

— 91.121.50.62 ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 25.929/25.971/26.014/0.166 ms
user@debian:~$
[/code]

[code]root@debian:~# ifconfig -a
eth1 Link encap:Ethernet HWaddr x.x.x.x.x.x.x.x
inet adr:192.168.1.13 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: x.x.x.x.x.x.x.x/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3687 errors:0 dropped:0 overruns:0 frame:0
TX packets:2827 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:4023264 (3.8 MiB) TX bytes:388526 (379.4 KiB)
Interruption:16 Adresse de base:0x4000

eth2 Link encap:Ethernet HWaddr x.x.x.x.x.x.x.x
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interruption:20

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:700 (700.0 B) TX bytes:700 (700.0 B)

pan0 Link encap:Ethernet HWaddr x.x.x.x.x.x.x.x
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@debian:~#[/code]

* Troisième boot sur machine-3

[code]user@debian:~$ ping -c2 debian-fr.org
PING debian-fr.org (91.121.50.62) 56(84) bytes of data.
64 bytes from chp1.zehome.com (91.121.50.62): icmp_req=1 ttl=52 time=25.6 ms
64 bytes from chp1.zehome.com (91.121.50.62): icmp_req=2 ttl=52 time=25.9 ms

debian-fr.org ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 25.679/25.821/25.964/0.214 ms
user@debian:~$
user@debian:~$ ping -c2 91.121.50.62
PING 91.121.50.62 (91.121.50.62) 56(84) bytes of data.
64 bytes from 91.121.50.62: icmp_req=1 ttl=52 time=26.4 ms
64 bytes from 91.121.50.62: icmp_req=2 ttl=52 time=25.8 ms

— 91.121.50.62 ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 25.818/26.151/26.484/0.333 ms
user@debian:~$

[/code]

[code]root@debian:/home/user# ifconfig -a
eth3 Link encap:Ethernet HWaddr x.x.x.x.x
inet adr:192.168.1.16 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: x.x.x.x.x/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:307 errors:0 dropped:0 overruns:1 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:59551 (58.1 KiB) TX bytes:13767 (13.4 KiB)
Interruption:11 Adresse de base:0xc00

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)

pan0 Link encap:Ethernet HWaddr x.x.x.x.x
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@debian:/home/user#
[/code]

*** En conclusion ***

  • Concernant la persistence.
  • Déclaré le paramètre " persistent " dans le fichier /home/loreleil/usb_live_lxde/conf/binary
  • une fois l’image transféré sur la clés, crée une partition " live-rw "

*** Après chaque création (lb build) un nettoyage (lb clean) et

rm -rf /home/loreleil/usb_live_lxde

* edit *

Il me semble avoir oublier le principale :118

/config/chroot_local-includes/etc/init.d/iptables

Du genre …

[code]…
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -o eth0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 30 --hitcount 10 -j DROP

iptables -A OUTPUT -o eth0 -p udp --sport 68 --dport 67 -j ACCEPT
iptables -A INPUT -i eth0 -p udp --sport 67 --dport 68 -j ACCEPT

iptables -A INPUT -p tcp -i eth0 --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -i eth0 --dport 6787 -j ACCEPT
iptables -A INPUT -p tcp -i eth0 --dport 443 -j ACCEPT

etc …
[/code]
:083

Notes: … Et nul besoin d’un script, quel qu’il soit … :whistle:

Je vous salut … :wink:

Je n’ai pas tout lu mais tu es sur que ça n’est pas betement une histoire des règles udev qui attribue eth0, puis eth1 puis eth2 sauf que seul eth0 et eth1 sont activés au démarrage?

Dans ce cas, un chattr +i sur un fichier /etc/udev/rules.d/70-persistent-net.rules nettoyé devrait arranger les choses

Salut,

Non!

je viens d’adapter le script itables initial et l’ai réactiver sur ma live-usb.

Un reboot sur les trois machines, tout est Ok!

Je suis actuellement sous cette clés … :wink:

Notes:

  • Pour confirmer j’ai replacé le script initial (ci plus haut) alors le boot sur machine-1 et machine-3 me bloque le réseau, c’était donc bien iptables … :033

  • Tout comme sysctl.conf qui est hors de cause.