(solved)live-usb-maker does not work for me

Post Reply
Message
Author
caprea
Posts: 146
Joined: Sat Aug 23, 2014 7:01 am

(solved)live-usb-maker does not work for me

#1 Post by caprea »

I'm posting this here and not on antiXforum, because I see the same behavior on antiX and MX

The only way I can create a functional live-usb-stick with the live-usb-maker is with the dd-command-option.
It only works with fully-featured option if the stick was already used like this before and has already the two partitiones sdc1 and sdc2 with the appropriate formatting.
It will not work, if the stick has one partition. I tried different sticks, different formating.
Or is this the desired behavior, do I first have to create the two partitions with gparted or whatever, and if so where is this mentioned in the manual?

Anyway here are some logs of a dry run.This is on MX.

Code: Select all

live-usb-maker-error
:Could not mount /dev/sdc1 at /run/live-usb-maker/main

Code: Select all

live-usb-maker.log
=====================================================================
/usr/local/bin/live-usb-maker gui -N -p -V -C off --from=/home/helga/Downloads/antiX-17.2_386-full.iso -t /dev/sdc
        program: live-usb-maker
        started: Mi 28. Nov 16:27:22 CET 2018
        version: 2.12.13 (Thu Dec 21 16:00:55 MST 2017)
         kernel: 4.15.0-1-amd64
             OS: MX 17.1 (Horizon)
      found lib: /usr/local/lib/cli-shell-utils/cli-shell-utils.bash
    lib version: 2.00.17 (Sat Jan 13 12:41:56 MST 2018)
---------------------------------------------------------------------

Found man page: live-usb-maker.1
PROBEMODUS AKTIV
Gerät /dev/sdc (1,9G USB2.0 Flash Disk) wird als Ziel verwendet
Datei /home/helga/Downloads/antiX-17.2_386-full.iso wird als Quelle verwendet
Distro: antiX-17.2_386-full Helen Keller 4 October 2018
Estimated extfs overhead for 1857M is 2M

                    gesamt  benutzt  unbelegt
 Gesamtes Laufwerk   1,908    1,907         1  MiB
    Hauptpartition   1,857      981       876  MiB
    UEFI Partition      50       11        39  MiB

Bereit live-usb auf Gerät sdc
... mit Kopiere Datei /home/helga/Downloads/antiX-17.2_386-full.iso zu erstellen

>> partition-clear
p> dd status=none if=/dev/zero of=/dev/sdc bs=1K count=17
p> dd status=none if=/dev/zero of=/dev/sdc bs=1K count=17
p> dd status=none if=/dev/zero of=/dev/sdc bs=1K count=17 seek=32
p> dd status=none if=/dev/zero of=/dev/sdc bs=1K count=17 seek=32
p> dd status=none conv=notrunc if=/dev/zero of=/dev/sdc bs=1K count=17 seek=1953775
p> dd status=none conv=notrunc if=/dev/zero of=/dev/sdc bs=1K count=17 seek=1953775
p> partprobe /dev/sdc

>> partition-make
msdos Partitionierung wird verwendet
p> parted --script --align optimal /dev/sdc unit MiB mklabel msdos
p> dd status=none if=/dev/zero of=/dev/sdc seek=1024 bs=1K count=128
p> dd status=none if=/dev/zero of=/dev/sdc seek=1024 bs=1K count=128
p> parted --script --align optimal /dev/sdc unit MiB mkpart primary ext4 1 1857
p> dd status=none if=/dev/zero of=/dev/sdc seek=1901568 bs=1K count=128
p> dd status=none if=/dev/zero of=/dev/sdc seek=1901568 bs=1K count=128
p> parted --script --align optimal /dev/sdc unit MiB mkpart primary fat32 1857 1907
p> parted --script --align optimal /dev/sdc unit MiB set 1 boot on set 2 esp on
p> partprobe /dev/sdc
p> wait_for_file /dev/sdc1

>> makefs-bios
p> mkfs.ext4 -O ^64bit -m0 -i100000 -J size=32 /dev/sdc1
p> tune2fs -L antiX-Live-usb /dev/sdc1
p> wait_for_file /dev/sdc2

>> makefs-uefi
p> mkfs.vfat -n antiX-uefi /dev/sdc2
p> partprobe /dev/sdc
p> wait_for_file /dev/sdc1
 > mkdir -p /run/live-usb-maker/main
 > mount -t ext4 /dev/sdc1 /run/live-usb-maker/main
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
       missing codepage or helper program, or other error

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



Thanks !
Last edited by caprea on Wed Nov 28, 2018 5:55 pm, edited 1 time in total.

User avatar
dolphin_oracle
Developer
Posts: 19925
Joined: Sun Dec 16, 2007 1:17 pm

Re: live-usb-maker does not work for me

#2 Post by dolphin_oracle »

No it should be clearing the partitions and remaking them, if the only option selected is "full-featured". Not sure what's going on here.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
anticapitalista
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

Re: live-usb-maker does not work for me

#3 Post by anticapitalista »

I just made a live usb of antiX via live-usb-maker (cli).
I used gparted to wipe the disk and then formatted it to fat32 for the whole disk.
Unplugged, plugged in stick and ran live-usb-maker (cli). No errors.

Code: Select all

=====================================================================
/usr/local/bin/live-usb-maker 
        program: live-usb-maker
        started: Wed Nov 28 18:43:27 EET 2018
        version: 2.12.13 (Thu Dec 21 16:00:55 MST 2017)
         kernel: 4.19.4-antix.2-amd64-smp
             OS: antiX 17.a2 (keerfa)
      found lib: /usr/local/lib/cli-shell-utils/cli-shell-utils.bash
    lib version: 2.00.17 (Sat Jan 13 12:41:56 MST 2018)
---------------------------------------------------------------------

Found man page: live-usb-maker.1
Only one target usb device was found sdb
Will use target device sdb (3.8G JetFlash TS4GJFV10)
Will use source file /home/anticap/Remaster/iso-files/antiX-18.a1_386-base.iso
Distro: antiX-18.a1_386-base Helen Keller 25 November 2018

Encryption enabled
Estimated extfs overhead for 3711M is 7M

                 Total   Used  Extra
   entire drive  3,912  3,911      1  MiB
 main partition  3,711    702  3,009  MiB
 bios partition    150     18    132  MiB
 uefi partition     50     11     39  MiB


>> encryption-initrd
Checking to see if the live media will support encryption ...
 > wait_for_file /run/live-usb-maker/iso/antiX/linuxfs
 > mkdir -p /run/live-usb-maker/linux
 > mount -t squashfs -o loop,ro /run/live-usb-maker/iso/antiX/linuxfs /run/live-usb-maker/linux
 > copy-initrd-programs --no-color --from=/run/live-usb-maker/linux --to=/run/live-usb-maker/initrd --clean
Cleaning out all libraries and these program(s): ntfs-3g eject cryptsetup
 > copy-initrd-programs --no-color --from=/run/live-usb-maker/linux --to=/run/live-usb-maker/initrd --encrypt
  add program: ntfs-3g
ld_linux: /lib/ld-linux.so.2
ld_dir: /run/live-usb-maker/initrd/lib
  add program: eject
ld_linux: /lib/ld-linux.so.2
ld_dir: /run/live-usb-maker/initrd/lib
  add program: cryptsetup
ld_linux: /lib/ld-linux.so.2
ld_dir: /run/live-usb-maker/initrd/lib
add 4.9.138-antix.1-486-smp encryption modules to initrd
 > copy-initrd-modules --quiet --only-encrypt --from=/run/live-usb-maker/linux --to=/run/live-usb-maker/initrd

Please wait while some random passphrases are generated
Dictionary size is 42,756 words (15.4 bits/word)
Soon you will be asked to enter a new passphrase (3 times)

=====> Ready to make encrypted live-usb on device sdb
... by copying file /home/anticap/Remaster/iso-files/antiX-18.a1_386-base.iso

>> partition-clear
 > dd status=none if=/dev/zero of=/dev/sdb bs=1K count=17
 > dd status=none if=/dev/zero of=/dev/sdb bs=1K count=17 seek=32
 > dd status=none conv=notrunc if=/dev/zero of=/dev/sdb bs=1K count=17 seek=4005871
 > 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 ext4 1 150
 > dd status=none if=/dev/zero of=/dev/sdb seek=153600 bs=1K count=128
 > parted --script --align optimal /dev/sdb unit MiB mkpart primary 150 3861
 > dd status=none if=/dev/zero of=/dev/sdb seek=3953664 bs=1K count=128
 > parted --script --align optimal /dev/sdb unit MiB mkpart primary fat32 3861 3911
 > parted --script --align optimal /dev/sdb unit MiB set 1 boot on set 3 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.43.4 (31-Jan-2017)
64-bit filesystem support is not enabled.  The larger fields afforded by this feature enable full-strength checksumming.  Pass -O 64bit to rectify.
Creating filesystem with 152576 1k blocks and 1672 inodes
Filesystem UUID: 08d6d774-50fa-4fa1-9d23-c8170e6c8222
Superblock backups stored on blocks: 
	8193, 24577, 40961, 57345, 73729

Allocating group tables:  0/19     done                            
Writing inode tables:  0/19     done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:  0/19     done

 > tune2fs -L antiX-Live-usb /dev/sdb1
tune2fs 1.43.4 (31-Jan-2017)
 > wait_for_file /dev/sdb3

>> makefs-uefi
 > mkfs.vfat -n antiX-uefi /dev/sdb3
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.fat 4.1 (2017-01-24)

>> encrypt-main
 > wait_for_file /dev/sdb1
 > mkdir -p /run/live-usb-maker/bios
 > mount -t ext4 /dev/sdb1 /run/live-usb-maker/bios
About to encrypt device /dev/sdb2

We want to overwrite the data on /dev/sdb2
Type in upper-case 'YES' as suggested
You will be asked for the passphrase a third time
Encryption successful

>> makefs-main
 > mkfs.ext4 -O ^64bit -m0 -i100000 -J size=32 /dev/mapper/live-usb-maker
mke2fs 1.43.4 (31-Jan-2017)
64-bit filesystem support is not enabled.  The larger fields afforded by this feature enable full-strength checksumming.  Pass -O 64bit to rectify.
Creating filesystem with 949504 4k blocks and 38976 inodes
Filesystem UUID: 3eebdbef-b1eb-4282-ba71-74c5b2607c3a
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

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

 > tune2fs -L antiX-Live-usb /dev/mapper/live-usb-maker
tune2fs 1.43.4 (31-Jan-2017)
 > write_file /run/live-usb-maker/bios/antiX/encrypted ae963c93-4e49-4572-87cd-02c5785b207d
 > umount /dev/sdb1
 > wait_for_file /dev/mapper/live-usb-maker
 > mkdir -p /run/live-usb-maker/main
 > mount -t ext4 /dev/mapper/live-usb-maker /run/live-usb-maker/main
 > partprobe /dev/sdb
 > wait_for_file /dev/sdb1
 > mkdir -p /run/live-usb-maker/bios
 > mount -t ext4 /dev/sdb1 /run/live-usb-maker/bios
 > wait_for_file /dev/sdb3
 > mkdir -p /run/live-usb-maker/uefi
 > mount -t vfat /dev/sdb3 /run/live-usb-maker/uefi

Filesystem                 Type  Size  Used Avail Use% Mounted on
/dev/sdb1                  ext4  117M  1.6M  113M   2% /run/live-usb-maker/bios
/dev/mapper/live-usb-maker ext4  3.6G  7.3M  3.6G   1% /run/live-usb-maker/main
/dev/sdb3                  vfat   50M     0   50M   0% /run/live-usb-maker/uefi


>> copy-bios
copy from iso to bios partition
files: [Ee][Ff][Ii] boot/{syslinux,grub,memtest} antiX/{vmlinuz,initrd}* version
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX/initrd.gz /run/live-usb-maker/bios/antiX
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX/initrd.gz.md5 /run/live-usb-maker/bios/antiX
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX/vmlinuz /run/live-usb-maker/bios/antiX
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX/vmlinuz.md5 /run/live-usb-maker/bios/antiX
 > mkdir -p /run/live-usb-maker/bios/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/grub /run/live-usb-maker/bios/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/memtest /run/live-usb-maker/bios/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/syslinux /run/live-usb-maker/bios/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/EFI /run/live-usb-maker/bios/.
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/version /run/live-usb-maker/bios/.
 > write_file /run/live-usb-maker/bios/antiX/initrd.gz.md5 09e0b842b20588f4865719e23bec8698  initrd.gz

>> copy-uefi
copy from iso to uefi partition
files: [Ee][Ff][Ii] boot/{grub,uefi-mt} version
 > mkdir -p /run/live-usb-maker/uefi/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/grub /run/live-usb-maker/uefi/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/uefi-mt /run/live-usb-maker/uefi/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/EFI /run/live-usb-maker/uefi/.
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/version /run/live-usb-maker/uefi/.
Fix Dell uefi memtest bug
 > cp /run/live-usb-maker/uefi/EFI/BOOT/grubx64.efi /run/live-usb-maker/uefi/EFI/BOOT/fallback.efi

>> copy-main
 > rm -rf /run/live-usb-maker/main/boot.orig
copy from iso to main partition
files: *
Using progress function: text_progress_bar
> cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX /run/live-usb-maker/iso/boot /run/live-usb-maker/iso/cdrom.ico /run/live-usb-maker/iso/EFI /run/live-usb-maker/iso/version /run/live-usb-maker/main/
vm.dirty_bytes = 20000000
copy pids: 20443 20445
vm.dirty_bytes = 0
vm.dirty_ratio = 20
 > write_file /run/live-usb-maker/bios/made-by-live-usb-maker   created: Wed Nov 28 18:48:58 EET 2018
  program: live-usb-maker
  version: 2.12.13 (Thu Dec 21 16:00:55 MST 2017)
 > dd status=none if=/dev/urandom of=/run/live-usb-maker/main/antiX/random-seed bs=512 count=1
 > chmod 600 /run/live-usb-maker/main/antiX/random-seed

>> uuids
 > mkdir -p /run/live-usb-maker/bios/antiX
 > write_file /run/live-usb-maker/bios/antiX/esp-uuid 5D3B-B593
 > mkdir -p /run/live-usb-maker/main/antiX
 > write_file /run/live-usb-maker/main/antiX/esp-uuid 5D3B-B593
 > sed -i /search.*--set=root.*/  s/.*/search --no-floppy --set=root --fs-uuid 08d6d774-50fa-4fa1-9d23-c8170e6c8222/ /run/live-usb-maker/uefi/boot/grub/grub.cfg
 > sed -ri s/^#-+esp\s*// /run/live-usb-maker/uefi/boot/grub/grub.cfg
 > sed -ri s/(root=\(hd0,)[0-9]\)/\13)/ /run/live-usb-maker/uefi/boot/grub/grub.cfg

>> install
extlinux version 6.03
 > dd status=none bs=440 conv=notrunc count=1 if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sdb
 > rm -f /run/live-usb-maker/bios/boot/syslinux/chain.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/gfxboot.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/ldlinux.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/libcom32.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/libmenu.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/libutil.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/menu.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/version
 > cp /usr/lib/syslinux/modules/bios/chain.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/gfxboot.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/vesamenu.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/ldlinux.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/libcom32.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/libmenu.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/libutil.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/linux.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/menu.c32 /run/live-usb-maker/bios/boot/syslinux/
 > write_file /run/live-usb-maker/bios/boot/syslinux/version 6.03
 > extlinux -i /run/live-usb-maker/bios/boot/syslinux
/run/live-usb-maker/bios/boot/syslinux is device /dev/sdb1

Filesystem                 Type  Size  Used Avail Use% Mounted on
/dev/sdb1                  ext4  117M   22M   93M  19% /run/live-usb-maker/bios
/dev/mapper/live-usb-maker ext4  3.6G  703M  2.9G  20% /run/live-usb-maker/main
/dev/sdb3                  vfat   50M   12M   39M  24% /run/live-usb-maker/uefi

>> done

live-usb-maker took 5 minutes and 14 seconds.
Let me try again with the gui front-end.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
fehlix
Developer
Posts: 10307
Joined: Wed Apr 11, 2018 5:09 pm

Re: live-usb-maker does not work for me

#4 Post by fehlix »

caprea wrote: Wed Nov 28, 2018 12:08 pm [/code]
> mount -t ext4 /dev/sdc1 /run/live-usb-maker/main
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error

[/code]
Suggest to try another USB-stick.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
anticapitalista
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

Re: live-usb-maker does not work for me

#5 Post by anticapitalista »

Successful with gui as well.

Code: Select all

=====================================================================
/usr/local/bin/live-usb-maker gui -N -E -C off --from=/home/anticap/Remaster/iso-files/antiX-18.a1_386-base.iso -t /dev/sdb
        program: live-usb-maker
        started: Wed Nov 28 18:57:40 EET 2018
        version: 2.12.13 (Thu Dec 21 16:00:55 MST 2017)
         kernel: 4.19.4-antix.2-amd64-smp
             OS: antiX 17.a2 (keerfa)
      found lib: /usr/local/lib/cli-shell-utils/cli-shell-utils.bash
    lib version: 2.00.17 (Sat Jan 13 12:41:56 MST 2018)
---------------------------------------------------------------------

You will be asked to create a passphrase during the first boot
Found man page: live-usb-maker.1
Will use target device /dev/sdb (3.8G JetFlash TS4GJFV10)
Will use source file /home/anticap/Remaster/iso-files/antiX-18.a1_386-base.iso
Distro: antiX-18.a1_386-base Helen Keller 25 November 2018

Encryption enabled
Estimated extfs overhead for 3711M is 7M

                 Total   Used  Extra
   entire drive  3,912  3,911      1  MiB
 main partition  3,711    702  3,009  MiB
 bios partition    150     18    132  MiB
 uefi partition     50     11     39  MiB


>> encryption-initrd
Checking to see if the live media will support encryption ...
 > wait_for_file /run/live-usb-maker/iso/antiX/linuxfs
 > mkdir -p /run/live-usb-maker/linux
 > mount -t squashfs -o loop,ro /run/live-usb-maker/iso/antiX/linuxfs /run/live-usb-maker/linux
 > copy-initrd-programs --no-color --from=/run/live-usb-maker/linux --to=/run/live-usb-maker/initrd --clean
Cleaning out all libraries and these program(s): ntfs-3g eject cryptsetup
 > copy-initrd-programs --no-color --from=/run/live-usb-maker/linux --to=/run/live-usb-maker/initrd --encrypt
  add program: ntfs-3g
ld_linux: /lib/ld-linux.so.2
ld_dir: /run/live-usb-maker/initrd/lib
  add program: eject
ld_linux: /lib/ld-linux.so.2
ld_dir: /run/live-usb-maker/initrd/lib
  add program: cryptsetup
ld_linux: /lib/ld-linux.so.2
ld_dir: /run/live-usb-maker/initrd/lib
add 4.9.138-antix.1-486-smp encryption modules to initrd
 > copy-initrd-modules --quiet --only-encrypt --from=/run/live-usb-maker/linux --to=/run/live-usb-maker/initrd
Ready to make encrypted live-usb on device sdb
... by copying file /home/anticap/Remaster/iso-files/antiX-18.a1_386-base.iso

>> partition-clear
 > dd status=none if=/dev/zero of=/dev/sdb bs=1K count=17
 > dd status=none if=/dev/zero of=/dev/sdb bs=1K count=17 seek=32
 > dd status=none conv=notrunc if=/dev/zero of=/dev/sdb bs=1K count=17 seek=4005871
 > 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 ext4 1 150
 > dd status=none if=/dev/zero of=/dev/sdb seek=153600 bs=1K count=128
 > parted --script --align optimal /dev/sdb unit MiB mkpart primary 150 3861
 > dd status=none if=/dev/zero of=/dev/sdb seek=3953664 bs=1K count=128
 > parted --script --align optimal /dev/sdb unit MiB mkpart primary fat32 3861 3911
 > parted --script --align optimal /dev/sdb unit MiB set 1 boot on set 3 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.43.4 (31-Jan-2017)
64-bit filesystem support is not enabled.  The larger fields afforded by this feature enable full-strength checksumming.  Pass -O 64bit to rectify.
Creating filesystem with 152576 1k blocks and 1672 inodes
Filesystem UUID: f6ae2784-e7aa-43dc-a4e3-157aa41eead4
Superblock backups stored on blocks: 
	8193, 24577, 40961, 57345, 73729

Allocating group tables:  0/19     done                            
Writing inode tables:  0/19     done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:  0/19     done

 > tune2fs -L antiX-Live-usb /dev/sdb1
tune2fs 1.43.4 (31-Jan-2017)
 > wait_for_file /dev/sdb3

>> makefs-uefi
 > mkfs.vfat -n antiX-uefi /dev/sdb3
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.fat 4.1 (2017-01-24)

>> encrypt-main
 > wait_for_file /dev/sdb1
 > mkdir -p /run/live-usb-maker/bios
 > mount -t ext4 /dev/sdb1 /run/live-usb-maker/bios
Will use initial passphrase Summers cadenzas

 > mkdir -p /run/live-usb-maker/bios/antiX
About to encrypt device /dev/sdb2
Encryption successful

>> makefs-main
 > mkfs.ext4 -O ^64bit -m0 -i100000 -J size=32 /dev/mapper/live-usb-maker
mke2fs 1.43.4 (31-Jan-2017)
64-bit filesystem support is not enabled.  The larger fields afforded by this feature enable full-strength checksumming.  Pass -O 64bit to rectify.
Creating filesystem with 949504 4k blocks and 38976 inodes
Filesystem UUID: c89433cb-da06-4083-9ad7-5cd84cb5f0d9
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

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

 > tune2fs -L antiX-Live-usb /dev/mapper/live-usb-maker
tune2fs 1.43.4 (31-Jan-2017)
 > write_file /run/live-usb-maker/bios/antiX/encrypted 69e4df3d-60bc-4619-a732-71e8ea4b2560
 > umount /dev/sdb1
 > wait_for_file /dev/mapper/live-usb-maker
 > mkdir -p /run/live-usb-maker/main
 > mount -t ext4 /dev/mapper/live-usb-maker /run/live-usb-maker/main
 > partprobe /dev/sdb
 > wait_for_file /dev/sdb1
 > mkdir -p /run/live-usb-maker/bios
 > mount -t ext4 /dev/sdb1 /run/live-usb-maker/bios
 > wait_for_file /dev/sdb3
 > mkdir -p /run/live-usb-maker/uefi
 > mount -t vfat /dev/sdb3 /run/live-usb-maker/uefi

Filesystem                 Type  Size  Used Avail Use% Mounted on
/dev/sdb1                  ext4  117M  1.6M  113M   2% /run/live-usb-maker/bios
/dev/mapper/live-usb-maker ext4  3.6G  7.3M  3.6G   1% /run/live-usb-maker/main
/dev/sdb3                  vfat   50M     0   50M   0% /run/live-usb-maker/uefi


>> copy-bios
copy from iso to bios partition
files: [Ee][Ff][Ii] boot/{syslinux,grub,memtest} antiX/{vmlinuz,initrd}* version
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX/initrd.gz /run/live-usb-maker/bios/antiX
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX/initrd.gz.md5 /run/live-usb-maker/bios/antiX
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX/vmlinuz /run/live-usb-maker/bios/antiX
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX/vmlinuz.md5 /run/live-usb-maker/bios/antiX
 > mkdir -p /run/live-usb-maker/bios/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/grub /run/live-usb-maker/bios/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/memtest /run/live-usb-maker/bios/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/syslinux /run/live-usb-maker/bios/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/EFI /run/live-usb-maker/bios/.
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/version /run/live-usb-maker/bios/.
 > write_file /run/live-usb-maker/bios/antiX/initrd.gz.md5 d814faefa80087946745f10b2f925892  initrd.gz

>> copy-uefi
copy from iso to uefi partition
files: [Ee][Ff][Ii] boot/{grub,uefi-mt} version
 > mkdir -p /run/live-usb-maker/uefi/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/grub /run/live-usb-maker/uefi/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/boot/uefi-mt /run/live-usb-maker/uefi/boot
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/EFI /run/live-usb-maker/uefi/.
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/version /run/live-usb-maker/uefi/.
Fix Dell uefi memtest bug
 > cp /run/live-usb-maker/uefi/EFI/BOOT/grubx64.efi /run/live-usb-maker/uefi/EFI/BOOT/fallback.efi

>> copy-main
 > rm -rf /run/live-usb-maker/main/boot.orig
copy from iso to main partition
files: *
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/antiX /run/live-usb-maker/iso/boot /run/live-usb-maker/iso/cdrom.ico /run/live-usb-maker/iso/EFI /run/live-usb-maker/iso/version /run/live-usb-maker/main/
 > write_file /run/live-usb-maker/bios/made-by-live-usb-maker   created: Wed Nov 28 19:01:09 EET 2018
  program: live-usb-maker
  version: 2.12.13 (Thu Dec 21 16:00:55 MST 2017)
 > dd status=none if=/dev/urandom of=/run/live-usb-maker/main/antiX/random-seed bs=512 count=1
 > chmod 600 /run/live-usb-maker/main/antiX/random-seed

>> uuids
 > mkdir -p /run/live-usb-maker/bios/antiX
 > write_file /run/live-usb-maker/bios/antiX/esp-uuid 9145-CE51
 > mkdir -p /run/live-usb-maker/main/antiX
 > write_file /run/live-usb-maker/main/antiX/esp-uuid 9145-CE51
 > sed -i /search.*--set=root.*/  s/.*/search --no-floppy --set=root --fs-uuid f6ae2784-e7aa-43dc-a4e3-157aa41eead4/ /run/live-usb-maker/uefi/boot/grub/grub.cfg
 > sed -ri s/^#-+esp\s*// /run/live-usb-maker/uefi/boot/grub/grub.cfg
 > sed -ri s/(root=\(hd0,)[0-9]\)/\13)/ /run/live-usb-maker/uefi/boot/grub/grub.cfg

>> install
extlinux version 6.03
 > dd status=none bs=440 conv=notrunc count=1 if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sdb
 > rm -f /run/live-usb-maker/bios/boot/syslinux/chain.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/gfxboot.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/ldlinux.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/libcom32.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/libmenu.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/libutil.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/menu.c32
 > rm -f /run/live-usb-maker/bios/boot/syslinux/version
 > cp /usr/lib/syslinux/modules/bios/chain.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/gfxboot.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/vesamenu.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/ldlinux.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/libcom32.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/libmenu.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/libutil.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/linux.c32 /run/live-usb-maker/bios/boot/syslinux/
 > cp /usr/lib/syslinux/modules/bios/menu.c32 /run/live-usb-maker/bios/boot/syslinux/
 > write_file /run/live-usb-maker/bios/boot/syslinux/version 6.03
 > extlinux -i /run/live-usb-maker/bios/boot/syslinux
/run/live-usb-maker/bios/boot/syslinux is device /dev/sdb1

Filesystem                 Type  Size  Used Avail Use% Mounted on
/dev/sdb1                  ext4  117M   22M   93M  19% /run/live-usb-maker/bios
/dev/mapper/live-usb-maker ext4  3.6G  703M  2.9G  20% /run/live-usb-maker/main
/dev/sdb3                  vfat   50M   12M   39M  24% /run/live-usb-maker/uefi

>> done
You will be asked to create a passphrase during the first boot

live-usb-maker took 3 minutes and 38 seconds.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
dolphin_oracle
Developer
Posts: 19925
Joined: Sun Dec 16, 2007 1:17 pm

Re: live-usb-maker does not work for me

#6 Post by dolphin_oracle »

I'm wondering if the PC doesn't like the partition layout. I think LUM makes the ESP partition second, although I wouldn't think that would matter much at the stage where caprea's attempt seems to fail.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
entropyfoe
Posts: 590
Joined: Thu Apr 19, 2007 11:42 am

Re: live-usb-maker does not work for me

#7 Post by entropyfoe »

I see some differences from what anti did.
I just made a live usb of antiX via live-usb-maker (cli).
I used gparted to wipe the disk and then formatted it to fat32 for the whole disk.
But the response from the OP was this indicating an ext4 partition.
> mount -t ext4 /dev/sdc1 /run/live-usb-maker/main
mount: wrong fs type, bad option, bad superblock on /dev/sdc1
So, maybe try anti's approach, wipe the disk with gparted, and format to fat32, then let the USB maker take it from there.
Asus PRIME X470-PRO
AMD Ryzen 3600X (12 threads @ 3.8 GHz)
32 Gig DDR4 3600 (Crucial CL 16)
Nvidia GeForce GT 710
Samsung 970 NVMe nvme0n1 P1-3=MX-23, P4=testing
Samsung 980 NVMe =1TB Data, plus 2TB WD =backups
on-board ethernet & sound

caprea
Posts: 146
Joined: Sat Aug 23, 2014 7:01 am

Re: live-usb-maker does not work for me

#8 Post by caprea »

Thanks for anwsering, dolphin and felix,
I already tried different sticks,
also just made a stick with the dd-option.
Even though it boots perfectly , this is how it looks in gparted afterwards.
Image
https://share-your-photo.com/39bfc31ddc

Strange, what do I do wrong?

User avatar
anticapitalista
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

Re: live-usb-maker does not work for me

#9 Post by anticapitalista »

entropyfoe wrote: Wed Nov 28, 2018 1:18 pm
But the response from the OP was this indicating an ext4 partition.
I formatted the stick as ext4 in gparted and repeated live-usb-maker (gui) and it succeeds.

Caprea, is automount on?
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

freefreeno
Posts: 34
Joined: Mon Nov 05, 2018 12:55 pm

Re: live-usb-maker does not work for me

#10 Post by freefreeno »

My PC will not boot off of either the full featured or the dd that their utility makes. Only way for me to install MX-Linux is with rufus on a windows PC. Thats why I am not on MX anymore at the moment. And the tearing in my graphics before and after updating mesa.
Last edited by freefreeno on Wed Nov 28, 2018 1:36 pm, edited 1 time in total.

Post Reply

Return to “antiX”