SOLVED: linux usb key recognized in window 10

Non release banter
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

SOLVED: linux usb key recognized in window 10

Post#1 by francois » 03 Aug 2018, 19:37

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.
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#2 by Ed_P » 03 Aug 2018, 20:34

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.
Ed

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

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

Post#3 by francois » 04 Aug 2018, 00:39

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.
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#4 by Ed_P » 04 Aug 2018, 05:33

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]
Ed

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

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

Post#5 by francois » 05 Aug 2018, 02:48

Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#6 by Ed_P » 05 Aug 2018, 03:11

Many opinions. Good luck. :)
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#7 by Ed_P » 05 Aug 2018, 13:21

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. :)
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

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

Post#8 by brokenman » 05 Aug 2018, 13:26

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

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

Post#9 by francois » 05 Aug 2018, 13:53

@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. :(
Prendre son temps, profiter de celui qui passe.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

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

Post#10 by brokenman » 05 Aug 2018, 15:14

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Blaze
DEV Team
DEV Team
Posts: 3882
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

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

Post#11 by Blaze » 05 Aug 2018, 19:25

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 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#12 by Ed_P » 05 Aug 2018, 23:26

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. ;)
Ed

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

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

Post#13 by francois » 06 Aug 2018, 01:07

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.
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8359
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#14 by Ed_P » 06 Aug 2018, 15:03

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. :)
Ed

User avatar
Blaze
DEV Team
DEV Team
Posts: 3882
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

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

Post#15 by Blaze » 06 Aug 2018, 15:17

Ed_P, this variant not for me :unknown:
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Post Reply