Page 1 of 1

antiX live usb maker PARTITION TABLE issue?

Posted: Mon Dec 24, 2018 2:33 pm
by DevilMind
antiX live usb maker PARTITION TABLE issue?

i have 32gb USB flash drive,
i want these 3 Partitions

sda1 - 29gb fat32 - data for Windows and MacOS
sda2 - 3gb ext4 - live usb antiX
sda3 - 50mb fat16 - esp boot antiX


Now the problem is, the Live USB Maker app in antiX gives me no option and my Data fat32 Partition is in end of Partition (sda3).

is there any App which gives us full control of where to make Live USB Partitions on USB Stick?

because FIRST Partition on USB STICK is always recognised on Windows and MacOS and Car Music Player.
This makes it very easy to carry my data and also live usb boot when needed. Both on same USB Stick.

all of above also required for MX Linux 18 and AntiX 17.4.1.

UPDATE on 29-07-2019 Mon:
Please can anyone help with this?
Is there a Terminal Command or Linux App which can simply:
1. Format my 32gb USB to:
sda1 fat32 to 28gb for Windows and Car Music Player
sda2 fat16 to 50mb EFI boot partition
sda3 ext4 to 2gb AntiX or MX Live USB partition

Please Note:
The partition rename from sda1 to sda3 Terminal Command is not helpful on Car Music Player.


waiting for your replies

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Mon Dec 24, 2018 3:18 pm
by towwire
Your are not booting Windows, Windows will use any data partition that is in a formatted it knows. I have a computer that has Windows 7 and XP on the same hard drive and each sees the other. As for antiX live someone else will have to answer that.

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Mon Dec 24, 2018 4:00 pm
by BitJam
I have not tried this (yet) but this is what I suggest you do. Use the command line live-usb-maker to make your live-usb. Use the --gpt option to create a gpt partition table and use the --size option to limit the amount of the usb stick we use or select the size interactively when the program runs. Then add your fat32 data partition and use the gdisk program to change the partition table numbering. In the expert menu there is a "t" (for transpose) option to swap the numbers of two partitions. You could use this once or twice to get the partition order you want. If you try this, please let us know if it works!

We used to use gpt as the default partitioning but Dell made some crazy machines that required us to only boot via legacy or only boot via UEFI if we used gpt. Strange but true.

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Mon Dec 24, 2018 5:22 pm
by fehlix
BitJam wrote: Mon Dec 24, 2018 4:00 pm I have not tried this (yet) but this is what I suggest you do.
It works! :number1:
Used this to create :

Code: Select all

sudo live-usb-maker --gpt --size=50 --from=/ISO/MX-Linux/MX-18/MX-18_x64.iso
Reordered partitions using gdisk.
The manualy created FAT32 partion is accessible in Win10.
Boots in legacy BIOS/MBR mode and in UEFI mode.
Partitions as shown running Live:

Code: Select all

demo@mx1:~/Desktop
$ sudo lsblk -f /dev/sda
NAME   FSTYPE LABEL       UUID                                 MOUNTPOINT
sda                                                            
├─sda1 vfat   FAT32       D606-EC9E                            
├─sda2 ext4   MX-Live-usb 76699fe8-7975-489a-84eb-ab9216a92f58 
└─sda3 vfat   MX-uefi     CD20-C0AC                            
The partition order shown with fdisk indicates the manually create FAT32 is "physically" the last partition.

Code: Select all

demo@mx1:~/Desktop
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 28,7 GiB, 30752636928 bytes, 60063744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 45FA149B-7D4D-45E8-8D6D-5A855F9D57D9

Device        Start      End  Sectors  Size Type
/dev/sda1  30029824 60061695 30031872 14,3G Microsoft basic data
/dev/sda2      2048 29927423 29925376 14,3G Linux filesystem
/dev/sda3  29927424 30029823   102400   50M EFI System

Partition table entries are not in disk order.
inxi system info in BIOS mode

Code: Select all

demo@mx1:~/Desktop
$ inxi -Fxz
System:    Host: mx1 Kernel: 4.19.0-1-amd64 x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Xfce 4.12.3 Distro: MX-18_x64 Continuum Dec 20  2018 
           base: Debian GNU/Linux 9 (stretch) 
Machine:   Type: Virtualbox System: innotek product: VirtualBox v: 1.2 serial: <filter> 
           Mobo: Oracle model: VirtualBox v: 1.2 serial: <filter> BIOS: innotek v: VirtualBox 
           date: 12/01/2006 
CPU:       Topology: Quad Core model: Intel Xeon E3-1240 V2 bits: 64 type: MCP arch: Ivy Bridge 
           rev: 9 L2 cache: 8192 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 27226 
           Speed: 3403 MHz min/max: N/A Core speeds (MHz): 1: 3403 2: 3403 3: 3403 4: 3403 
Graphics:  Device-1: InnoTek Systemberatung VirtualBox Graphics Adapter driver: vboxvideo 
           v: kernel bus ID: 00:02.0 
           Display: x11 server: X.Org 1.19.2 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1600x900~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 7.0 256 bits) v: 3.3 Mesa 18.2.6 direct render: Yes 
Audio:     Device-1: Intel 82801AA AC97 Audio driver: snd_intel8x0 v: kernel bus ID: 00:05.0 
           Sound Server: ALSA v: k4.19.0-1-amd64 
Network:   Device-1: Intel 82540EM Gigabit Ethernet driver: e1000 v: 7.3.21-k8-NAPI port: d000 
           bus ID: 00:03.0 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge driver: piix4_smbus 
           v: N/A port: d200 bus ID: 00:07.0 
Drives:    Local Storage: total: 60.64 GiB used: 20.8 MiB (0.0%) 
           ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 28.64 GiB 
           ID-2: /dev/sdb vendor: VirtualBox model: VBOX HARDDISK size: 32.00 GiB 
Partition: ID-1: / size: 4.31 GiB used: 20.8 MiB (0.5%) fs: overlay dev: ERR-102 
           ID-2: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb3 
Sensors:   Message: No sensors data was found. Is sensors configured? 
Info:      Processes: 179 Uptime: 4m Memory: 6.81 GiB used: 450.7 MiB (6.5%) Init: SysVinit 
           runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.25 
demo@mx1:~/Desktop
inxi system info in UEFI mode

Code: Select all

demo@mx1:~/Desktop
$ inxi -Fxz
System:    Host: mx1 Kernel: 4.19.0-1-amd64 x86_64 bits: 64 compiler: gcc v: 6.3.0 
           Desktop: Xfce 4.12.3 Distro: MX-18_x64 Continuum Dec 20  2018 
           base: Debian GNU/Linux 9 (stretch) 
Machine:   Type: Virtualbox System: innotek product: VirtualBox v: 1.2 serial: <filter> 
           Mobo: Oracle model: VirtualBox v: 1.2 serial: <filter> UEFI: innotek v: VirtualBox 
           date: 12/01/2006 
CPU:       Topology: Quad Core model: Intel Xeon E3-1240 V2 bits: 64 type: MCP arch: Ivy Bridge 
           rev: 9 L2 cache: 8192 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 27226 
           Speed: 3403 MHz min/max: N/A Core speeds (MHz): 1: 3403 2: 3403 3: 3403 4: 3403 
Graphics:  Device-1: InnoTek Systemberatung VirtualBox Graphics Adapter driver: vboxvideo 
           v: kernel bus ID: 00:02.0 
           Display: x11 server: X.Org 1.19.2 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1600x900~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 7.0 256 bits) v: 3.3 Mesa 18.2.6 direct render: Yes 
Audio:     Device-1: Intel 82801AA AC97 Audio driver: snd_intel8x0 v: kernel bus ID: 00:05.0 
           Sound Server: ALSA v: k4.19.0-1-amd64 
Network:   Device-1: Intel 82540EM Gigabit Ethernet driver: e1000 v: 7.3.21-k8-NAPI port: c180 
           bus ID: 00:03.0 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge driver: piix4_smbus 
           v: N/A port: c100 bus ID: 00:07.0 
Drives:    Local Storage: total: 60.64 GiB used: 20.4 MiB (0.0%) 
           ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 28.64 GiB 
           ID-2: /dev/sdb vendor: VirtualBox model: VBOX HARDDISK size: 32.00 GiB 
Partition: ID-1: / size: 4.31 GiB used: 20.4 MiB (0.5%) fs: overlay dev: ERR-102 
           ID-2: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb3 
Sensors:   Message: No sensors data was found. Is sensors configured? 
Info:      Processes: 177 Uptime: 1m Memory: 6.81 GiB used: 437.7 MiB (6.3%) Init: SysVinit 
           runlevel: 5 Compilers: gcc: 6.3.0 Shell: bash v: 4.4.12 inxi: 3.0.25 
:puppy:
EDIT: The /dev/sda is a USB-Stick SanDisk Ultra ( emulated for VBOX as a harddisk to make Vbox to boot from )
shown here as visible from the host:

Code: Select all

ID-4: /dev/sdg type: USB vendor: SanDisk model: Ultra size: 28.64 GiB serial: <filter> rev: 1.00 
scheme: GPT 

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Mon Dec 24, 2018 9:53 pm
by BitJam
fehlix wrote: Mon Dec 24, 2018 5:22 pmIt works! :number1:
Excellent! Well done! :number1: :number1: :number1:

I wondered if we'd need to reinstall the legacy bootloader on the gpt-mbr. I also wondered if all 3 partitions would show up in Windows if gpt were used. If so then re-arranging the partitions may not be needed.

If there was a lot of demand for this, we could build it in but the partitioning is already a little complicated because it has to change for encrypted live-usbs. Building this in would add more complication to at least do_partition() setup_devices(). We could also just script what you did to make the change afterwards. The sgdisk program has a --transpose option (for example "--transpose:1:2"). It will also convert mbr to gpt partitioning automatically so the OP could just run gdisk or sgdisk on their existing live-usb. But in that case I'm pretty sure the legacy bootloader on the "mbr" will need to get reloaded.

Good work!

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Tue Dec 25, 2018 7:52 am
by DevilMind
can't these things be added in Live USB Maker GUI App in antiX and MX Linux?

command and terminal too complicated for me

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Tue Dec 25, 2018 8:25 am
by anticapitalista
DevilMind wrote: Tue Dec 25, 2018 7:52 am can't these things be added in Live USB Maker GUI App in antiX and MX Linux?

command and terminal too complicated for me
If you know how to do so, here is the github source.

https://github.com/MX-Linux/mx-live-usb-maker

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Tue Dec 25, 2018 11:20 am
by fehlix
BitJam wrote: Mon Dec 24, 2018 9:53 pm I wondered if we'd need to reinstall the legacy bootloader on the gpt-mbr.
After reordering of partition-table entries: boots fine in both legacy and uefi mode.
This proofs, legacy-mbr in MX-Live-usb partition is not touched and is acceped by BIOS to boot from.

Code: Select all

$ sudo sgdisk  -A 2:show /dev/sdg 
2:2:1 (legacy BIOS bootable)
BitJam wrote: Mon Dec 24, 2018 9:53 pm I also wondered if all 3 partitions would show up in Windows if gpt were used. If so then re-arranging the partitions may not be needed.
Tested within win7 and win10:
win7: only the new re-ordered partnum 1 (dev/sdg1 "FAT32") manually formated to fat32 does show up as drive E: ( in my example )
win7fat32_e.png
win10: only both vfat partitions ( /dev/sdg1 "FAT32" and /dev/sdg3 "MX-uefi") are identfied, and "FAT32"-partition is mounted as drive G:
win10-fat32_g-usb_f.png
But "MX-uefi" vfat partition /dev/sdg3 is not recognised as a valid partition.
win10 popups to format drive "MX-uefi"-vat partition.
w10-no-access-efi-vfat-f.png
w10-format-efi-vfat-f.png
Any attempt to hide this by using "hidden flag in gparted flags: "boot, hidden, esp" or/and in addition setting gpt-flags with gdisk:

Code: Select all

$ sudo sgdisk  -A 3:set:0 /dev/sdg 
$ sudo sgdisk  -A 3:set:62 /dev/sdg 
$ sudo sgdisk  -A 3:show /dev/sdg 
3:0:1 (system partition)
3:62:1 (hidden)
did not succeed to hide this "MX-uefi" partittion in win10.
BitJam wrote: Mon Dec 24, 2018 9:53 pm We could also just script what you did to make the change afterwards.
That's might be the easiest bit, If user leaves free space on the USB-stick, we can as a post-install script this to populate, the remaining space, if choosen to have space left,
to : 1- create win-accesible partition either FAT32, exFAT, NTFS ( we might include exVAT as an option )
2- re-shuffle/re-order (transpose) to have the new partion to become partnum 1
Here my example of re-ordering using sgdisk to transpose partition-table entries:

Code: Select all

fehlix@mx171:~/Desktop
$ lsblk -f /dev/sdg
NAME   FSTYPE LABEL       UUID                                 MOUNTPOINT
sdg                                                            
├─sdg1 ext4   MX-Live-usb 76699fe8-7975-489a-84eb-ab9216a92f58 
├─sdg2 vfat   MX-uefi     CD20-C0AC                            
└─sdg3 vfat   FAT32       D606-EC9E                            
fehlix@mx171:~/Desktop
#---------------------------------------
$ sudo sgdisk --transpose=2:3  /dev/sdg
$ sudo sgdisk --transpose=1:2  /dev/sdg 
The operation has completed successfully.
$ lsblk -f /dev/sdg
NAME   FSTYPE LABEL       UUID                                 MOUNTPOINT
sdg                                                            
├─sdg1 vfat   FAT32       D606-EC9E                            
├─sdg2 ext4   MX-Live-usb 76699fe8-7975-489a-84eb-ab9216a92f58 
└─sdg3 vfat   MX-uefi     CD20-C0AC                            
fehlix@mx171:~/Desktop
#---------------------------------------
And to see how exFAT shows up in win re-formeted to exFAT. Shows up nicely in both win7 and win10.

Code: Select all

#---------------------------------------
$ sudo mkfs.exfat -n exFAT /dev/sdg1
mkexfatfs 1.2.5
Creating... done.
Flushing... done.
File system created successfully.
#....
fehlix@mx171:~/Desktop
$ lsblk -f /dev/sdg
NAME   FSTYPE LABEL       UUID                                 MOUNTPOINT
sdg                                                            
├─sdg1 exfat  exFAT       3646-C1D6                            
├─sdg2 ext4   MX-Live-usb 76699fe8-7975-489a-84eb-ab9216a92f58 
└─sdg3 vfat   MX-uefi     CD20-C0AC                            
:puppy:

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Tue Dec 25, 2018 1:27 pm
by DevilMind
BitJam wrote: Mon Dec 24, 2018 4:00 pm I have not tried this (yet) but this is what I suggest you do. Use the command line live-usb-maker to make your live-usb. Use the --gpt option to create a gpt partition table and use the --size option to limit the amount of the usb stick we use or select the size interactively when the program runs. Then add your fat32 data partition and use the gdisk program to change the partition table numbering. In the expert menu there is a "t" (for transpose) option to swap the numbers of two partitions. You could use this once or twice to get the partition order you want. If you try this, please let us know if it works!

We used to use gpt as the default partitioning but Dell made some crazy machines that required us to only boot via legacy or only boot via UEFI if we used gpt. Strange but true.
can you show me commands for all this you suggested?
can you stell me how to do with GParted or other GUI apps

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Tue Dec 25, 2018 1:41 pm
by fehlix
DevilMind wrote: Tue Dec 25, 2018 1:27 pm can you show me commands for all this you suggested?
can you stell me how to do with GParted or other GUI apps
I might jump in here as I have done it already. I'll go and summarize a little how to, so it might be usefull for other as well.
I'll be back asap ... :snail: ... :turtle:
:puppy:

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Tue Dec 25, 2018 2:18 pm
by BitJam
DevilMind wrote: Tue Dec 25, 2018 7:52 am can't these things be added in Live USB Maker GUI App in antiX and MX Linux?
It could be added but I don't know if the work and extra complication involved is worthwhile. AFAIK, yours is the first and only request for this.
DevilMind wrote: Tue Dec 25, 2018 1:27 pmcan you stell me how to do with GParted or other GUI apps
No. I couldn't find any GUI apps that did what you need. That is where I looked first.
DevilMind wrote: Tue Dec 25, 2018 1:27 pm can you show me commands for all this you suggested?
Fehlix is preparing instructions but the commands have already been outlined above.

1) First you need to make the live-usb with gpt partitioning (this *might* be an option in the GUI tool already, I don't know). As Fehlix said:

Code: Select all

sudo live-usb-maker --gpt --size=50 --from=/ISO/MX-Linux/MX-18/MX-18_x64.iso
You will need to change the location of the iso to where the iso file is on your system.

2) Then run gparted to add the 3rd partition.

3) finally, ASSUMING your live-usb is at /dev/sdd (the program above will tell you where it is as it runs) then simply do:

Code: Select all

sudo sgdisk --transpose=1:2 /dev/sdd
This swaps the 1st and 3rd partitions so your fat-32 data partition shows up first.

The size option in the first command tells us to use 50% of the usb for the live system and leave 50% free. If you want more space for data then use a smaller percentage like --size=30. Also, it is very important that you get the /dev/ name correct in the third command. I will often run "lsblk" or "lsblk -o name,fstype,size,label" to make sure I know where the device is.

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Wed Dec 26, 2018 1:43 am
by DevilMind
BitJam wrote: Tue Dec 25, 2018 2:18 pm
DevilMind wrote: Tue Dec 25, 2018 7:52 am can't these things be added in Live USB Maker GUI App in antiX and MX Linux?
It could be added but I don't know if the work and extra complication involved is worthwhile. AFAIK, yours is the first and only request for this.
DevilMind wrote: Tue Dec 25, 2018 1:27 pmcan you stell me how to do with GParted or other GUI apps
No. I couldn't find any GUI apps that did what you need. That is where I looked first.
DevilMind wrote: Tue Dec 25, 2018 1:27 pm can you show me commands for all this you suggested?
Fehlix is preparing instructions but the commands have already been outlined above.

1) First you need to make the live-usb with gpt partitioning (this *might* be an option in the GUI tool already, I don't know). As Fehlix said:

Code: Select all

sudo live-usb-maker --gpt --size=50 --from=/ISO/MX-Linux/MX-18/MX-18_x64.iso
You will need to change the location of the iso to where the iso file is on your system.

2) Then run gparted to add the 3rd partition.

3) finally, ASSUMING your live-usb is at /dev/sdd (the program above will tell you where it is as it runs) then simply do:

Code: Select all

sudo sgdisk --transpose=1:2 /dev/sdd
This swaps the 1st and 3rd partitions so your fat-32 data partition shows up first.

The size option in the first command tells us to use 50% of the usb for the live system and leave 50% free. If you want more space for data then use a smaller percentage like --size=30. Also, it is very important that you get the /dev/ name correct in the third command. I will often run "lsblk" or "lsblk -o name,fstype,size,label" to make sure I know where the device is.
thank you
your this post contains All in One answer 👍
thanks again

The antiX Live USB Maker GUI App contains all the above provided options other than PARTITION CHANGE, but how can i change Partition on msdos Partition Table

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Wed Dec 26, 2018 2:06 am
by BitJam
DevilMind wrote: Wed Dec 26, 2018 1:43 amThe antiX Live USB Maker GUI App contains all the above provided options other than PARTITION CHANGE, but how can i change Partition on msdos Partition Table
I don't know how to renumber an msdos partition table. It may not be possible. That is why we suggested making the live-usb again using the --gpt option. This creates a live-usb with a gpt partition table.

But if you have valuable information on the usb stick that you don't want to erase or backup then there is another option. The sgdisk program (or at least the interactive gdisk program) can convert the msdos partition table to a gpt partition table before it does the renumbering. As I may have said, this is almost certain to break the legacy bootloader. Assuming your live-usb is at /dev/sdd then after you re-number your existing live-usb, converting it to gpt in the process, you can try to re-install the gpt legacy bootloader with this command:

Code: Select all

sudo dd bs=440 conv=notrunc count=1 if=/usr/lib/syslinux/mbr/gptmbr.bin of=/dev/sdd

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Sun Jul 28, 2019 3:58 pm
by DevilMind
DevilMind wrote: Wed Dec 26, 2018 1:43 am
BitJam wrote: Tue Dec 25, 2018 2:18 pm
DevilMind wrote: Tue Dec 25, 2018 7:52 am can't these things be added in Live USB Maker GUI App in antiX and MX Linux?
It could be added but I don't know if the work and extra complication involved is worthwhile. AFAIK, yours is the first and only request for this.
DevilMind wrote: Tue Dec 25, 2018 1:27 pmcan you stell me how to do with GParted or other GUI apps
No. I couldn't find any GUI apps that did what you need. That is where I looked first.
DevilMind wrote: Tue Dec 25, 2018 1:27 pm can you show me commands for all this you suggested?
Fehlix is preparing instructions but the commands have already been outlined above.

1) First you need to make the live-usb with gpt partitioning (this *might* be an option in the GUI tool already, I don't know). As Fehlix said:

Code: Select all

sudo live-usb-maker --gpt --size=50 --from=/ISO/MX-Linux/MX-18/MX-18_x64.iso
You will need to change the location of the iso to where the iso file is on your system.

2) Then run gparted to add the 3rd partition.

3) finally, ASSUMING your live-usb is at /dev/sdd (the program above will tell you where it is as it runs) then simply do:

Code: Select all

sudo sgdisk --transpose=1:2 /dev/sdd
This swaps the 1st and 3rd partitions so your fat-32 data partition shows up first.

The size option in the first command tells us to use 50% of the usb for the live system and leave 50% free. If you want more space for data then use a smaller percentage like --size=30. Also, it is very important that you get the /dev/ name correct in the third command. I will often run "lsblk" or "lsblk -o name,fstype,size,label" to make sure I know where the device is.
thank you
your this post contains All in One answer 👍
thanks again

The antiX Live USB Maker GUI App contains all the above provided options other than PARTITION CHANGE, but how can i change Partition on msdos Partition Table
all of above also required for MX Linux 18 and AntiX 17.4.1.

UPDATE on 29-07-2019 Mon:
Please can anyone help with this?
Is there a Terminal Command or Linux App which can simply:
1. Format my 32gb USB to:
sda1 fat32 to 28gb for Windows and Car Music Player
sda2 fat16 to 50mb EFI boot partition
sda3 ext4 to 2gb AntiX or MX Live USB partition

Please Note:
The partition rename from sda1 to sda3 Terminal Command is not helpful on Car Music Player.


waiting for your replies

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Sun Jul 28, 2019 4:14 pm
by fehlix
DevilMind wrote: Sun Jul 28, 2019 3:58 pm UPDATE on 29-07-2019 Mon:
Please can anyone help with this?
Is there a Terminal Command or Linux App which can simply:
1. Format my 32gb USB to:
sda1 fat32 to 28gb for Windows and Car Music Player
sda2 fat16 to 50mb EFI boot partition
sda3 ext4 to 2gb AntiX or MX Live USB partition

Please Note:
The partition rename from sda1 to sda3 Terminal Command is not helpful on Car Music Player.


waiting for your replies
Yes, meanwhile the command line installer live-usb-maker will allow you to install such that you can have this layout on the usb stick.

Code: Select all

sda1 fat32 to 28gb for Windows and Car Music Player
sda2 ext4 to 2gb AntiX or MX Live USB partition
sda3 fat16 to 50mb EFI boot partition
If you don't have yet the latest "cli" live-usb-maker , the easiest would be to get latest onto your system
with running

Code: Select all

git clone https://github.com/BitJam/live-usb-maker
git clone https://github.com/BitJam/cli-shell-utils
cd live-usb-maker
Now run live-usb-maker like such example to create a vfat/fat32 data-first partition:

Code: Select all

sudo ./live-usb-maker --data-first -f MX-18.3_July_x64.iso 
You would need to adjust the ISO filename and path, or run with out -f option:

Code: Select all

sudo ./live-usb-maker --data-first 
to navigate to and select the ISO.
With --data-first you get a selection of the size for the first partition.
HTH
:puppy:
EDIT: Clarified: No need to specify format of data-first partition vfat ( = "fat32") is the default.

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Sun Jul 28, 2019 4:45 pm
by DevilMind
fehlix wrote: Sun Jul 28, 2019 4:14 pm
DevilMind wrote: Sun Jul 28, 2019 3:58 pm UPDATE on 29-07-2019 Mon:
Please can anyone help with this?
Is there a Terminal Command or Linux App which can simply:
1. Format my 32gb USB to:
sda1 fat32 to 28gb for Windows and Car Music Player
sda2 fat16 to 50mb EFI boot partition
sda3 ext4 to 2gb AntiX or MX Live USB partition

Please Note:
The partition rename from sda1 to sda3 Terminal Command is not helpful on Car Music Player.


waiting for your replies
Yes, meanwhile the command line installer live-usb-maker will allow you to install such that you can have this layout on the usb stick.

Code: Select all

sda1 fat32 to 28gb for Windows and Car Music Player
sda2 ext4 to 2gb AntiX or MX Live USB partition
sda3 fat16 to 50mb EFI boot partition
If you don't have yet the latest "cli" live-usb-maker , the easiest would be to get latest onto your system
with running

Code: Select all

git clone https://github.com/BitJam/live-usb-maker
git clone https://github.com/BitJam/cli-shell-utils
cd live-usb-maker
Now run live-usb-maker like such example:

Code: Select all

sudo ./live-usb-maker --data-first=fat32 -f MX-18.3_July_x64.iso 
You would need to adjust the ISO filename and path, or run with out -f option:

Code: Select all

sudo ./live-usb-maker --data-first=fat32 
to navigate to and select the ISO.
With --data-first you get a selection of the size for the first partition.
HTH
:puppy:

i am getting this error on my Live USB on 32gb flash drive.

Code: Select all

demo@antix1:~
$ sudo apt-get update       # if needed
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://ftp.am.debian.org/debian stretch-updates InRelease
Ign:3 http://ftp.am.debian.org/debian stretch InRelease         
Hit:4 http://mirrors.ges.net.pk/mxlinux/antix/stretch stretch InRelease
Hit:5 http://ftp.am.debian.org/debian stretch Release
Reading package lists... Done                      
demo@antix1:~
$ sudo apt-get install git  # if needed
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb
  git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 72 not upgraded.
Need to get 5,627 kB of archives.
After this operation, 31.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.
demo@antix1:~
$ 

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Sun Jul 28, 2019 5:29 pm
by fehlix
DevilMind wrote: Sun Jul 28, 2019 4:45 pm i am getting this error on my Live USB on 32gb flash drive.
Try another mirror. I just installed git on antiX-17.4.1 live ISO, without any issue.
Please don't quote the full post when replying, as user can simply read the post above, thanks
Also I just made a LiveUSB with 1.5GB ext4 and 28 GB first data vfat partition.
Also note: You don't need to specfy the format vfat/fat32 as this is the default anyway, but you get a selection to choose from
vfat, ntfs, exfat or ext4 for the first-data partion
So just use without "fat32" if you want , better use vfat instead of "fat32".

Code: Select all

sudo ./live-usb-maker --data-first -f MX-18.3_July_x64.iso 
Thanks
EDIT:
Impressions:
lum-df-1.png
lum-df-2.png
lum-df-3.png
EDIT2:
I have attached freshly fetched from GIT latest lum and cli-shell-utils
do extract like this:

Code: Select all

tar xzvf live-usb-maker-2.41.02.tgz
tar xzvf cli-shell-utils-2.41.02.tgz

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Sun Jul 28, 2019 6:22 pm
by DevilMind
thank you
been trying for last 1 hour.
now getting this error on AntiX 17.4.1

Code: Select all

Ready to make live-usb on device sdb
... by copying file /media/REH-32-2/antiX-17.4.1_x64-base.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                                                                      
>> partition-make
Using msdos partitioning
Error: Partitioning failed at making
partition: Partitioning failed at 
root@antix1:/home/demo/live-usb-maker# 

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Sun Jul 28, 2019 6:41 pm
by fehlix
DevilMind wrote: Sun Jul 28, 2019 6:22 pm now getting this error on AntiX 17.4.1
[/code]
Don't know what command you run to get this error. Also better make sure not selecting the USB device you are coping the ISO from :footinmouth:
Perhaps better copy the iso first onto the system if that's also on USB, to avoid traffic on USB ports or not selection the wrong usb.

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Sun Jul 28, 2019 6:56 pm
by DevilMind
this code is best for me:

Code: Select all

sudo ./live-usb-maker -g --gpt --data-first
sorry before i did not UNMOUNT all my used partition on target USB.

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Sun Jul 28, 2019 7:19 pm
by fehlix
DevilMind wrote: Sun Jul 28, 2019 6:56 pm msdos partition working now.
but gpt partition not working
Is your usb under-powered. To many usb-devices plugged in? What USB brand/model is it?

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Fri Aug 02, 2019 4:15 am
by DevilMind
fehlix wrote: Sun Jul 28, 2019 7:19 pm
DevilMind wrote: Sun Jul 28, 2019 6:56 pm msdos partition working now.
but gpt partition not working
Is your usb under-powered. To many usb-devices plugged in? What USB brand/model is it?
Thanks you for your generous support 👍
after testing these on AntiX, and on MacOS, Windows 7 and Car Music Player.

Code: Select all

sudo ./live-usb-maker -g --gpt --data-first

Code: Select all

sudo ./live-usb-maker --data-first
Bootable AntiX 17.4.1 on USB models

Code: Select all

1. USB 2gb - Kingston Traveller Type-A 2.0
2. USB 32gb - Transcend TurboJet 700 Type-A 3.1 Gen 1
Both Flash Drives never worked on Windows 7, MacOS and Car Music Player, i tried both MBR and GPT on these.

Also these flash drives only work as Bootable and show the first partition inside AntiX or Linux OS only.

thank you 👍

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Mon Sep 09, 2019 9:18 am
by Akene
Hello,

I followed yours instructions (get last usb-maker, launch it with -gpt option) to make a usb-live system (with encryption) on an external hard drive, usb-maker crash at making partition table.

The drive is a 4TB BarraCuda, I connected it with differents links so I don't think this is an under-power issue.
I have no problem to format it with Gparted,

[edit] ... but i use MX and not AntiX, so this is surely out of context?

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Mon Sep 09, 2019 9:34 am
by fehlix
Akene wrote: Mon Sep 09, 2019 9:18 am Hello,

I followed yours instructions (get last usb-maker, launch it with -gpt option) to make a usb-live system (with encryption) on an external hard drive, usb-maker crash at making partition table.

The drive is a 4TB BarraCuda, I connected it with differents links so I don't think this is an under-power issue.
I have no problem to format it with Gparted,

[edit] ... but i use MX and not AntiX, so this is surely out of context?
You tried to convert a 4TB external drive into a LiveUSB? That's remarkable exercise. I guess even if the partition part would work, the EFI partition is far on the end of that drive, this alone might create issues for the UEFI system to navigate to that far end. On BIOS/legacy it might work, but if you added a data-first and the Live-ext4 partition is to far away BIOS will not be able to make such a big long distance jump.
:puppy:

Re: antiX live usb maker PARTITION TABLE issue?

Posted: Mon Sep 09, 2019 1:06 pm
by Akene
So i will stick with my 1TB HDD-USB-Live-Encrypted-Persistent-System :fox: