SOLVED: linux usb key recognized in window 10

Non release banter
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
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#16 by Ed_P » 06 Aug 2018, 17:27

Blaze :%)

Not sure what you mean, the current version of Grub2Win or the installing it to a Windows 10 system? I believe you installed Grub2Win to a flash drive last fall, can you copy it from there?
Ed

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
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#17 by Blaze » 07 Aug 2018, 08:22

I prefer more GRUB2 for Linux than Grub2Win and files that are location in one bootable partition.
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
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#18 by francois » 07 Aug 2018, 20:19

@blaze:

For frugal install, grub2 is really the way to go. Please point to that post where you described the way to install it on porteus.

Thanks.

______
Answer linux usb key that will boot and be recognized in window 10 (Пост Blaze #65782)
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
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#19 by Ed_P » 08 Aug 2018, 19:24

francois wrote:
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?

This process worked for me. Single partition, FAT32 format, recognized in Windows 10 and Linux and pretty much any other system.

Code: Select all

guest@porteus:~$ EFI/porteus-efi-usb.sh

ISO=/mnt/sda6/ISOs/Porteus-CINNAMON-v4.0-x86_64.iso 
USB=/mnt/sdb1 
PORTEUS=/mnt/sda6/porteus4.0 

Press Enter to continue, Ctrl+C to cancel.

Enter root's password 
Password: 

ls /mnt/sdb1
EFI  USB_INSTALLATION.txt  boot  porteus  porteus-efi-usb.sh        <<<<<<<< Porteus 3.x system

/mnt/sdb1 drive? 

  Remove all existing files on /mnt/sdb1? [y/n] y


Copying porteus ISO files and folders to the USB drive.

Please wait!! This can take a minute or two.  
And if it doesn't something is wrong!!  Abort.  

Press Enter to continue...

Installing Porteus to the USB drive - from the Live system?
Verifying archive integrity... All good.
Uncompressing Porteus Installer......

                             _.====.._
                           ,:._       ~-_
                               '\        ~-_
                                 \        \.
                               ,/           ~-_
                      -..__..-''   PORTEUS   ~~--..__

==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--

Installing Porteus to /dev/sdb1
WARNING: Make sure this is the right partition before proceeding.

Type 'ok' to continue or press Ctrl+c to exit.
ok
Flushing filesystem buffers...

Using extlinux bootloader.

Installation finished successfully.
You may reboot your PC now and start using Porteus.
Please check the /boot/docs folder for additional information about
the installation process, Porteus requirements and booting parameters.
In case of making tweaks to the bootloader config,
please edit: /mnt/sdb1/boot/syslinux/porteus.cfg file.

Press Enter to exit.


Porteus 4.0 install complete.  Set to begin my restores.  
Press Ctrl+C to exit & reboot, press Enter to continue...

guest@porteus:~$ ls /mnt/sdb1/
EFI/  USB_INSTALLATION.txt*  boot/  porteus/  porteus-efi-usb.sh*
guest@porteus:~$ 
When rebooting I pressed F12 repeatedly till the BIOS window opened, I selected the EFI USB drive and it booted. The machine is a Windows 10 machine and the EFI Secure Boot option was disabled.

To allow the Windows 10 machine to conveniently choose to boot Windows 10 or the USB drive I use Grub2Win on the Windows 10 system.
Ed

dumorsdisplace
Ronin
Ronin
Posts: 2
Joined: 06 Oct 2018, 11:59
Distribution: grrgfdxsdtsdtusgyeh.

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

Post#20 by dumorsdisplace » 06 Oct 2018, 12:03

francois wrote:
05 Aug 2018, 02:48
optimal partitioning:
https://community.spiceworks.com/topic/ ... -usb-stick
https://superuser.com/questions/379074/ ... ose-consid
ext4, ext2, noatime in fstab

Thanks for the link.

dumorsdisplace
Ronin
Ronin
Posts: 2
Joined: 06 Oct 2018, 11:59
Distribution: grrgfdxsdtsdtusgyeh.

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

Post#21 by dumorsdisplace » 06 Oct 2018, 12:03

Blaze wrote:
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.
Thanks for the link.

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#22 by francois » 06 Nov 2018, 23:42

dumorsdisplace:
Does blaze procedure worked for you? Are you able to simplify further that procedure?

Ed:
Thanks for testing. I will try that.
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
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#23 by Ed_P » 07 Nov 2018, 01:11

francois if you don't want to have to disable the machine's EFI Secure Boot option when booting the USB drive this posting may interest you.

[Solved] Security Boot Fail
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#24 by francois » 29 Nov 2018, 23:52

I do not mind at all. I found the way to desable secure boot on my Asus.

Thanks.
Prendre son temps, profiter de celui qui passe.

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#25 by francois » 30 Nov 2018, 00:17

brokenman wrote:
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.
@brokenman:

Sorry for taking so much time to come back.

Code: Select all

root@debian:/mnt/sdc1/boot# ls
docs				 Porteus-installer-for-Windows.exe
Porteus-installer-for-Linux.com  syslinux
root@debian:/mnt/sdc1/boot# Porteus-installer-for-Linux.com
bash: Porteus-installer-for-Linux.com: command not found
root@debian:/mnt/sdc1/boot# 
Note:
And yes I am working from within debian. :oops:
My printer does not work under porteus. :bad:

I will have to see Blaze after> :happy62:
Prendre son temps, profiter de celui qui passe.

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#26 by francois » 30 Nov 2018, 02:10

Follow-up:
The key will boot into syslinux, but not into porteus.
On /mnt/sdc2/64bit_v31 there is all the porteus system as usual
In /64bit_v40/boot/syslinux/porteus.cfg the entries are:

Code: Select all

LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/intel-ucode.cpio,/boot/syslinux/initrd.xz
APPEND from=/mnt/sdc2/64bit_v31 load=/porteus/base/xfce4

LABEL GRAPHICAL
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/intel-ucode.cpio,/boot/syslinux/initrd.xz
APPEND from=/dev/disk/by-uuid/34103e53-f26a-4d02-8a9a-c6cb0915ab53/64bit_v31 load=/porteus/base/xfce4
Where:

Code: Select all

root@debian:/home/rimbaud# blkid
/dev/sda1: UUID="e9b98257-3751-4458-86cb-e01af19572e0" TYPE="ext4" PARTUUID="41827a0a-01"
/dev/sda5: UUID="a013dd46-2cfa-4238-982d-efb1e6229799" TYPE="swap" PARTUUID="41827a0a-05"
/dev/sdb1: LABEL="porteus" UUID="ba41ed7f-ed95-4555-bdbd-2ccd5a345cf8" TYPE="ext4" PARTUUID="75bd44ed-01"
/dev/sdb2: LABEL="manjaro" UUID="dbece8af-bf80-4407-8098-e086177240e8" TYPE="ext4" PARTUUID="75bd44ed-02"
/dev/sdc1: UUID="86F3-9F22" TYPE="vfat" PARTUUID="5bc85df4-01"
/dev/sdc2: UUID="34103e53-f26a-4d02-8a9a-c6cb0915ab53" TYPE="ext2" PARTUUID="5bc85df4-02"
/dev/sdc3: UUID="27ea40bf-6475-4b49-b761-768eddef6cf9" TYPE="ext2" PARTUUID="5bc85df4-03"
root@debian:/home/rimbaud# 
So I boot in syslinux but not into porteus 40.
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
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#27 by Ed_P » 30 Nov 2018, 04:22

No error msgs?
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#28 by brokenman » 01 Dec 2018, 13:12

from=/dev/disk/by-uuid/34103e53-f26a-4d02-8a9a-c6cb0915ab53/64bit_v31
This is odd.
perhaps try

Code: Select all

from=UUID:34103e53-f26a-4d02-8a9a-c6cb0915ab53/64bit_v31
or

Code: Select all

from=/dev/sdc2/64bit_v31
If it gets to syslinux then the USB device is bootable and the problem is in the porteus.cfg file. Do you have anything in the tag file? porteus-v4.0-i586.cfg
So I boot in syslinux but not into porteus 40.
Can you explain in more detail? What do you get? Blanks screen, error output?
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.

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

Post#29 by francois » 08 Dec 2018, 02:51

@brokenman:
OK. I finally got the time to sort it out. Your strategy is exactly what was needed.

Weekdays and work, and the corresponding evening does not let one much time to work on the linux box. Especially if you are an old man who has to go to bed early. :D

Just got it. It was just that the bios on this Asus will priorize a usb key individually and not in general all the usb keys. The machine is fitted for the oculus rift, which we are begining to use as psychologists:
ASUS Gaming Thin and Light Laptop, 15.6-inch Full HD , Intel Core i7-7700HQ Processor, 16GB DDR4 RAM, 128GB SSD + 1TB HDD, GeForce GTX 1060 3GB.

Good news is that the first entry works. Bad news, which is not that much an issue, is that my uuid addressing is not good.
Prendre son temps, profiter de celui qui passe.

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.

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

Post#30 by francois » 08 Dec 2018, 04:07

And here is a UUID version of porteus.cfg:

Code: Select all

LABEL GRAPHICAL with UUID
MENU LABEL Graphics mode
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/intel-ucode.cpio,/boot/syslinux/initrd.xz
APPEND from=UUID:34103e53-f26a-4d02-8a9a-c6cb0915ab53/64bit_v31 load=/porteus/base/xfce4 extramod=/mnt/sdc2/64bit_v31/xfce/ changes=UUID:34103e53-f26a-4d02-8a9a-c6cb0915ab53/64bit_v31/xfce login=root
Porteus is so fast compared to debian. There is no comparison.

Ande yes, I am still working root behind a router. :celebrate3:
Prendre son temps, profiter de celui qui passe.

Post Reply