Résolu le 7-12-21 inclure partclone dans la live key mint

Assistance concernant Linux Mint
Répondre
Avatar du membre
winux M
Messages : 86
Enregistré le : dim. 25 juil. 2021 07:27

Re: inclure partclone dans la live key mint

Message par winux M »

Dernier message de la page précédente :

C'était trop beau !!!
C'est assez invraisemblable. Je recommence la même manip en suivant mon tuto (qui a marché une fois), depuis le même PC Dell, en utilisant la même ISO.

J'ai essayé avec 2 clés différentes, une de 4 Go et une de 16 Go et j'obtiens ce message qui ne me parle pas.
https://goopics.net/i/c1wxkd

C'est quoi ce magic number ???
j'espère que vous en savez plus que moi sur le sujet car Je suis bloqué là
Merci pour votre aide et @+
DELL portable Pro / 14" Mint 21
SSD 480 Go / RAM 16 Go
i5-7200U / 2.50 GHz x 2
Linux Mint 21.1
Noyau : 5.15.0-67
Cinnamon 5.6.7

falke
Messages : 595
Enregistré le : mar. 3 oct. 2017 21:28

Re: inclure partclone dans la live key mint

Message par falke »

@winux M le magic number a à voir avec le mbr (c'en est une partie)

https://fr.wikipedia.org/wiki/Master_boot_record

le mbr de la clé doit être corrompu.

Donc sur cette deuxième clé ce que je ferai , je recréerai la table de partition ms-dos avec gparted (qui recréera le mbr) avant de l'utiliser.

(évidemment ça effacera tout ce qu'elle contenait jusque là)

Nb : Bizarre quand même que ça le fasse sur les deux clés..

@winux M le magic number a à voir avec le mbr (c'en est une partie)

https://fr.wikipedia.org/wiki/Master_boot_record

le mbr de la clé doit être corrompu.

Donc sur cette deuxième clé ce que je ferai , je recréerai la table de partition ms-dos avec gparted (qui recréera le mbr) avant de l'utiliser.

(évidemment ça effacera tout ce qu'elle contenait jusque là)

Nb : Bizarre quand même que ça le fasse sur les deux clés..

Autre info par rapport à la taille des logs et de la place dispo sur ta clé en général : j'ai lu hier que sur une clé live supprimer des application (et je suppose des fichier en général ne libérait pas de place , voire même pouvait en occuper davantage.
Malheureusement je n'arrive par à retrouver le site sérieux qui l'affirmait avec argument à la clé.

En conséquence, je pense effectivement comme le dit Cyrille que tu devrait limiter la taille des logs, dès la création de ta clé , et encore mieux (si c'est possible je sais pas, renoncer à l'usage de log pour ce type d'utilisation)
System:
Host: falke-MacBookAir Kernel: 5.15.0-91-generic x86_64 bits: 64
Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia

Machine:
Type: Laptop System: Apple product: MacBookAir7,2 v: 1.0
Autre Distro : Debian Sid et Endeavour en triple boot sur Btrfs. Noyau change tout le temps ..

Avatar du membre
winux M
Messages : 86
Enregistré le : dim. 25 juil. 2021 07:27

Re: inclure partclone dans la live key mint

Message par winux M »

Bon me revoici.
Ca marche sur une 3e clé. J'en conclus que ça dépend bien des clés.
Bien noté pour le MBR mais avant de reformater les 2 clé j'avais, au moins sur l'une d'entre elles, crée une table de partition ce qui aurait dû régler le Pb du MBR erroné si j'ai bien compris.

Je vais recommencer avec une 4e
Merci pour tout, j'attaque !!
DELL portable Pro / 14" Mint 21
SSD 480 Go / RAM 16 Go
i5-7200U / 2.50 GHz x 2
Linux Mint 21.1
Noyau : 5.15.0-67
Cinnamon 5.6.7

Avatar du membre
winux M
Messages : 86
Enregistré le : dim. 25 juil. 2021 07:27

Re: inclure partclone dans la live key mint

Message par winux M »

Bonsoir

Bien compris le magic number.
Je n'ai pas trouvé d'autre solution, ainsi que cela a été mentionné, que de :
- refaire la table de partition en ms-dos (en principe je reconstruis mon MBR)
- suivi d'un formatage en fat32 (passe partout)

Néanmoins no change, mon magic number est toujours faux, je n'y comprends rien.
Et pourquoi sur certaines clés et pas d'autres !!! ....
Bonne soirée
DELL portable Pro / 14" Mint 21
SSD 480 Go / RAM 16 Go
i5-7200U / 2.50 GHz x 2
Linux Mint 21.1
Noyau : 5.15.0-67
Cinnamon 5.6.7

Avatar du membre
winux M
Messages : 86
Enregistré le : dim. 25 juil. 2021 07:27

Re: inclure partclone dans la live key mint

Message par winux M »

J'ai fait une dernière tentative en formatant en NTFS ce qui n'a rien changé.
Au cas où vous seriez intéressé par le détail

voici un extrait du terminal lors de l'installation

Code : Tout sélectionner

gerard@DELL-14:~$ sudo gparted
[sudo] Mot de passe de gerard :          
Unit boot.mount does not exist, proceeding anyway.
Unit tmp.mount does not exist, proceeding anyway.
GParted 1.0.0
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.3
gerard@DELL-14:~$ mkusb
---------------------------------------------------------------------
Usage: mkusb [input-file]      # optional parameter
---------------------------------------------------------------------
d:  dus , guidus, mkusb-dus    - Classic, easy to use
p: Plug,   mkusb-plug          - New, easy to use
n: NoX,    sudo mkusb-nox      - original text mode
b: Bas,    sudo mkusb-bas      - basic text mode for old/basic linux
e: Eleven, sudo -H mkusb-11    - Old user interface
q: Quit
---------------------------------------------------------------------
Select version of mkusb (d/p/n/b/e/q) d
 dus 12.7.1 
live system or temporary superuser permissions
Drive that contains source file: /dev/sda
Live drive, that is booted from: /dev/sda
cands=1
sdb
Lexar_USB_Flash_Drive
14,9G
usb
USB or memory card
p_target: target=/dev/sdb
target drive size = 16 GB
live system or temporary superuser permissions
Les fichiers binaires /usr/share/mkusb/grub.img.xz et /usr/share/mkusb/grub-0.img.xz sont différents
settings=msdos
percent=50
Prepare  persistent live  system from
'/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso'
to the target device (drive) '/dev/sdb'
MODEL           NAME FSTYPE LABEL  SIZE
USB_Flash_Drive sdb               14,9G
                sdb1 ntfs         14,9G
/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
/dev/sdb
50
settings=msdos
-----
live system or temporary superuser permissions
/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
/dev/sdb
50
settings=msdos
source=/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
target=/dev/sdb
percent=50
msdos=true
upefi=false
dni=false
source=/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
ls -l  /home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
-rwxrwxrwx 1 gerard gerard 2162147328 déc.   1 07:43 /home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
---------------------------------------------------------------------------
start [dus-persistent 12.7.1] @ 2021-12-16 20:20:15
---------------------------------------------------------------------------
Making a USB boot drive or memory card ..........................
grep: /etc/upstream-release: est un dossier
running operating system:  linuxmint 

 You are trying to make a persistent live drive when running an operating
system, which is neither Debian nor Ubuntu. Maybe it will work in either
UEFI or BIOS mode, but you must probably tweak it manually. 

Press Enter to continue  Good luck :-) 
grub_n_iso "$source" "$target" "$result"
grub_n_iso /home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso /dev/sdb 
***** tu=/dev/sdb ****************************************************
selected target partition table: 'msdos'
mount: /tmp/dus.WJ1k10xhXM: WARNING: device write-protected, mounted read-only.

 You are trying to make a persistent live drive of an operating system,
 which is neither Debian nor Ubuntu. You must probably tweak it manually. 

 Good luck :-) 
---------------------------------------------------------------------------
mount: /tmp/dus.e057DUD5Vv: WARNING: device write-protected, mounted read-only.
select_boot_system: usb-pack_efi is available
select_boot_system: usb-pack_efi: using variable 'upefi=false'
item 00
'/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso' is identified as the source ISO file
<pre>
MODEL           NAME   FSTYPE LABEL MOUNTPOINT  SIZE
USB_Flash_Drive sdb                            14,9G
                `-sdb1 ntfs                    14,9G
</pre>
Using the file '/usr/share/mkusb/grub.cfg'
item 10
Clean for a GUID partition table
GPT fdisk (gdisk) version 1.0.5

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************


Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.

Command (? for help): This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): 
Command (? for help): 
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdb.
The operation has completed successfully.
Wipe the first megabyte (mibibyte) to get a clean boot area
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,274695 s, 3,8 MB/s
Wait 5 seconds and a little more ...
item 20
 Installed systems in UEFI mode: 'grub.img' to be used 
---------------------------------------------------------------------------
 Selected percentage of remaining space for persistence = 50 
---------------------------------------------------------------------------
 
partition 2 - bios_grub  installing via 'grub.img'
partition 3 - fat32 boot,efi        via 'grub.img' ...
62989+0 records in
62989+0 records out
258002944 bytes (258 MB, 246 MiB) copied, 48,4036 s, 5,3 MB/s
GPT fdisk (gdisk) version 1.0.5

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help): 
Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.

Problem: The secondary header's self-pointer indicates that it doesn't reside
at the end of the disk. If you've added a disk to a RAID array, use the 'e'
option on the experts' menu to adjust the secondary header's and partition
table's locations.

Identified 2 problems!

Command (? for help): 
Expert command (? for help): Relocating backup data structures to the end of the disk

Expert command (? for help): 
Recovery/transformation command (? for help): 
Recovery/transformation command (? for help): 
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdb.
The operation has completed successfully.
partition 1 - ntfs 'usbdata'
partition 4 - iso9660 - cloned system
Warning: The resulting partition is not properly aligned for best performance: 503907s % 2048s != 0s
partition 5 - ext4 - for persistence
item 30
 using grub.img: keeping file system of /dev/sdb3:  
item 40
preparing /dev/sdb1  ------------------------------------------------
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 1,63836 s, 640 kB/s
umount: /dev/sdb1: not mounted.
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
Creating root directory (mft record 5)
Creating $MFT (mft record 0)
Creating $MFTMirr (mft record 1)
Creating $LogFile (mft record 2)
Creating $AttrDef (mft record 4)
Creating $Bitmap (mft record 6)
Creating $Boot (mft record 7)
Creating backup boot sector.
Creating $Volume (mft record 3)
Creating $BadClus (mft record 8)
Creating $Secure (mft record 9)
Creating $UpCase (mft record 0xa)
Creating $Extend (mft record 11)
Creating system file (mft record 0xc)
Creating system file (mft record 0xd)
Creating system file (mft record 0xe)
Creating system file (mft record 0xf)
Creating $Quota (mft record 24)
Creating $ObjId (mft record 25)
Creating $Reparse (mft record 26)
Syncing root directory index record.
Syncing $Bitmap.
Syncing $MFT.
Updating $MFTMirr.
Syncing device.
mkntfs completed successfully. Have a nice day.
preparing /dev/sdb5  ------------------------------------------------
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 1,65166 s, 635 kB/s
umount: /dev/sdb5: not mounted.
mke2fs 1.45.5 (07-Jan-2020)
Creating filesystem with 1655808 4k blocks and 414528 inodes
Filesystem UUID: ff59bda7-732e-49a3-8b98-9fefb0e3f1c1
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

item 50
mount: /tmp/dus.e057DUD5Vv: /home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso is already mounted.
fatlabel: warning - lowercase labels might not work properly with DOS or Windows
Ubuntu or an Ubuntu family flavour

*** Ubuntu version not found ***
label on partition for persistence: 'casper-rw'
tune2fs 1.45.5 (07-Jan-2020)
---------------------------------------------------------------------------
source=/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
---------------------------------------------------------------------------
item 60
umount: /dev/sdb3: not mounted.
mount /dev/sdb3 /tmp/dus.mEZohd2z1E
/dev/sdb3       241M   15M  226M   7% /tmp/dus.mEZohd2z1E
item 65
umount: /dev/sdb1: not mounted.
/dev/sdb1       6,4G   33M  6,3G   1% /tmp/dus.PFqtR35Aev
 use 'grub.img' so do not remove files:  
item 70
 UEFI Bootloader:  using grubimg (template image)
item 80
 Bootloaders via 'grub.img', skipping 'usb-pack_efi':  
set timeout=10
set default=0
menuname: Mint-20.2-cinnamon-64bit.iso
 keep current security upgrade settings 
umount: /dev/sdb4: not mounted.
umount: /dev/sdb5: not mounted.
---------------------------------------------------------------------------
do_n_show:
&lt; "/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso" pv -ni2 | dd of=/dev/sdb4 bs=4096
 
( < "/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso" pv -ni2 | dd of=/dev/sdb4 bs=4096 && echo 'Done' > /dev/stderr ) 2>&1 || ( echo '# failed';sleep 1 )
Please wait for sync (flushing file system buffers to the device)
until 'Done' is written ...
/usr/bin/watch-flush
----- cleanup after writing ------------------------------------------
   4044 pts/0    00:00:00 watch-flush
umount: /dev/sdb: not mounted.
umount: /dev/sdb2: not mounted.
umount: /dev/sdb4: not mounted.
umount: /dev/sdb5: not mounted.
'pv %'; 'dd final output'
48
97
100
do_n_show: Work done
---------------------------------------------------------------------------
Syncing the target device ...
item 90
Wait 5 seconds and a little more ...
<pre>
parted -s "/dev/sdb" print
Model: Lexar USB Flash Drive (scsi)
Disk /dev/sdb: 16,0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 2      1000kB  2000kB  1000kB               primary  bios_grub
 3      2000kB  258MB   256MB   fat32        primary  boot, esp
 4      258MB   2440MB  2182MB               primary
 5      2440MB  9222MB  6782MB  ext2         primary
 1      9222MB  16,0GB  6781MB  ntfs         primary  msftdata

lsblk -o MODEL,NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE "/dev/sdb"
MODEL           NAME   FSTYPE  LABEL                           MOUNTPOINT   SIZE
USB_Flash_Drive sdb                                                        14,9G
                |-sdb1 ntfs    usbdata                                      6,3G
                |-sdb2                                                      977K
                |-sdb3 vfat    usbboot                                    244,1M
                |-sdb4 iso9660 Linux Mint 20.2 Cinnamon 64-bit                2G
                `-sdb5 ext4    casper-rw                                    6,3G
</pre>
 Done :-) 
The target device is ready to use.
'/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso'
was installed
item 100
Cleanup after dus-persistent finished :-)
Cleanup after dus-persistent finished :-)
---------------------------------------------------------------------------
Total time used [by dus-persistent] = 841 s; 00:14:01
p_clean:
live system or temporary superuser permissions
clean if necessary and return
clean if necessary and quit
gerard@DELL-14:~$ 
et quelques points qui m'ont paru bizarre au sein de ce texte.
Peuvent ils expliquer le bad magic number ??

Code : Tout sélectionner

Les fichiers binaires /usr/share/mkusb/grub.img.xz et /usr/share/mkusb/grub-0.img.xz sont différents
mount: /tmp/dus.WJ1k10xhXM: WARNING: device write-protected, mounted read-only.

Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
writing new GUID partition table (GPT) to /dev/sdb.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged
  Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. 
writing new GUID partition table (GPT) to /dev/sdb.
The operation has completed successfully.
Voilà j'ai atteint mes limites. De toute façon j'ai 2 clés qui fonctionnent.
J'aurais juste aimé savoir pourquoi les 2 autres se rebellent ??
Bonne soirée
DELL portable Pro / 14" Mint 21
SSD 480 Go / RAM 16 Go
i5-7200U / 2.50 GHz x 2
Linux Mint 21.1
Noyau : 5.15.0-67
Cinnamon 5.6.7

Avatar du membre
winux M
Messages : 86
Enregistré le : dim. 25 juil. 2021 07:27

Re: inclure partclone dans la live key mint

Message par winux M »

Bonjour

Je ne lâche pas l'affaire (pas Breton pour rien !!)
Je tente avec une 5e clé de 4Go !!!
je trouve en cours d'installe les éléments qui m'indiquent que ça ne va pas marcher, et bingo ça marche pas !!

Code : Tout sélectionner

backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Command (? for help): 
Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.

Problem: The secondary header's self-pointer indicates that it doesn't reside
at the end of the disk. If you've added a disk to a RAID array, use the 'e'
option on the experts' menu to adjust the secondary header's and partition
table's locations.

partition 4 - iso9660 - cloned system
Warning: The resulting partition is not properly aligned for best performance: 503907s % 2048s != 0s
Je ne pige pas pourquoi il ne retrouve pas ses petits sur une clé
avec une nouvelle table de partition ms-dos et un formatage en fat32.

Si je n'avais pas réussi sur 2 clés je dirais, conformément à leur warning , que c'est dû au fait que l'iso n'est ni Ubuntu ni Debian !!

Avez vous une idée sur la cause de ce grand mystère qui pour le moment fait un match à
3 pour "magic number no good"
et 2 pour "tout va bien" !!

Je tente sur une 6e clé pour voir si je vais réussir à égaliser !!
Bonne journée
DELL portable Pro / 14" Mint 21
SSD 480 Go / RAM 16 Go
i5-7200U / 2.50 GHz x 2
Linux Mint 21.1
Noyau : 5.15.0-67
Cinnamon 5.6.7

Avatar du membre
winux M
Messages : 86
Enregistré le : dim. 25 juil. 2021 07:27

Re: inclure partclone dans la live key mint

Message par winux M »

6e clé OUT

Le match passe à
4 pour "invalid Magic number"
2 pour "ça démarre sans Pb avec persistance"

Je commence à saturer et surtout sans savoir pourquoi 2 OK et 4 OUT
Ce soir essai sur une 7e clé de 8 Go et si ça ne colle pas je lâche vraiment l'affaire, parfois il faut savoir rester lucide face à la dure réalité.

Bonne journée, vos idées sont bien sûr les bienvenues !!
je ne vais pas revenir à Ubuntu quand même !!!
DELL portable Pro / 14" Mint 21
SSD 480 Go / RAM 16 Go
i5-7200U / 2.50 GHz x 2
Linux Mint 21.1
Noyau : 5.15.0-67
Cinnamon 5.6.7

falke
Messages : 595
Enregistré le : mar. 3 oct. 2017 21:28

Re: inclure partclone dans la live key mint

Message par falke »

Slt.

1 )Compare dans Gparted le type de table de partition d'une clé livesub sui marche et d'une qui marche pas.

Récrée une table de partition à l'identique de ta clé qui marche... Et retente la création de la clé KO.

2 ) Si ça va toujours pas je crois qu'il faudra Zeroifier la clé KO. Pour se débarrasser de ce mbr corrompu puis relance la procédure de création
de la clé avec mkusb :

pour zéroifier ta clé , la procédure est ici :

Attention [DISCLAIMER], je décline toute responsabilité pour les dommages qui pourraient survenir pour ta clé, si tu y tiens , ni pour une erreur d'indication du disque a effacer qui pourrait d'effacer un autre disque !!!
si tu n'as pas bien répéré le disque qui correspondait à ta clé (donc syntaxe à adapter à ton cas)

dd if=/dev/zero of=/dev/sdb bs=512 count=1 << -- adapter remplacer /dev/sdb par le disque réprésentant ta clé (sans mettre de numéro de partition) en faisant bien GAFFE

ne pas retirer ta clé pendant le processus, tu peux ouvrir un autre terminal et voir en tapant la commande top si le processus dd tourne toujours.
Normalement le terminal d'où tu as lancé dd te rendra la main (retour à l'invite) lorsque ce sera fini

@ +
System:
Host: falke-MacBookAir Kernel: 5.15.0-91-generic x86_64 bits: 64
Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia

Machine:
Type: Laptop System: Apple product: MacBookAir7,2 v: 1.0
Autre Distro : Debian Sid et Endeavour en triple boot sur Btrfs. Noyau change tout le temps ..

Avatar du membre
winux M
Messages : 86
Enregistré le : dim. 25 juil. 2021 07:27

Re: inclure partclone dans la live key mint

Message par winux M »

merci pour ta réponse falke

Voici les derniers rebonds
essai avec 7e clé de 8 Go : no good

donc finalement 2 réussites sur 7 avec des clés de "marque" : Transcend et Corsair
Est-ce la raison de cette réussite ? ton succès a-t-il eu lieu sur une clé "noname"

Je rembobine l'installation en suivant ta recommandation

Table partition clé OK et pas OK toutes 2 GPT
https://goopics.net/i/qjhl8d

RZ MBR
https://goopics.net/i/hmqt3r

créer table partition
https://goopics.net/i/e2l2u4

en msdos
https://goopics.net/i/qgcy7n

partitionnement en fat32
https://goopics.net/i/4ofu9i

installation

Code : Tout sélectionner

gerard@DELL-14:~$ mkusb
---------------------------------------------------------------------
Usage: mkusb [input-file]      # optional parameter
---------------------------------------------------------------------
d:  dus , guidus, mkusb-dus    - Classic, easy to use
p: Plug,   mkusb-plug          - New, easy to use
n: NoX,    sudo mkusb-nox      - original text mode
b: Bas,    sudo mkusb-bas      - basic text mode for old/basic linux
e: Eleven, sudo -H mkusb-11    - Old user interface
q: Quit
---------------------------------------------------------------------
Select version of mkusb (d/p/n/b/e/q) d
 dus 12.7.1 
[sudo] Mot de passe de gerard :          
live system or temporary superuser permissions
Drive that contains source file: /dev/sda
Live drive, that is booted from: /dev/sda
cands=1
sdb
fafa_fafa
 7,6G
usb
USB or memory card
p_target: target=/dev/sdb
target drive size = 8 GB
live system or temporary superuser permissions
Les fichiers binaires /usr/share/mkusb/grub.img.xz et /usr/share/mkusb/grub-0.img.xz sont différents
settings=msdos
percent=50
Prepare  persistent live  system from
'/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso'
to the target device (drive) '/dev/sdb'
MODEL NAME FSTYPE LABEL  SIZE
fafa  sdb                7,6G
      sdb1 vfat          7,6G
/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
/dev/sdb
50
settings=msdos
-----
live system or temporary superuser permissions
/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
/dev/sdb
50
settings=msdos
source=/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
target=/dev/sdb
percent=50
msdos=true
upefi=false
dni=false
source=/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
ls -l  /home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
-rwxrwxrwx 1 gerard gerard 2162147328 déc.   1 07:43 /home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
---------------------------------------------------------------------------
start [dus-persistent 12.7.1] @ 2021-12-17 18:22:16
---------------------------------------------------------------------------
Making a USB boot drive or memory card ..........................
grep: /etc/upstream-release: est un dossier
running operating system:  linuxmint 

 You are trying to make a persistent live drive when running an operating
system, which is neither Debian nor Ubuntu. Maybe it will work in either
UEFI or BIOS mode, but you must probably tweak it manually. 

Press Enter to continue 
 Good luck :-) 
grub_n_iso "$source" "$target" "$result"
grub_n_iso /home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso /dev/sdb 
***** tu=/dev/sdb ****************************************************
selected target partition table: 'msdos'
mount: /tmp/dus.YktPmCQuEo: WARNING: device write-protected, mounted read-only.

 You are trying to make a persistent live drive of an operating system,
 which is neither Debian nor Ubuntu. You must probably tweak it manually. 

 Good luck :-) 
---------------------------------------------------------------------------
mount: /tmp/dus.9bsmCd8PW0: WARNING: device write-protected, mounted read-only.
select_boot_system: usb-pack_efi is available
select_boot_system: usb-pack_efi: using variable 'upefi=false'
item 00
'/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso' is identified as the source ISO file
<pre>
MODEL NAME   FSTYPE LABEL MOUNTPOINT  SIZE
fafa  sdb                             7,6G
      `-sdb1 vfat                     7,6G
</pre>
Using the file '/usr/share/mkusb/grub.cfg'
item 10
Clean for a GUID partition table
GPT fdisk (gdisk) version 1.0.5

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************


Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.

Command (? for help): This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): 
Command (? for help): 
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdb.
The operation has completed successfully.
Wipe the first megabyte (mibibyte) to get a clean boot area
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,262348 s, 4,0 MB/s
Wait 5 seconds and a little more ...
item 20
 Installed systems in UEFI mode: 'grub.img' to be used 
---------------------------------------------------------------------------
 Selected percentage of remaining space for persistence = 50 
---------------------------------------------------------------------------
 
partition 2 - bios_grub  installing via 'grub.img'
partition 3 - fat32 boot,efi        via 'grub.img' ...
62989+0 records in
62989+0 records out
258002944 bytes (258 MB, 246 MiB) copied, 94,8887 s, 2,7 MB/s
GPT fdisk (gdisk) version 1.0.5

Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.

Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************

Command (? for help): 
Caution: The CRC for the backup partition table is invalid. This table may
be corrupt. This program will automatically create a new backup partition
table when you save your partitions.

Problem: The secondary header's self-pointer indicates that it doesn't reside
at the end of the disk. If you've added a disk to a RAID array, use the 'e'
option on the experts' menu to adjust the secondary header's and partition
table's locations.

Identified 2 problems!

Command (? for help): 
Expert command (? for help): Relocating backup data structures to the end of the disk

Expert command (? for help): 
Recovery/transformation command (? for help): 
Recovery/transformation command (? for help): 
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdb.
The operation has completed successfully.
partition 1 - ntfs 'usbdata'
partition 4 - iso9660 - cloned system
Warning: The resulting partition is not properly aligned for best performance: 503907s % 2048s != 0s
partition 5 - ext4 - for persistence
item 30
 using grub.img: keeping file system of /dev/sdb3:  
item 40
preparing /dev/sdb1  ------------------------------------------------
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 1,85708 s, 565 kB/s
umount: /dev/sdb1: not mounted.
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
Creating root directory (mft record 5)
Creating $MFT (mft record 0)
Creating $MFTMirr (mft record 1)
Creating $LogFile (mft record 2)
Creating $AttrDef (mft record 4)
Creating $Bitmap (mft record 6)
Creating $Boot (mft record 7)
Creating backup boot sector.
Creating $Volume (mft record 3)
Creating $BadClus (mft record 8)
Creating $Secure (mft record 9)
Creating $UpCase (mft record 0xa)
Creating $Extend (mft record 11)
Creating system file (mft record 0xc)
Creating system file (mft record 0xd)
Creating system file (mft record 0xe)
Creating system file (mft record 0xf)
Creating $Quota (mft record 24)
Creating $ObjId (mft record 25)
Creating $Reparse (mft record 26)
Syncing root directory index record.
Syncing $Bitmap.
Syncing $MFT.
Updating $MFTMirr.
Syncing device.
mkntfs completed successfully. Have a nice day.
preparing /dev/sdb5  ------------------------------------------------
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 1,82751 s, 574 kB/s
umount: /dev/sdb5: not mounted.
mke2fs 1.45.5 (07-Jan-2020)
Creating filesystem with 691200 4k blocks and 172832 inodes
Filesystem UUID: abb13380-2d17-4000-92ba-449c23aa71df
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

item 50
mount: /tmp/dus.9bsmCd8PW0: /home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso is already mounted.
fatlabel: warning - lowercase labels might not work properly with DOS or Windows
Ubuntu or an Ubuntu family flavour

*** Ubuntu version not found ***
label on partition for persistence: 'casper-rw'
tune2fs 1.45.5 (07-Jan-2020)
---------------------------------------------------------------------------
source=/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
---------------------------------------------------------------------------
item 60
umount: /dev/sdb3: not mounted.
mount /dev/sdb3 /tmp/dus.yWBFGjJLWi
/dev/sdb3       241M   15M  226M   7% /tmp/dus.yWBFGjJLWi
item 65
umount: /dev/sdb1: not mounted.
/dev/sdb1       2,7G   15M  2,7G   1% /tmp/dus.AMSHzrVZWt
 use 'grub.img' so do not remove files:  
item 70
 UEFI Bootloader:  using grubimg (template image)
item 80
 Bootloaders via 'grub.img', skipping 'usb-pack_efi':  
set timeout=10
set default=0
menuname: Mint-20.2-cinnamon-64bit.iso
 keep current security upgrade settings 
umount: /dev/sdb4: not mounted.
umount: /dev/sdb5: not mounted.
---------------------------------------------------------------------------
do_n_show:
&lt; "/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso" pv -ni2 | dd of=/dev/sdb4 bs=4096
 
( < "/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso" pv -ni2 | dd of=/dev/sdb4 bs=4096 && echo 'Done' > /dev/stderr ) 2>&1 || ( echo '# failed';sleep 1 )
Please wait for sync (flushing file system buffers to the device)
until 'Done' is written ...
/usr/bin/watch-flush
----- cleanup after writing ------------------------------------------
   6807 pts/0    00:00:00 watch-flush
umount: /dev/sdb: not mounted.
umount: /dev/sdb2: not mounted.
umount: /dev/sdb4: not mounted.
umount: /dev/sdb5: not mounted.
'pv %'; 'dd final output'
41
85
100
do_n_show: Work done
---------------------------------------------------------------------------
Syncing the target device ...
item 90
Wait 5 seconds and a little more ...
<pre>
parted -s "/dev/sdb" print
Model:   (scsi)
Disk /dev/sdb: 8103MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name     Flags
 2      1000kB  2000kB  1000kB               primary  bios_grub
 3      2000kB  258MB   256MB   fat32        primary  boot, esp
 4      258MB   2440MB  2182MB               primary
 5      2440MB  5271MB  2831MB  ext2         primary
 1      5271MB  8102MB  2831MB  ntfs         primary  msftdata

lsblk -o MODEL,NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE "/dev/sdb"
MODEL NAME   FSTYPE  LABEL                           MOUNTPOINT   SIZE
fafa  sdb                                                         7,6G
      |-sdb1 ntfs    usbdata                                      2,7G
      |-sdb2                                                      977K
      |-sdb3 vfat    usbboot                                    244,1M
      |-sdb4 iso9660 Linux Mint 20.2 Cinnamon 64-bit                2G
      `-sdb5 ext4    casper-rw                                    2,7G
</pre>
 Done :-) 
The target device is ready to use.
'/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso'
was installed
item 100
Cleanup after dus-persistent finished :-)
Cleanup after dus-persistent finished :-)
---------------------------------------------------------------------------
Total time used [by dus-persistent] = 1036 s; 00:17:16
p_clean:
live system or temporary superuser permissions
clean if necessary and return
clean if necessary and quit
gerard@DELL-14:~$ 
invalid magic number
https://goopics.net/i/89u3lu
Modifié en dernier par winux M le ven. 17 déc. 2021 19:16, modifié 1 fois.
DELL portable Pro / 14" Mint 21
SSD 480 Go / RAM 16 Go
i5-7200U / 2.50 GHz x 2
Linux Mint 21.1
Noyau : 5.15.0-67
Cinnamon 5.6.7

Avatar du membre
cyrille
Administrateur du site
Messages : 12403
Enregistré le : mar. 19 sept. 2017 08:49
Localisation : Nowhere
Contact :

Re: inclure partclone dans la live key mint

Message par cyrille »

Ton nombre de clef en echecs est surprenant
D'après la littérature, ça vient souvent d'une cle "trop petite".....
ou d'un fichier corrompu... reste à trouver lequel... . Souvent c'est l'image kernel qui est corrompue sur la clef.
?séuqartéd sel ruoP / sécnoféd sel ruoP / sreiruréB sel ruoP / ?étéicos elleuQ

https://crust.ovh

falke
Messages : 595
Enregistré le : mar. 3 oct. 2017 21:28

Re: inclure partclone dans la live key mint

Message par falke »

@Winux ,

Tu as 8 clés ? Tu fais un trafic de clés ?

Va falloir industrialiser ça avec un déploiement réseau :lol:
System:
Host: falke-MacBookAir Kernel: 5.15.0-91-generic x86_64 bits: 64
Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia

Machine:
Type: Laptop System: Apple product: MacBookAir7,2 v: 1.0
Autre Distro : Debian Sid et Endeavour en triple boot sur Btrfs. Noyau change tout le temps ..

Répondre