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 :

Bonjour

J'ai encore un petit souci !!! sur la lancée de "mon" succès avec mes 4 clés, j'ai voulu recommencer pour une copine. Elle m'a filé une clé de 16 pour la persistance et une de 32 pour Ventoy et rien ne marche.

persistance : j'ai droit au traditionnel "invalid magic number"
pour ventoy il ne peut pas lire sdb1 (sdb c'est la clé)

Reprenons la persistance, j'ai appliqué ma check-list qui a très bien marché jusque là

Code : Tout sélectionner

    • RZ complète de la clé pour éviter d'éventuelles "invalid magic number"
        ◦ vérifier le sdX de la clé (dans l'exemple c'est sdb)  et la taille - ATTENTION  DANGER si erreur
        ◦ fermer gparted
        ◦ sudo dd if=/dev/zero of=/dev/sdb  conv=notrunc
    • créer table partition GPT
        ◦ attention bien démonter la clé visible sur le bureau
    • lancer l'appli
        ◦ mkusb
    • choix "dus" > taper > d > Enter
    • fenêtre "Do USB Stuff" > valider
    • fenêtre "install Backup Restore Wipe" > choix > i > valider
    • fenêtre > choix > p > valider ("p" 'persistent live' only Debian and Ubuntu, mais OK Mint)
    • sélectionner l'ISO source
    • sélectionner la clé USB cible > valider
    • fenêtre "persistent live key setting" > choix > upefi > valider 
    • fenêtre "select space for persistent" > persistance = 85 % > le reste = usbdata > valider 
    • fenêtre "final checkpoint" > choix Go > Go
    • terminal > Enter
    • fenêtre de fin > "work done with dev/sdb"
        ◦ the target device is ready to use
    • 2 autres fenêtres s'ouvrent > quit > quit
la fin de dd donne ceci. Je ne me souviens pas d'un tel message "aucun espace ..." sur les autre clés OK ?
est-ce la cause de cette nouvelle galère et si oui pourquoi ???

Code : Tout sélectionner

gerard@DELL-14:~$ sudo dd if=/dev/zero of=/dev/sdb  conv=notrunc
dd: écriture vers '/dev/sdb': Aucun espace disponible sur le périphérique
30339073+0 enregistrements lus
30339072+0 enregistrements écrits
15533604864 octets (16 GB, 14 GiB) copiés, 1809,12 s, 8,6 MB/s
Pour terminer, voici ce qu'a égrainé le terminal, vous voyez qq chose ?
merci et bon réveillon

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
Verbatim_STORE_N_GO
14,5G
usb
USB or memory card
p_target: target=/dev/sdb
target drive size = 16 GB
Les fichiers binaires /usr/share/mkusb/grub.img.xz et /usr/share/mkusb/grub-0.img.xz sont différents
settings=upefi
percent=85
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
STORE_N_GO sdb               14,5G
/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
/dev/sdb
85
settings=upefi
-----
live system or temporary superuser permissions
/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
/dev/sdb
85
settings=upefi
source=/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
target=/dev/sdb
percent=85
msdos=false
upefi=true
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-24 14:59:39
---------------------------------------------------------------------------
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: 'gpt'
mount: /tmp/dus.iDW7H6fhWq: 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.gY2IL41Goi: WARNING: device write-protected, mounted read-only.
select_boot_system: usb-pack_efi is available
select_boot_system: usb-pack_efi: using variable 'upefi=true'
item 00
grep: /etc/upstream-release: Is a directory
grep: /etc/upstream-release: Is a directory
drels=20.2
distr=linuxmint
---------------------------------------------------------------------------
You are running the following operating system now:
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=20.2
DISTRIB_CODENAME=uma
DISTRIB_DESCRIPTION="Linux Mint 20.2 Uma"
---------------------------------------------------------------------------

 dus-persistent 12.7.1

might not make all systems bootable in UEFI mode from this version.
You should work in Debian 8, Ubuntu 14.04 or newer
or a corresponding Ubuntu flavour (Kubuntu, Lubuntu, ... Xubuntu.) 

 Good luck :-) 
---------------------------------------------------------------------------
'/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso' is identified as the source ISO file
<pre>
MODEL      NAME FSTYPE LABEL MOUNTPOINT  SIZE
STORE_N_GO sdb                          14,5G
</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: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

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,114015 s, 9,2 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 = 85 
---------------------------------------------------------------------------
 
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, 18,937 s, 13,6 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, 0,0946311 s, 11,1 MB/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, 0,0914193 s, 11,5 MB/s
umount: /dev/sdb5: not mounted.
mke2fs 1.45.5 (07-Jan-2020)
Creating filesystem with 2716928 4k blocks and 679936 inodes
Filesystem UUID: 75362596-08e5-4433-91dd-b3116616f478
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

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.gY2IL41Goi: /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.8mMuOIW4nk
/dev/sdb3       241M   15M  226M   7% /tmp/dus.8mMuOIW4nk
item 65
umount: /dev/sdb1: not mounted.
/dev/sdb1       1,9G  9,9M  1,9G   1% /tmp/dus.SHcSFWDAcv
 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 ------------------------------------------
   6245 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'
49
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: Verbatim STORE N GO (scsi)
Disk /dev/sdb: 15,5GB
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  13,6GB  11,1GB  ext2         primary
 1      13,6GB  15,5GB  1964MB  ntfs         primary  msftdata

lsblk -o MODEL,NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE "/dev/sdb"
MODEL      NAME   FSTYPE  LABEL                           MOUNTPOINT   SIZE
STORE_N_GO sdb                                                        14,5G
           |-sdb1 ntfs    usbdata                                      1,8G
           |-sdb2                                                      977K
           |-sdb3 vfat    usbboot                                    244,1M
           |-sdb4 iso9660 Linux Mint 20.2 Cinnamon 64-bit                2G
           `-sdb5 ext4    casper-rw                                   10,4G
</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] = 393 s; 00:06:33
p_clean:
live system or temporary superuser permissions
clean if necessary and return
clean if necessary and quit
gerard@DELL-14:~$ 
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

salut,

je te conseillerais de garder les méthodes qui ont fonctionné et de ne pas te lancer avec un nouvel outil
en cas de problème. Je peux me pencher sur un truc mais sur dix ... ;-)

ton RZ de la clé, sert à te remplir ta clé exclusivement de zéro du début à la fin , ce qui écrase toute la partie réservée à un éventuel MBR (dos) ou partition EFI qui s'y trouverait.

Elle n'est a faire que si tu rencontres des difficultés à la première tentative de création de clé, afin d'être sûr que celle-ci est totalement vierge (en fait elle ne l'est pas , elle est pleine de zéro ,mais de rien d'autre par contre.

-puis avec gparted tu créé une table de partition Gpt (pas besoin d'installer un système de fichier
-lancement de mkusb avec l'option puefi seul pas dos en plus
- allocation de la taille alloué à la persistance , sur une clé de 16 Go (50/50 ) me parait possible , en cas d'erreur , augmenter la proportion l'espace persistant .

c'est tout , et surtout , sois bien attentif

ps : sur le compte-rendu , ça semble s'être bien passé.
Mais attention si tu fais démarrer la clé sur un pc EFI dont le secure-boot est activé , elle ne démarrera pas a priori.
Il te faudra demander à ton gentil hôte de bien vouloir désactiver le Secureboot et le fastboot (masquage des option de démarrage) dans windows et le Secure-Boot dans Mac.
Modifié en dernier par falke le ven. 24 déc. 2021 19:04, modifié 2 fois.
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 »

Ok fulke
Je ne m'attendais pas à une réponse aussi rapide un soir de réveillon, merci, j'en suis tout gêné :l
Je n'ai rien crée de nouveau et refait ce qui avait déjà marché, mais je vais recommencer en partant directement sur GPT et oublier dd de prime abord.
J'essaie ça et après je vais faire mon réveillon avec doudou, les petits n'arrivent que demain !
Bon réveillon à toi aussi, je te laisse peinard et vais creuser dans ce sens, merci pour tout
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
alain
Administrateur du site
Messages : 14789
Enregistré le : dim. 11 oct. 2015 23:41
Localisation : Chelles
Contact :

Re: inclure partclone dans la live key mint

Message par alain »

Bonjour.

Sujet archivé (en lecture seule) car résolu.
Si besoin de rouvrir faire un MP à un membre de l'équipe ;)
PC are like air conditioning, they becomes useless when you open Windows (L.T)
PC1 : CM : ASRock 990FX | CPU: AMD FX 8350-8 cores, 4 GHz | RAM: 16 Go DDR3 1600 MHz | CG: ATI RX 580-8 Go | OS : LM 20.3 Uma Xfce 4.16 | K: 5.4
PC2
:Core2 Quad Q9650 @ 3 GHz | CG: Nvidia GTX 650TI | OS: LM 21.3 Xfce 4.18| K: 6.5
PC3 :Core i7-2600 @ 3,5 GHz | CG: ATI HD 4650 | OS: Emmade5 Xfce 4.18.0 | K: 6.1
PC4 : AMD Ryzen 5 3500X 4GHz | CG: GTX 970 | Ram : 8GB |OS : Debian 10.5 | K: 5.10
In a world without walls and fences, who needs windows and gates?

Répondre