Page 1 of 2

SOLVED: linux usb key recognized in window 10

Posted: 03 Aug 2018, 19:37
by francois
How to format and setup porteus on a linux usb key that will boot and be recognized in window 10? The key is 30 gig.

linux usb key that will boot and be recognized in window 10

Posted: 03 Aug 2018, 20:34
by Ed_P
Format it as FAT32 and:

Follow the directions here: http://www.porteus.org/tutorials/37-ins ... -v-10.html.

Or review the USB_INSTALLATION.txt file in the ISO.

Or follow the steps here: Re: UEFI problem (Post by brokenman #47862)

If the Windows system has UEFI you must disable the Secure Boot option.

linux usb key that will boot and be recognized in window 10

Posted: 04 Aug 2018, 00:39
by francois
In fact, I would like 3 partitions optimizes for read and write wear:
1) fat32 2 to 5 Gig
2) ext2 12 gig porteus and the like
3) ext2 12 gig other linux
4) swap 2 gig

Unless, other type of linux partitition would perform better. I need fat32 to put a few files to be read by windows. The rest of the time I will be functioning linuxwise.

I would like the exact size of the partitions so to limit the wear of the usb key.

The key would boot or syslinux or grub2.

I will be really happy to disable secure boot option. If there is not much inconvenient.

Thanks.

linux usb key that will boot and be recognized in window 10

Posted: 04 Aug 2018, 05:33
by Ed_P
IMO With a modern computer I don't think you need a swap partition. 8GB should be adequate for your FAT32 partition plus Porteus and its associated modules. The rest you can allocate to whatever you want. If you need to change things at some point in the future use GParted.

This might also interest you: UEFI Boot Confusion [Solved]

linux usb key that will boot and be recognized in window 10

Posted: 05 Aug 2018, 02:48
by francois

linux usb key that will boot and be recognized in window 10

Posted: 05 Aug 2018, 03:11
by Ed_P
Many opinions. Good luck. :)

linux usb key that will boot and be recognized in window 10

Posted: 05 Aug 2018, 13:21
by Ed_P
BTW The only writing Porteus does to my flash drive is when I create, or download, a module and save it and when I exit Porteus cause I use the changes=EXIT cheatcode. So wear leveling is not a concern. And should the flash drive wear out I'll just buy another one, they're not that expensive now days. :)

linux usb key that will boot and be recognized in window 10

Posted: 05 Aug 2018, 13:26
by brokenman
You should partition exactly as you have shown above. Put the FAT32 partition first and windows will see it. It will not use the other ext partitions.

linux usb key that will boot and be recognized in window 10

Posted: 05 Aug 2018, 13:53
by francois
@brokenman:
Bonjour, très content de te revoir et de te savoir en bonne santé.

1) Would having porteus on the second partition a good option. I do not want to have to deal with fat32 dat container.
2) I would like to boot with the UUID partition identification. Here is an extract of my porteus.cfg, which fails at bootup:

Code: Select all

LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND from=UUID:34103e53-f26a-4d02-8a9a-c6cb0915ab53/64bit_v31  changes=/64bit_v31/porteus
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT
from=UUID:34103e53-f26a-4d02-8a9a-c6cb0915ab53/64bit_v31
seems to have the wrong syntax. :(

linux usb key that will boot and be recognized in window 10

Posted: 05 Aug 2018, 15:14
by brokenman
Here is a config that works for me.

LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/intel-ucode.cpio,/boot/syslinux/initrd.xz
APPEND from=/mnt/sda2/port-current load=xfce4

On /mnt/sda1 I have a FAT32 partition with the EFI and boot folder.
On /mnt/sda2 I have operating systems on ext2

/mnt/sda2/port-current/porteus/base/{001-core.xzm,002-xorg.xzm}

So, can you try with a from=/mnt command first. If it fails please explain in more detail how it fails.

linux usb key that will boot and be recognized in window 10

Posted: 05 Aug 2018, 19:25
by Blaze
Image
Ok, I found example screenshot where used GPT (UEFI) with installed Windows - /dev/sda[1-3] partitions.
/dev/sda4 for DATA (NTFS partition)
/dev/sda5 (SWAP - in modern times as such it is not needed)
/dev/sda[6-7] (ext4 or better ext2 can be as partition for Porteus)

Question. Can I install GRUB2 to /dev/sda1 for dual boot Windows and Porteus? In my option Windows installed on sda3, and Porteus installed on sdb1.
For example, for MBR I install GRUB like this grub2 menu entry (Post by Blaze #59969)
How it will looks for UEFI (I mean command for install GRUB2 in UEFI mode and how must looks grub.cfg for Porteus and Windows for dual boot in UEFI mode)?

Code: Select all

grub-install --efi-directory=??? --boot-directory=??? --bootloader-id=??? --target=x86_64-efi
Thanks.

linux usb key that will boot and be recognized in window 10

Posted: 05 Aug 2018, 23:26
by Ed_P
Blaze install Grub2Win on the Windows system. It will install an EFI module on sda1 and grub2 on sda3. The grub2/grub.cfg can boot systems from any partition or device.

Some people have copied their sda1 EFI folder and sda3 grub2 folder to their sdb1 drive and booted successfully on EFI systems. ;)

linux usb key that will boot and be recognized in window 10

Posted: 06 Aug 2018, 01:07
by francois
brokenman wrote:
05 Aug 2018, 15:14
On /mnt/sda1 I have a FAT32 partition with the EFI and boot folder.
How do I get that done?

Thanks.

linux usb key that will boot and be recognized in window 10

Posted: 06 Aug 2018, 15:03
by Ed_P
francois,
USB_INSTALLATION.txt wrote:Porteus can be installed to a flash drive or hard
drive in several ways.

FOR EFI SYSTEMS:
Ensure the first partition is of type FAT32.
a) Copy the EFI, boot and porteus folders onto the FAT32 partition.
You may create a second partition with a linux filesystem for the porteus folder.
If you do so, you need to add the from=/mnt/sdb2 cheatcode to the porteus-v4.0-x86_64.cfg file.
This file is located in the porteus folder.
The folders referenced are in the Porteus ISO. Dbl clicking on the ISO should open it in a file manager for you to drag the folders from. :)

linux usb key that will boot and be recognized in window 10

Posted: 06 Aug 2018, 15:17
by Blaze
Ed_P, this variant not for me :unknown: