BitJam / live-usb-maker

Create an antiX/MX LiveUSB
GNU General Public License v3.0
34 stars 13 forks source link

Fails to create Live USB with MX-18.3_x64.iso on a USB drive of 8GB #2

Open afita opened 5 years ago

afita commented 5 years ago
$ sudo ./live-usb-maker --from='MX-18.3_x64.iso' --target='/dev/sdb' --very-verbose expert
===============================================================================
Starting live-usb-maker 2.41.02
===============================================================================
Will use target device /dev/sdb (7.6G General UDisk)

Please select an action to perform                                                                                                                                   
  = Make a full-featured live-usb                                                                                                                                    
  > Start live-usb with a data partition                                                                                                                             
  > Make an encrypted full-featured live-usb                                                                                                                         
  > Make a customized live-usb (includes encryption option)                                                                                                          
  > Other options                                                                                                                                                    
Press <Enter> to select the highlighted entry                                                                                                                        
Use 'h' for help, 'r' to redraw, 'q' to quit                                                                                                                         
Will use source file MX-18.3_x64.iso                                                                                        
Distro: MX-18.3_x64 Continuum May 26, 2019
Found grub config 1.0

                    Total      Used     Extra
   entire drive  7.62 GiB 7.62 GiB     1 MiB
 main partition  7.57 GiB 1.38 GiB  6.19 GiB
 uefi partition    50 MiB   12 MiB    38 MiB

-------------------------------------------------------------------------------
Ready to make live-usb on device sdb
... by copying file MX-18.3_x64.iso
-------------------------------------------------------------------------------

Shall we begin?                                                                                                                                                      
  = yes                                                                                                                                                              
  > no                                                                                                                                                               
  > pretend mode                                                                                                                                                     
Press <Enter> to select the highlighted entry                                                                                                                        
Use 'h' for help, 'r' to redraw, 'q' to quit                                                                                                                         
>> partition-clear                                                                                                                                                   
 > dd status=none if=/dev/zero of=/dev/sdb bs=512 count=34
 > dd status=none if=/dev/zero of=/dev/sdb bs=512 count=34 seek=64
 > dd status=none conv=notrunc if=/dev/zero of=/dev/sdb bs=512 count=34 seek=15974366
 > partprobe /dev/sdb
>> partition-make
Using msdos partitioning
 > parted --script --align optimal /dev/sdb unit MiB mklabel msdos
 > dd status=none if=/dev/zero of=/dev/sdb seek=1024 bs=1K count=128
 > parted --script --align optimal /dev/sdb unit MiB mkpart primary 1 7749
 > parted --script --align optimal /dev/sdb unit MiB set 1 boot on
 > dd status=none if=/dev/zero of=/dev/sdb seek=7934976 bs=1K count=128
 > parted --script --align optimal /dev/sdb unit MiB mkpart primary 7749 7798
 > parted --script --align optimal /dev/sdb unit MiB set 2 esp on
 > partprobe /dev/sdb
 > wait_for_file /dev/sdb1
>> makefs-bios
 > mkfs.ext4 -O ^64bit -m0 -i100000 -J size=32 /dev/sdb1
mke2fs 1.42.13 (17-May-2015)
Creating filesystem with 1983488 4k blocks and 81984 inodes
Filesystem UUID: 3178ac4f-0faf-4b21-b930-315febfe9dc1
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

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

 > tune2fs -L MX-Live-usb /dev/sdb1
tune2fs 1.42.13 (17-May-2015)
 > wait_for_file /dev/sdb2
>> makefs-uefi
 > mkfs.vfat -n MX-UEFI /dev/sdb2
mkfs.fat 3.0.28 (2015-05-16)
 > partprobe /dev/sdb
 > wait_for_file /dev/sdb1
 > mkdir -p ./main
 > mount -t ext4 /dev/sdb1 ./main
 > wait_for_file /dev/sdb2
 > mkdir -p ./uefi
 > mount -t vfat /dev/sdb2 ./uefi
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
Error: Could not mount /dev/sdb2 at /run/live-usb-maker/uefi

live-usb-maker took 28 seconds.
# dmesg | tail
[ 2867.460343]  sdb:
[ 2868.739937]  sdb: sdb1
[ 2869.672873]  sdb: sdb1
[ 2870.805300]  sdb: sdb1 sdb2
[ 2872.744961]  sdb: sdb1 sdb2
[ 2873.889433]  sdb: sdb1 sdb2
[ 2892.876217]  sdb: sdb1 sdb2
[ 2893.199123] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 2893.645020] FAT-fs (sdb2): bogus logical sector size 65535
[ 2893.645032] FAT-fs (sdb2): Can't find a valid FAT filesystem

If I run the tool with --size=50 it works.