Dernier message de la page précédente :
BonjourJ'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
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
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:
< "/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:~$