Dernier message de la page précédente :
@Winux ,Tu as 8 clés ? Tu fais un trafic de clés ?
Va falloir industrialiser ça avec un déploiement réseau
Dernier message de la page précédente :
@Winux ,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
[b]settings=msdos[/b]
source=/home/gerard/Bureau/Mint-20.2-cinnamon-64bit.iso
target=/dev/sdb
percent=50
[b]msdos=true[/b]
[b]upefi=false[/b]
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:
< "/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:~$
et plus tard :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
donc sur la 16 , un coup ça a pas marché , un coup si. ce qui confirmerait la thèse de l'oubli du choix upefi.En conclusion et ce sera le mot de la fin
j'ai 2 clés (Corsair 16 Go et Transcend 8 Go) qui fonctionnent avec mkusb et Mint
C'est bien ça
C'est pas bien de lancer dans le terminal ? très facile pourtantce qui me marque ... c'est tu lance mkusb à l'invite plutôt qu'en graphique et je vois ça dans le compte rendu ...
Moi non plus, je serais tenté d'incriminer les clés de marque inconnue (noname), quoique PNY ??!!... >> ça m'étonne , chez moi c'est l'inverse mdos=false upefi=true
msdos=true
upefi=false
je m'explique pas qu'avec une iso non corrompue, sur deux clés de la même taille formatées de la même manière tu aies un OK et un KO.
Certes, mais alors pourquoi ça marche sur PNY avec ISO Ubuntu 20.4.3 ??ce n'est à l'évidence pas un pb de pas Debian/Ubuntu. D'ailleurs Mint est bien moins eloigné d'Ubuntu que ne l'est Debian..
[EDIT] j'aurais dû préciser que ce message s'adressait à la 4 Go pas la 16J'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
En conclusion et ce sera le mot de la fin
j'ai 2 clés (Corsair 16 Go et Transcend 8 Go) qui fonctionnent avec mkusb et Mint
Non non sur la Corsair (la seule 16) comme la Transcend 8 ça a marché du 1e coup avec Mint, c'est pourquoi je les garde précieusement pour cet usage réservé !!donc sur la 16 , un coup ça a pas marché , un coup si.
je sais pas. Tu veux que j'essaie autre chose ?ce qui confirmerait la thèse de l'oubli du choix upefi.
Code : Tout sélectionner
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.
Code : Tout sélectionner
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'
Code : Tout sélectionner
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!
Code : Tout sélectionner
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Code : Tout sélectionner
writing new GUID partition table (GPT) to /dev/sdb.
The operation has completed successfully.
Installed systems in UEFI mode: 'grub.img' to be used
Code : Tout sélectionner
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Code : Tout sélectionner
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
Code : Tout sélectionner
sudo dd if=/dev/zero of=/dev/sd[adapter avec la lettre qui convient] conv=notrunc
Code : Tout sélectionner
supprimé toutes les partitions de la clé
crée table de partition ms-dos
formaté fat32
lancé ta commande : sudo dd if=/dev/zero of=/dev/sdh conv=notrunc