Live usb maker error

Message
Author
User avatar
Fornhamfred
Posts: 309
Joined: Sun May 02, 2010 12:49 pm

Live usb maker error

#1 Post by Fornhamfred »

Code: Select all

Snapshot created on: 20250607_0612
System:
  Kernel: 6.1.0-37-amd64 [6.1.140-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-37-amd64 root=UUID=<filter> ro quiet splash
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.6_x64 Libretto March 15  2024 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Desktop Mobo: ASUSTeK model: P8Z68-V LX v: Rev X.0x serial: <superuser required>
    UEFI: American Megatrends v: 0703 date: 10/21/2011
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse B330/M330/M331 serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: Intel Core i5-2500K bits: 64 type: MCP arch: Sandy Bridge gen: core 2 level: v2
    built: 2010-12 process: Intel 32nm family: 6 model-id: 0x2A (42) stepping: 7 microcode: 0x2F
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB
    L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1675 high: 1770 min/max: 1600/3700 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 1605 2: 1717 3: 1608 4: 1770 bogomips: 26485
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: disabled; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Turks XT [Radeon HD 6670/7670] vendor: Hightech Information System driver: radeon
    v: kernel alternate: amdgpu arch: TeraScale-2 code: Evergreen process: TSMC 32-40nm
    built: 2009-15 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 2 speed: 5 GT/s ports:
    active: VGA-1 empty: DVI-D-1,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 1002:6758 class-ID: 0300
    temp: 36.5 C
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X: loaded: radeon
    dri: r600 gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1360x768 s-dpi: 96 s-size: 360x204mm (14.17x8.03") s-diag: 414mm (16.29")
  Monitor-1: VGA-1 mapped: VGA-0 model: LG (GoldStar) W1946 serial: <filter> built: 2010
    res: 1360x768 hz: 60 dpi: 85 gamma: 1.2 size: 406x229mm (15.98x9.02") diag: 466mm (18.4")
    ratio: 16:9 modes: max: 1360x768 min: 720x400
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: AMD TURKS (DRM 2.50.0 / 6.1.0-37-amd64 LLVM 15.0.6)
    direct-render: Yes
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: ASUSTeK 6
    driver: snd_hda_intel v: kernel bus-ID: 3-2:3 bus-ID: 00:1b.0 chip-ID: 1130:1620
    chip-ID: 8086:1c20 class-ID: 0300 class-ID: 0403
  Device-2: AMD Turks HDMI Audio [Radeon HD 6500/6600 / 6700M Series] vendor: Hightech
    Information System driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 2 speed: 5 GT/s bus-ID: 01:00.1 chip-ID: 1002:aa90 class-ID: 0403
  Device-3: Tenx USB AUDIO type: USB driver: hid-generic,snd-usb-audio,usbhid
  API: ALSA v: k6.1.0-37-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK P8P67 and other
    motherboards driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000
    bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.05 TiB used: 227.52 GiB (10.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37240G size: 223.57 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: B1D1 scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DL003-9VT166 size: 1.82 TiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5900 serial: <filter>
    rev: CC32 scheme: MBR
  ID-3: /dev/sdg maj-min: 8:96 type: USB vendor: Toshiba model: TransMemory size: 14.44 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: 1.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 30.27 GiB size: 29.63 GiB (97.87%) used: 24.74 GiB (83.5%) fs: ext4
    dev: /dev/sda7 maj-min: 8:7
  ID-2: /boot/efi raw-size: 100 MiB size: 98.4 MiB (98.45%) used: 535 KiB (0.5%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 50.78 GiB size: 49.68 GiB (97.84%) used: 17.08 GiB (34.4%) fs: ext4
    dev: /dev/sda8 maj-min: 8:8
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 11.93 GiB used: 46.4 MiB (0.4%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 26.0 C mobo: N/A gpu: radeon temp: 36.5 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2572 pm: dpkg pkgs: 2567 libs: 1345 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 5
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/megasync.list
    1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_12/ ./
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bookworm main non-free
Info:
  Processes: 232 Uptime: 2h 18m wakeups: 30 Memory: 3.81 GiB used: 1.74 GiB (45.7%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Following latest updates USB Maker is reporting Error encountered in live usb creation process.

This problem is on both my machines.

User avatar
Eadwine Rose
Administrator
Posts: 14716
Joined: Wed Jul 12, 2006 2:10 am

Re: Live usb maker error

#2 Post by Eadwine Rose »

Would be very nice if we could see WHAT the error was.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
Fornhamfred
Posts: 309
Joined: Sun May 02, 2010 12:49 pm

Re: Live usb maker error

#3 Post by Fornhamfred »

Code: Select all

/usr/local/bin/live-usb-maker gui -N -C off --from=/media/Backups/MX-Snapshots/snapshot/snapshot-20250607_0611.iso -t /dev/sdg
        program: live-usb-maker
        started: Sat  7 Jun 06:31:53 BST 2025
        version: 2.41.19-2302 (Sat, 25 Feb 2023 12:45:10 -0500)
         kernel: 6.1.0-37-amd64
             OS: MX 23.6 (Libretto)
      found lib: /usr/local/lib/cli-shell-utils/cli-shell-utils.bash
    lib version: 2.41.05-2302 (Sat, 25 Feb 2023 12:45:10 -0500)
---------------------------------------------------------------------

Found man page: live-usb-maker.1
Will use target device /dev/sdg (14.4G TOSHIBA TransMemory)
Will use source file /media/Backups/MX-Snapshots/snapshot/snapshot-20250607_0611.iso
Found grub config 2.0
Estimated extfs overhead for 14731M is 36M

                    Total      Used     Extra
   entire drive  14.4 GiB 14.4 GiB     1 MiB
 main partition  14.4 GiB 5.12 GiB  9.27 GiB
 uefi partition    50 MiB   32 MiB    18 MiB

Ready to make live-usb on device sdg
... by copying file /media/Backups/MX-Snapshots/snapshot/snapshot-20250607_0611.iso

>> partition-clear
Total bytes: 15500574720
Total blocks: 30274560
 > dd status=none if=/dev/zero of=/dev/sdg bs=512 count=34
 > dd status=none if=/dev/zero of=/dev/sdg bs=512 count=34 seek=64
 > dd status=none conv=notrunc if=/dev/zero of=/dev/sdg bs=512 count=34 seek=30274526
 > partprobe /dev/sdg

>> partition-make
Using msdos partitioning
 > parted --script --align optimal /dev/sdg unit MiB mklabel msdos
 > dd status=none if=/dev/zero of=/dev/sdg seek=1024 bs=1K count=128
 > parted --script --align optimal /dev/sdg unit MiB mkpart primary 1 14731
 > parted --script --align optimal /dev/sdg unit MiB set 1 boot on
 > dd status=none if=/dev/zero of=/dev/sdg seek=15084544 bs=1K count=128
 > parted --script --align optimal /dev/sdg unit MiB mkpart primary 14731 14780
 > parted --script --align optimal /dev/sdg unit MiB set 2 esp on
 > partprobe /dev/sdg
 > wait_for_file /dev/sdg1

>> makefs-bios
 > mkfs.ext4 -O ^64bit -m0 -i16384 -J size=32 /dev/sdg1
mke2fs 1.47.0 (5-Feb-2023)
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 3770880 4k blocks and 942848 inodes
Filesystem UUID: d6f2737d-5af2-4df1-8aae-2e611631c24c
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

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

 > tune2fs -L Live-usb /dev/sdg1
tune2fs 1.47.0 (5-Feb-2023)
 > wait_for_file /dev/sdg2

>> makefs-uefi
 > mkfs.vfat -F 32 -n LIVE-UEFI /dev/sdg2
mkfs.fat 4.2 (2021-01-31)
 > partprobe /dev/sdg
 > wait_for_file /dev/sdg1
 > mkdir -p /run/live-usb-maker/main
 > mount -t ext4 /dev/sdg1 /run/live-usb-maker/main
 > wait_for_file /dev/sdg2
 > mkdir -p /run/live-usb-maker/uefi
 > mount -t vfat /dev/sdg2 /run/live-usb-maker/uefi

Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/sdg1      ext4   15G   24K   15G   1% /run/live-usb-maker/main
/dev/sdg2      vfat   49M   512   49M   1% /run/live-usb-maker/uefi


>> copy-uefi
copy from iso to uefi partition
files [Ee][Ff][Ii] version
 > cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/EFI /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
vm.dirty_bytes = 20000000
copy /antiX/vmlinuz
 > cpio -pdm --quiet /run/live-usb-maker/main/
 > e4defrag -v ./antiX/vmlinuz
e4defrag 1.47.0 (5-Feb-2023)
ext4 defragmentation for ./antiX/vmlinuz
[1/1][1/1]./antiX/vmlinuz:	100%  extents: 1 -> 1	[ OK ]
 Success:			[1/1]
copy /antiX/initrd.gz
 > cpio -pdm --quiet /run/live-usb-maker/main/
 > e4defrag -v ./antiX/initrd.gz
e4defrag 1.47.0 (5-Feb-2023)
ext4 defragmentation for ./antiX/initrd.gz
[1/1][1/1]./antiX/initrd.gz:	100%  extents: 1 -> 1	[ OK ]
 Success:			[1/1]
copy remaining files ...
 > cpio -pdm --quiet /run/live-usb-maker/main/
copy pids: 14785 14788
cpio: /run/live-usb-maker/main//./.disk: Cannot change ownership to uid 0, gid 0: No such file or directory
cpio: /run/live-usb-maker/main//./.disk: Cannot change mode to rwxr-xr-x: No such file or directory
cpio: /run/live-usb-maker/main//./.disk: Cannot utime: No such file or directory
Error: Error while copying files to main partition of live usb

live-usb-maker took 24 minutes and 7 seconds.

vm.dirty_bytes = 20000000
vm.dirty_ratio = 0
Last edited by Fornhamfred on Sat Jun 07, 2025 6:00 am, edited 1 time in total.

User avatar
Fornhamfred
Posts: 309
Joined: Sun May 02, 2010 12:49 pm

Re: Live usb maker error

#4 Post by Fornhamfred »

My apologies for the post not using code

User avatar
Eadwine Rose
Administrator
Posts: 14716
Joined: Wed Jul 12, 2006 2:10 am

Re: Live usb maker error

#5 Post by Eadwine Rose »

Then edit it and use the code.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
Fornhamfred
Posts: 309
Joined: Sun May 02, 2010 12:49 pm

Re: Live usb maker error

#6 Post by Fornhamfred »

On my laptop live usb maker does not run at all just reports the error and so there is no file to attach.

User avatar
Eadwine Rose
Administrator
Posts: 14716
Joined: Wed Jul 12, 2006 2:10 am

Re: Live usb maker error

#7 Post by Eadwine Rose »

Please run from the terminal and post the output in code tags.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
j2mcgreg
Global Moderator
Posts: 6858
Joined: Tue Oct 23, 2007 12:04 pm

Re: Live usb maker error

#8 Post by j2mcgreg »

Fornhamfred wrote: Sat Jun 07, 2025 6:03 am On my laptop live usb maker does not run at all just reports the error and so there is no file to attach.
Is the error message consistent with all USB flash drive brands?
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
Fornhamfred
Posts: 309
Joined: Sun May 02, 2010 12:49 pm

Re: Live usb maker error

#9 Post by Fornhamfred »

Code: Select all

lf@mx:~
$ mx-live-usb-maker
mx-live-usb-maker version: 25.6
LUM is: "/usr/bin/live-usb-maker"
Options:  "-N"
Target device: "sdg" Raw size (bytes): 15500574720 Size (GB): 14
Source filename property: "/media/Backups/MX-Snapshots/snapshot/snapshot-20250607_0611.iso"
ISO file size (bytes): 5462032384
/usr/bin/live-usb-maker gui -N -C off --from="/media/Backups/MX-Snapshots/snapshot/snapshot-20250607_0611.iso" -t /dev/sdg
lumlog "/tmp/live-usb-maker.log"
tac /var/log/live-usb-maker.log | sed '/^={60}=$/q' | tac > /tmp/live-usb-maker.log

User avatar
Adrian
Developer
Posts: 8987
Joined: Wed Jul 12, 2006 1:42 am

Re: Live usb maker error

#10 Post by Adrian »

It says that there's a log at /tmp/live-usb-maker.log any relevant info there?

Also, can you please try something for me, what if you run the CLI tool directly, "live-usb-maker" it's not that complicated, do you have the same issue with it? You should have the command you need to run in the output:

Code: Select all

live-usb-maker gui -N -C off --from=/media/Backups/MX-Snapshots/snapshot/snapshot-20250607_0611.iso -t /dev/sdg
(just make sure it's the correct drive)

Post Reply

Return to “Software / Configuration”