UEFI problem
- Ed_P
- Contributor
- Posts: 8805
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: UEFI problem
Thank donald. I downloaded the 64-bit Razor ISO, deleted the porteus folder on the flash drive, copied the new 64bit porteus folder from the ISO to the flash drive, rebooted and got similar errors whether I used the 8952-182C UUID or the 53B8-7FD3 UUID.
Xorg failed to start up. Using VESA drivers.....
This looped a dozen times then stopped and I was able to logon on as root and when I ran Startx I got more screen looping and:
Server terminated with error (1)....
Xinit: giving up

- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: UEFI problem
One of the things the script does is copies a new 000-kernel.xzm to the porteus/base folder so if you copied everything over from the new 64bit porteus you downloaded, you just overwrote the UEFI 000-kernel.xzm module. Downlaod it again from here and replace the existing in the porteus/base folder. Check the UUID of your USB device again from a working linux by typing in a console: blkidcopied the new 64bit porteus folder from the ISO to the flash drive
Download 000-kernel.xzm here
Or you could try booting into your 64bit Porteus and running the script again to recreate the USB device.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 8805
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: UEFI problem
Thanks but I copied the 64bit porteus to /porteus not /EFI/porteus.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: UEFI problem
Yes I understand that. And the file in porteus/base/000-kernel.xzm ... you overwrote with the default one from the ISO that won't work. You need to replace it with the UEFI version in my link.Thanks but I copied the 64bit porteus to /porteus not /EFI/porteus.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 8805
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: UEFI problem
Starting over.
And no help for the newbie on how to switch users. So I have to come here and scroll thru all the postings to find the secret key combination. 
ctrl+alt+F2 is the secret key combination.
Code: Select all
guest@porteus:~$ blkid
bash: blkid: command not found
guest@porteus:~$ sh /home/guest/downloads/create-efi-usb.sh
sh: /home/guest/downloads/create-efi-usb.sh: No such file or directory
guest@porteus:~$ sh /home/guest/Downloads/create-efi-usb.sh
ls: cannot access /mnt/isoloop/porteus/base: No such file or directory
#### WELCOME TO THE PORTEUS UEFI USB CREATOR ####
#### Type quit at any question to quit.
Script by Brokenman
You must be root to run this!!
guest@porteus:~$

ctrl+alt+F2 is the secret key combination.
Last edited by Ed_P on 03 Oct 2013, 19:18, edited 1 time in total.
- Ed_P
- Contributor
- Posts: 8805
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: UEFI problem
Code: Select all
root@porteus:~# blkid
/dev/sda1: LABEL="PQSERVICE" UUID="9894832D94830CC6" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="ECF483DEF483AA02" TYPE="ntfs"
/dev/sda3: LABEL="Acer" UUID="48168114168103E2" TYPE="ntfs"
/dev/sda5: LABEL="Data" UUID="01CD20066B8BF780" TYPE="ntfs"
/dev/sda6: LABEL="BKUPS" UUID="14E65B5EE65B3F64" TYPE="ntfs"
/dev/loop0: LABEL="Porteus" TYPE="iso9660"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/sdb1: UUID="53B8-7FD3" TYPE="vfat"
root@porteus:~# sh /root/Downloads/create-efi-usb.sh
ls: cannot access /mnt/isoloop/porteus/base: No such file or directory
#### WELCOME TO THE PORTEUS UEFI USB CREATOR ####
#### Type quit at any question to quit.
Script by Brokenman
/dev/sda1: LABEL="PQSERVICE" UUID="9894832D94830CC6" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="ECF483DEF483AA02" TYPE="ntfs"
/dev/sda3: LABEL="Acer" UUID="48168114168103E2" TYPE="ntfs"
/dev/sda5: LABEL="Data" UUID="01CD20066B8BF780" TYPE="ntfs"
/dev/sda6: LABEL="BKUPS" UUID="14E65B5EE65B3F64" TYPE="ntfs"
/dev/sdb1: UUID="53B8-7FD3" TYPE="vfat"
Above is a list of your partitions.
Please enter the base path to your target USB device.
Example: /dev/sdc (no numbers)
> /dev/sdb
1
Target verified as removable
We will now format your USB /dev/sdb device with partition UUID's:
53B8-7FD3
MAKE SURE YOU ARE CERTAIN!!
Would you like to continue? [y/n]
y
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?
(parted) quit
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if
you don't want to convert your MBR partitions to GPT format!
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Command (? for help): This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N):
Command (? for help): Partition number (1-128, default 1): First sector (34-15240542, default = 2048) or {+-}size{KMGTP}: Last sector (2048-15240542, default = 15240542) or {+-}size{KMGTP}: Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'EFI System'
Command (? for help): Partition number (2-128, default 2): First sector (34-15240542, default = 206848) or {+-}size{KMGTP}: Last sector (206848-15240542, default = 15240542) or {+-}size{KMGTP}: Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): Hex code or GUID (L to show codes, Enter = 8300): Hex code or GUID (L to show codes, Enter = 8300): Hex code or GUID (L to show codes, Enter = 8300): mkfs.fat 3.0.22 (2013-07-19)
mke2fs 1.42.8 (20-Jun-2013)
Could not stat /dev/sdb2 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
We will now download the required files (20Mb)from the internet.
Make sure you have an internet connection before continuing.
Press enter to continue
--2013-10-03 11:32:05-- https://dl.dropbox.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz
Resolving dl.dropbox.com (dl.dropbox.com)... 23.21.63.23
Connecting to dl.dropbox.com (dl.dropbox.com)|23.21.63.23|:443... connected.
WARNING: cannot verify dl.dropbox.com's certificate, issued by ‘/C=US/O=Thawte, Inc./CN=Thawte SSL CA’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz [following]
--2013-10-03 11:32:06-- https://dl.dropboxusercontent.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 23.23.91.86
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|23.23.91.86|:443... connected.
WARNING: cannot verify dl.dropboxusercontent.com's certificate, issued by ‘/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 3854716 (3.7M) [application/octet-stream]
Saving to: ‘/home/guest/Downloads/efimods/porteus-uefi-usb-template.tar.xz’
100%[======================================>] 3,854,716 50.8KB/s in 88s
2013-10-03 11:33:36 (42.7 KB/s) - ‘/home/guest/Downloads/efimods/porteus-uefi-usb-template.tar.xz’ saved [3854716/3854716]
--2013-10-03 11:33:36-- https://dl.dropbox.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm
Resolving dl.dropbox.com (dl.dropbox.com)... 23.21.63.23
Connecting to dl.dropbox.com (dl.dropbox.com)|23.21.63.23|:443... connected.
WARNING: cannot verify dl.dropbox.com's certificate, issued by ‘/C=US/O=Thawte, Inc./CN=Thawte SSL CA’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm [following]
--2013-10-03 11:33:37-- https://dl.dropboxusercontent.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 50.19.234.162
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|50.19.234.162|:443... connected.
WARNING: cannot verify dl.dropboxusercontent.com's certificate, issued by ‘/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 15429632 (15M) [application/octet-stream]
Saving to: ‘/home/guest/Downloads/efimods/000-uefi-kernel.xzm’
100%[======================================>] 15,429,632 33.3KB/s in 5m 46s
2013-10-03 11:39:24 (43.6 KB/s) - ‘/home/guest/Downloads/efimods/000-uefi-kernel.xzm’ saved [15429632/15429632]
ntfs-3g: Failed to access volume '/dev/sdb2': No such file or directory
ntfs-3g 2013.1.13 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off
Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2012 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson
Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).
Example: ntfs-3g /dev/sda1 /mnt/windows
News, support and information: http://tuxera.com
Creating EPS file structure ...
EFI/
EFI/BOOT/
EFI/BOOT/myicons/
EFI/BOOT/myicons/func_about.icns
EFI/BOOT/myicons/func_exit.icns
EFI/BOOT/myicons/func_reset.icns
EFI/BOOT/myicons/func_shutdown.icns
EFI/BOOT/myicons/porteus-bootloader.bmp
EFI/BOOT/myicons/porteus-fresh.png
EFI/BOOT/myicons/porteus-ram.png
EFI/BOOT/myicons/porteus-saved.png
EFI/BOOT/myicons/porteus-text.png
EFI/BOOT/bootx64.efi
EFI/BOOT/icons/
EFI/BOOT/icons/os_refind.icns
EFI/BOOT/icons/os_unknown.icns
EFI/BOOT/icons/vol_optical.icns
EFI/BOOT/icons/func_reset.icns
EFI/BOOT/icons/func_shutdown.icns
EFI/BOOT/icons/tool_part.icns
EFI/BOOT/icons/vol_internal.icns
EFI/BOOT/icons/tool_apple_rescue.icns
EFI/BOOT/icons/func_about.icns
EFI/BOOT/icons/boot_linux.icns
EFI/BOOT/icons/transparent.icns
EFI/BOOT/icons/boot_win.icns
EFI/BOOT/icons/func_firmware.icns
EFI/BOOT/icons/func_exit.icns
EFI/BOOT/icons/os_slackware.icns
EFI/BOOT/icons/vol_external.icns
EFI/BOOT/icons/arrow_left.icns
EFI/BOOT/icons/tool_shell.icns
EFI/BOOT/icons/os_win.icns
EFI/BOOT/icons/tool_mok_tool.icns
EFI/BOOT/icons/os_legacy.icns
EFI/BOOT/icons/os_linux.icns
EFI/BOOT/icons/arrow_right.icns
EFI/BOOT/icons/tool_memtest.icns
EFI/BOOT/refind.conf
EFI/porteus/
EFI/porteus/vmlinuz
EFI/porteus/initrd.xz
EFI/porteus/refind.conf
EFI/tools/
EFI/tools/Shell.efi
EFI/tools/drivers_x64/
EFI/tools/drivers_x64/LICENSE.txt
EFI/tools/drivers_x64/LICENSE_GPL.txt
EFI/tools/drivers_x64/btrfs_x64.efi
EFI/tools/drivers_x64/ext2_x64.efi
EFI/tools/drivers_x64/ext4_x64.efi
EFI/tools/drivers_x64/hfs_x64.efi
EFI/tools/drivers_x64/iso9660_x64.efi
EFI/tools/drivers_x64/reiserfs_x64.efi
/root
Copying porteus files ...
cp: cannot stat ‘/mnt/isoloop/porteus’: No such file or directory
Finishing installation ....
Your installation has finished!!
Make sure you set your system to boot
into UEFI mode and reboot now!
root@porteus:~# blkid
/dev/sda1: LABEL="PQSERVICE" UUID="9894832D94830CC6" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="ECF483DEF483AA02" TYPE="ntfs"
/dev/sda3: LABEL="Acer" UUID="48168114168103E2" TYPE="ntfs"
/dev/sda5: LABEL="Data" UUID="01CD20066B8BF780" TYPE="ntfs"
/dev/sda6: LABEL="BKUPS" UUID="14E65B5EE65B3F64" TYPE="ntfs"
/dev/loop0: LABEL="Porteus" TYPE="iso9660"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/sdb1: UUID="5A9A-5FF6" TYPE="vfat"
root@porteus:~#
Code: Select all
Starting init script
^ searching for .....x86_64.sgn file
^ from cheatcode is incorrect, press enter
Porteus data not found
:
etc
:
Code: Select all
Do you want to scan and fix Removable Disk (F:)?
There might be a problem wit some file on this device or disc. This
can happen if you remove the device or disc before all files have been written to it.
Scan and fix (recommended)
Continue without scanning.
I think the UUID changed the 1st time I got this msg with the original build and choose the Scan and fix option.
P.S. The flash drive has a single 8 GB partition containing the EFI folder which is a little over 5MB.
P.P.S. Interesting error msgs in the running of the script.
Code: Select all
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Code: Select all
mke2fs 1.42.8 (20-Jun-2013)
Could not stat /dev/sdb2 --- No such file or directory
Code: Select all
Copying porteus files ...
cp: cannot stat ‘/mnt/isoloop/porteus’: No such file or directory
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: UEFI problem
Ok, the problem most certainly running the script after booting from an ISO. Please hold on while I tweak the script to work under these conditions.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 8805
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: UEFI problem
No problem, and thank you for looking into this. But I'm not sure the booting from an ISO is the cause of the problem with creating a 2nd partition on the flash drive.brokenman wrote:Ok, the problem most certainly running the script after booting from an ISO. Please hold on while I tweak the script to work under these conditions.
And with your script enhancements can having the 2nd partition's format be an option? Or simply being an option at all? Windows normally doesn't support multiple partition USB flash drives, whether it does on UEFI machines I don't know at this point, and with a FAT format the flash drive can be used for more than just booting Porteus on a UEFI machine. But let's get the thing to work 1st then we can experiment with other capabilities.
Thanks again for working on this.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: UEFI problem
If you are booting into the guest user and you open a console, you can elevate to root by typing:
su
toor
Then you can run the script as root. After some testing after booting from an ISO I found a few problems which I have now resolved. One problem was the /mnt/isoloop path which is inherited after booting from an ISO. It meant that the porteus files would never be found and thus never copied to the USB. The second problem was a safety check that should have stopped the script if you tried to run after booting from an ISO. The check failed. The third problem was with the formatting of the USB device. One invisible space prevented the second partition from being generated in some cases.
Thanks for your persistence and help in bug shooting. I have prepared a script for you to check and have added a choice of filesystems for the porteus partition. The initial boot partition MUST be fat32 for UEFI.
Download the new script here
PS: Don't forget to disable secure boot in the BIOS for now.
su
toor
Then you can run the script as root. After some testing after booting from an ISO I found a few problems which I have now resolved. One problem was the /mnt/isoloop path which is inherited after booting from an ISO. It meant that the porteus files would never be found and thus never copied to the USB. The second problem was a safety check that should have stopped the script if you tried to run after booting from an ISO. The check failed. The third problem was with the formatting of the USB device. One invisible space prevented the second partition from being generated in some cases.
Thanks for your persistence and help in bug shooting. I have prepared a script for you to check and have added a choice of filesystems for the porteus partition. The initial boot partition MUST be fat32 for UEFI.
Download the new script here
PS: Don't forget to disable secure boot in the BIOS for now.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 8805
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: UEFI problem
EdP wrote:Newbie question, how do I, or can I signoff of Guest and signon as Root without rebooting?
brokenman wrote:If you are indeed in Razor there should be a logout in the user menu. The when you get to the slim login manager screen you enter: root as user and toor as password.
If you want to force it you can use the keyboard combination ctrl+alt+F2 and then at the login prompt you can login as above and then type: startx
So many options!! Is there a preferred approach?brokenman wrote:If you are booting into the guest user and you open a console, you can elevate to root by typing:
su
toor
Then you can run the script as root.
BTW When I started with my Porteus ISO booting it logged me on as root. The new version logs me on as guest.
Well, that explains why files were being downloaded while logged on as guest.brokenman wrote: After some testing after booting from an ISO I found a few problems which I have now resolved. One problem was the /mnt/isoloop path which is inherited after booting from an ISO. It meant that the porteus files would never be found and thus never copied to the USB. The second problem was a safety check that should have stopped the script if you tried to run after booting from an ISO. The check failed. The third problem was with the formatting of the USB device. One invisible space prevented the second partition from being generated in some cases.
Thank you brokenman.brokenman wrote:Thanks for your persistence and help in bug shooting. I have prepared a script for you to check and have added a choice of filesystems for the porteus partition.

Understood. And my last check shows that native Windows systems can not access anything other than the 1st partition on removable drives. However, Windows 8 has a feature that requires USB drive be viewed as Fixed drives rather than Removable and several brands are producing them as such. There are also Windows utilities, drivers, and apps that circumvent the partitioning problem. So we will see what I end up with.brokenman wrote:The initial boot partition MUST be fat32 for UEFI.
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# sh /home/guest/Downloads/create-uefi-usb-v2.sh
#### WELCOME TO THE PORTEUS UEFI USB CREATOR ####
#### Type quit at any question to quit.
Script by Brokenman
/dev/sda1: LABEL="PQSERVICE" UUID="9894832D94830CC6" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="ECF483DEF483AA02" TYPE="ntfs"
/dev/sda3: LABEL="Acer" UUID="48168114168103E2" TYPE="ntfs"
/dev/sda5: LABEL="Data" UUID="01CD20066B8BF780" TYPE="ntfs"
/dev/sda6: LABEL="BKUPS" UUID="14E65B5EE65B3F64" TYPE="ntfs"
/dev/sdb1: UUID="5A9A-5FF6" TYPE="vfat"
Above is a list of your partitions.
Please enter the base path to your target USB device.
Example: /dev/sdc (no numbers)
> sdb
1
Target verified as removable
We will now format your USB sdb device with partition UUID's:
5A9A-5FF6
MAKE SURE YOU ARE CERTAIN!!
Would you like to continue? [y/n]
y
GPT fdisk (gdisk) version 0.8.5
Problem opening sdb for reading! Error is 2.
The specified file does not exist!
mkfs.fat 3.0.22 (2013-07-19)
sdb1: No such file or directory
Please select a partition type for Porteus
[1] FAT32
[2] ext2
[3] ext3
[4] ext4
1mkfs.fat 3.0.22 (2013-07-19)
sdb2: No such file or directory
We will now download the required files (20Mb)from the internet.
Make sure you have an internet connection before continuing.
Press enter to continue

Ok, I continued and this is what I got:
Code: Select all
--2013-10-04 22:58:21-- https://dl.dropbox.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz
Resolving dl.dropbox.com (dl.dropbox.com)... 75.101.163.157
Connecting to dl.dropbox.com (dl.dropbox.com)|75.101.163.157|:443... connected.
WARNING: cannot verify dl.dropbox.com's certificate, issued by ‘/C=US/O=Thawte, Inc./CN=Thawte SSL CA’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz [following]
--2013-10-04 22:58:21-- https://dl.dropboxusercontent.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 23.23.144.153
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|23.23.144.153|:443... connected.
WARNING: cannot verify dl.dropboxusercontent.com's certificate, issued by ‘/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 3854716 (3.7M) [application/octet-stream]
Saving to: ‘/home/guest/Downloads/efimods/porteus-uefi-usb-template.tar.xz’
100%[======================================>] 3,854,716 87.4KB/s in 43s
2013-10-04 22:59:05 (87.4 KB/s) - ‘/home/guest/Downloads/efimods/porteus-uefi-usb-template.tar.xz’ saved [3854716/3854716]
--2013-10-04 22:59:06-- https://dl.dropbox.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm
Resolving dl.dropbox.com (dl.dropbox.com)... 75.101.163.157
Connecting to dl.dropbox.com (dl.dropbox.com)|75.101.163.157|:443... connected.
WARNING: cannot verify dl.dropbox.com's certificate, issued by ‘/C=US/O=Thawte, Inc./CN=Thawte SSL CA’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm [following]
--2013-10-04 22:59:06-- https://dl.dropboxusercontent.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 23.23.144.153
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|23.23.144.153|:443... connected.
WARNING: cannot verify dl.dropboxusercontent.com's certificate, issued by ‘/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 15429632 (15M) [application/octet-stream]
Saving to: ‘/home/guest/Downloads/efimods/000-uefi-kernel.xzm’
100%[======================================>] 15,429,632 56.5KB/s in 3m 34s
2013-10-04 23:02:41 (70.4 KB/s) - ‘/home/guest/Downloads/efimods/000-uefi-kernel.xzm’ saved [15429632/15429632]
ntfs-3g: Failed to access volume 'sdb2': No such file or directory
ntfs-3g 2013.1.13 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off
Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2012 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson
Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).
Example: ntfs-3g /dev/sda1 /mnt/windows
News, support and information: http://tuxera.com
/home/guest/Downloads/create-uefi-usb-v2.sh: line 228: [: sdb1: unary operator expected
Creating EPS file structure ...
EFI/
EFI/BOOT/
EFI/BOOT/myicons/
EFI/BOOT/myicons/func_about.icns
EFI/BOOT/myicons/func_exit.icns
EFI/BOOT/myicons/func_reset.icns
EFI/BOOT/myicons/func_shutdown.icns
EFI/BOOT/myicons/porteus-bootloader.bmp
EFI/BOOT/myicons/porteus-fresh.png
EFI/BOOT/myicons/porteus-ram.png
EFI/BOOT/myicons/porteus-saved.png
EFI/BOOT/myicons/porteus-text.png
EFI/BOOT/bootx64.efi
EFI/BOOT/icons/
EFI/BOOT/icons/os_refind.icns
EFI/BOOT/icons/os_unknown.icns
EFI/BOOT/icons/vol_optical.icns
EFI/BOOT/icons/func_reset.icns
EFI/BOOT/icons/func_shutdown.icns
EFI/BOOT/icons/tool_part.icns
EFI/BOOT/icons/vol_internal.icns
EFI/BOOT/icons/tool_apple_rescue.icns
EFI/BOOT/icons/func_about.icns
EFI/BOOT/icons/boot_linux.icns
EFI/BOOT/icons/transparent.icns
EFI/BOOT/icons/boot_win.icns
EFI/BOOT/icons/func_firmware.icns
EFI/BOOT/icons/func_exit.icns
EFI/BOOT/icons/os_slackware.icns
EFI/BOOT/icons/vol_external.icns
EFI/BOOT/icons/arrow_left.icns
EFI/BOOT/icons/tool_shell.icns
EFI/BOOT/icons/os_win.icns
EFI/BOOT/icons/tool_mok_tool.icns
EFI/BOOT/icons/os_legacy.icns
EFI/BOOT/icons/os_linux.icns
EFI/BOOT/icons/arrow_right.icns
EFI/BOOT/icons/tool_memtest.icns
EFI/BOOT/refind.conf
EFI/porteus/
EFI/porteus/vmlinuz
EFI/porteus/initrd.xz
EFI/porteus/refind.conf
EFI/tools/
EFI/tools/Shell.efi
EFI/tools/drivers_x64/
EFI/tools/drivers_x64/LICENSE.txt
EFI/tools/drivers_x64/LICENSE_GPL.txt
EFI/tools/drivers_x64/btrfs_x64.efi
EFI/tools/drivers_x64/ext2_x64.efi
EFI/tools/drivers_x64/ext4_x64.efi
EFI/tools/drivers_x64/hfs_x64.efi
EFI/tools/drivers_x64/iso9660_x64.efi
EFI/tools/drivers_x64/reiserfs_x64.efi
/home/guest
Copying porteus files ...
Finishing installation ....
Your installation has finished!!
Make sure you set your system to boot
into UEFI mode and reboot now!
root@porteus:/home/guest#

I think the tests for the mounting of sdb1 and sdb2 should be done before doing the downloads.
- update 05 Oct -
Ok, in previous runs the app used to format the flash drive was "GNU Parted 2.3" now it's "GPT fdisk (gdisk) version 0.8.5", yet I don't see any change in the format_usb code. OH!! Now I get it, 32-bit ISO vs 64-bit ISO.
And BTW Replying "quit" to the new format prompt doesn't work.

Same situation booting 32-bit ISO.
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# sh /home/guest/Downloads/create-uefi-usb-v2.sh
#### WELCOME TO THE PORTEUS UEFI USB CREATOR ####
#### Type quit at any question to quit.
Script by Brokenman
/dev/sda1: LABEL="PQSERVICE" UUID="9894832D94830CC6" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="ECF483DEF483AA02" TYPE="ntfs"
/dev/sda3: LABEL="Acer" UUID="48168114168103E2" TYPE="ntfs"
/dev/sda5: LABEL="Data" UUID="01CD20066B8BF780" TYPE="ntfs"
/dev/sda6: LABEL="BKUPS" UUID="14E65B5EE65B3F64" TYPE="ntfs"
/dev/sdb1: UUID="5A9A-5FF6" TYPE="vfat"
Above is a list of your partitions.
Please enter the base path to your target USB device.
Example: /dev/sdc (no numbers)
> sdb
1
Target verified as removable
We will now format your USB sdb device with partition UUID's:
5A9A-5FF6
MAKE SURE YOU ARE CERTAIN!!
Would you like to continue? [y/n]
y
GPT fdisk (gdisk) version 0.8.5
Problem opening sdb for reading! Error is 2.
The specified file does not exist!
mkfs.fat 3.0.22 (2013-07-19)
sdb1: No such file or directory
Please select a partition type for Porteus
[1] FAT32
[2] ext2
[3] ext3
[4] ext4
1mkfs.fat 3.0.22 (2013-07-19)
sdb2: No such file or directory
We will now download the required files (20Mb)from the internet.
Make sure you have an internet connection before continuing.
Press enter to continue
This image help? http://img163.imageshack.us/img163/5104/94w4.jpg
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: UEFI problem
Please open a console and nuke the USB device:
parted /dev/sdb
mklabel msdos
quit
Now use gparted to partition your disk as one single FAT32 partition. Then rerun my script. You MUST use 64bit porteus.
PS: When it asks you to enter the device please type in: /dev/sdb as per instructions. ( I see you just put: sdb)
Example: /dev/sdc (no numbers)
You can quit the script at any time (like if you get an error) by pressing ctrl + c
parted /dev/sdb
mklabel msdos
quit
Now use gparted to partition your disk as one single FAT32 partition. Then rerun my script. You MUST use 64bit porteus.
PS: When it asks you to enter the device please type in: /dev/sdb as per instructions. ( I see you just put: sdb)
Example: /dev/sdc (no numbers)
You can quit the script at any time (like if you get an error) by pressing ctrl + c
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 8805
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: UEFI problem
Okbrokenman wrote:Please open a console and nuke the USB device:
parted /dev/sdb
mklabel msdos
quit
Now use gparted to partition your disk as one single FAT32 partition. Then rerun my script.
I was just trying to see why the name of the app changed.You MUST use 64bit porteus.
PS: When it asks you to enter the device please type in: /dev/sdb as per instructions. ( I see you just put: sdb)
Example: /dev/sdc (no numbers)


But the script seemed to accept it and found the removable drive.
I was just trying to go by:You can quit the script at any time (like if you get an error) by pressing ctrl + c
Code: Select all
#### WELCOME TO THE PORTEUS UEFI USB CREATOR ####
#### Type quit at any question to quit. <-----------------------
Script by Brokenman

- Ed_P
- Contributor
- Posts: 8805
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: UEFI problem
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# blkid
/dev/sda1: LABEL="PQSERVICE" UUID="9894832D94830CC6" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="ECF483DEF483AA02" TYPE="ntfs"
/dev/sda3: LABEL="Acer" UUID="48168114168103E2" TYPE="ntfs"
/dev/sda5: LABEL="Data" UUID="01CD20066B8BF780" TYPE="ntfs"
/dev/sda6: LABEL="BKUPS" UUID="14E65B5EE65B3F64" TYPE="ntfs"
/dev/loop0: LABEL="Porteus" TYPE="iso9660"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/sdb1: UUID="5A9A-5FF6" TYPE="vfat"
root@porteus:/home/guest# parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? Yes
(parted) quit
Information: You may need to update /etc/fstab.
root@porteus:/home/guest# sh /home/guest/Downloads/create-uefi-usb-v2.sh
#### WELCOME TO THE PORTEUS UEFI USB CREATOR ####
#### Type quit at any question to quit.
Script by Brokenman
/dev/sda1: LABEL="PQSERVICE" UUID="9894832D94830CC6" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="ECF483DEF483AA02" TYPE="ntfs"
/dev/sda3: LABEL="Acer" UUID="48168114168103E2" TYPE="ntfs"
/dev/sda5: LABEL="Data" UUID="01CD20066B8BF780" TYPE="ntfs"
/dev/sda6: LABEL="BKUPS" UUID="14E65B5EE65B3F64" TYPE="ntfs"
Above is a list of your partitions.
Please enter the base path to your target USB device.
Example: /dev/sdc (no numbers)
> quit
root@porteus:/home/guest# sh /home/guest/Downloads/create-uefi-usb-v2.sh
#### WELCOME TO THE PORTEUS UEFI USB CREATOR ####
#### Type quit at any question to quit.
Script by Brokenman
/dev/sda1: LABEL="PQSERVICE" UUID="9894832D94830CC6" TYPE="ntfs"
/dev/sda2: LABEL="SYSTEM RESERVED" UUID="ECF483DEF483AA02" TYPE="ntfs"
/dev/sda3: LABEL="Acer" UUID="48168114168103E2" TYPE="ntfs"
/dev/sda5: LABEL="Data" UUID="01CD20066B8BF780" TYPE="ntfs"
/dev/sda6: LABEL="BKUPS" UUID="14E65B5EE65B3F64" TYPE="ntfs"
/dev/sdb1: LABEL="PORTEUSUEFI" UUID="7DAF-0DA0" TYPE="vfat"
Above is a list of your partitions.
Please enter the base path to your target USB device.
Example: /dev/sdc (no numbers)
> /dev/sdb
1
Target verified as removable
We will now format your USB /dev/sdb device with partition UUID's:
7DAF-0DA0
MAKE SURE YOU ARE CERTAIN!!
Would you like to continue? [y/n]
y
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if
you don't want to convert your MBR partitions to GPT format!
***************************************************************
Command (? for help): This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N):
Command (? for help): Partition number (1-128, default 1): First sector (34-15240542, default = 2048) or {+-}size{KMGTP}: Last sector (2048-15240542, default = 15240542) or {+-}size{KMGTP}: Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'EFI System'
Command (? for help): Partition number (2-128, default 2): First sector (34-15240542, default = 206848) or {+-}size{KMGTP}: Last sector (206848-15240542, default = 15240542) or {+-}size{KMGTP}: Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'Linux filesystem'
Command (? for help):
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/sdb.
The operation has completed successfully.
mkfs.fat 3.0.22 (2013-07-19)
Please select a partition type for Porteus
[1] FAT32
[2] ext2
[3] ext3
[4] ext4
1mkfs.fat 3.0.22 (2013-07-19)
We will now download the required files (20Mb)from the internet.
Make sure you have an internet connection before continuing.
Press enter to continue
--2013-10-05 16:07:33-- https://dl.dropbox.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz
Resolving dl.dropbox.com (dl.dropbox.com)... 54.225.170.213
Connecting to dl.dropbox.com (dl.dropbox.com)|54.225.170.213|:443... connected.
WARNING: cannot verify dl.dropbox.com's certificate, issued by ‘/C=US/O=Thawte, Inc./CN=Thawte SSL CA’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz [following]
--2013-10-05 16:07:33-- https://dl.dropboxusercontent.com/s/1bsl2nqtfv1i01x/porteus-uefi-usb-template.tar.xz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 50.17.220.219
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|50.17.220.219|:443... connected.
WARNING: cannot verify dl.dropboxusercontent.com's certificate, issued by ‘/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 3854716 (3.7M) [application/octet-stream]
Saving to: ‘/home/guest/Downloads/efimods/porteus-uefi-usb-template.tar.xz’
100%[======================================>] 3,854,716 72.1KB/s in 36s
2013-10-05 16:08:11 (104 KB/s) - ‘/home/guest/Downloads/efimods/porteus-uefi-usb-template.tar.xz’ saved [3854716/3854716]
--2013-10-05 16:08:11-- https://dl.dropbox.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm
Resolving dl.dropbox.com (dl.dropbox.com)... 54.225.170.213
Connecting to dl.dropbox.com (dl.dropbox.com)|54.225.170.213|:443... connected.
WARNING: cannot verify dl.dropbox.com's certificate, issued by ‘/C=US/O=Thawte, Inc./CN=Thawte SSL CA’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm [following]
--2013-10-05 16:08:11-- https://dl.dropboxusercontent.com/s/9nrwswxk1av5gaz/000-uefi-kernel.xzm
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 50.17.220.219
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|50.17.220.219|:443... connected.
WARNING: cannot verify dl.dropboxusercontent.com's certificate, issued by ‘/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3’:
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 15429632 (15M) [application/octet-stream]
Saving to: ‘/home/guest/Downloads/efimods/000-uefi-kernel.xzm’
100%[======================================>] 15,429,632 69.5KB/s in 2m 58s
2013-10-05 16:11:11 (84.7 KB/s) - ‘/home/guest/Downloads/efimods/000-uefi-kernel.xzm’ saved [15429632/15429632]
Creating EPS file structure ...
EFI/
EFI/BOOT/
EFI/BOOT/myicons/
EFI/BOOT/myicons/func_about.icns
EFI/BOOT/myicons/func_exit.icns
EFI/BOOT/myicons/func_reset.icns
EFI/BOOT/myicons/func_shutdown.icns
EFI/BOOT/myicons/porteus-bootloader.bmp
EFI/BOOT/myicons/porteus-fresh.png
EFI/BOOT/myicons/porteus-ram.png
EFI/BOOT/myicons/porteus-saved.png
EFI/BOOT/myicons/porteus-text.png
EFI/BOOT/bootx64.efi
EFI/BOOT/icons/
EFI/BOOT/icons/os_refind.icns
EFI/BOOT/icons/os_unknown.icns
EFI/BOOT/icons/vol_optical.icns
EFI/BOOT/icons/func_reset.icns
EFI/BOOT/icons/func_shutdown.icns
EFI/BOOT/icons/tool_part.icns
EFI/BOOT/icons/vol_internal.icns
EFI/BOOT/icons/tool_apple_rescue.icns
EFI/BOOT/icons/func_about.icns
EFI/BOOT/icons/boot_linux.icns
EFI/BOOT/icons/transparent.icns
EFI/BOOT/icons/boot_win.icns
EFI/BOOT/icons/func_firmware.icns
EFI/BOOT/icons/func_exit.icns
EFI/BOOT/icons/os_slackware.icns
EFI/BOOT/icons/vol_external.icns
EFI/BOOT/icons/arrow_left.icns
EFI/BOOT/icons/tool_shell.icns
EFI/BOOT/icons/os_win.icns
EFI/BOOT/icons/tool_mok_tool.icns
EFI/BOOT/icons/os_legacy.icns
EFI/BOOT/icons/os_linux.icns
EFI/BOOT/icons/arrow_right.icns
EFI/BOOT/icons/tool_memtest.icns
EFI/BOOT/refind.conf
EFI/porteus/
EFI/porteus/vmlinuz
EFI/porteus/initrd.xz
EFI/porteus/refind.conf
EFI/tools/
EFI/tools/Shell.efi
EFI/tools/drivers_x64/
EFI/tools/drivers_x64/LICENSE.txt
EFI/tools/drivers_x64/LICENSE_GPL.txt
EFI/tools/drivers_x64/btrfs_x64.efi
EFI/tools/drivers_x64/ext2_x64.efi
EFI/tools/drivers_x64/ext4_x64.efi
EFI/tools/drivers_x64/hfs_x64.efi
EFI/tools/drivers_x64/iso9660_x64.efi
EFI/tools/drivers_x64/reiserfs_x64.efi
/home/guest
Copying porteus files ...
Finishing installation ....
Your installation has finished!!
Make sure you set your system to boot
into UEFI mode and reboot now!
root@porteus:/home/guest#
Good news, bad news...
Good news: it boots on the UEFI machine.

Bad news: it doesn't have drivers for the machine's nics, cable or WiFi.

Worst news: the USB device is no longer recognized as a flash drive in my regular, non-UEFI machine. Not even the 1st partition!! Thus no way to show you the NIC config screen print image I saved to it.

- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: UEFI problem
ExcellentGood news: it boots on the UEFI machine.
Ok I will need to recompile the kernel using the same .config as Porteus-v2.1 and only adding the efi stuff. I don't remember dropping any networking stuff. I'll do this tomorrow.Bad news: it doesn't have drivers for the machine's nics, cable or WiFi.
The USB device now has a GPT (partition table) which differs a little to what it previously had. Windows 8 supports GPT but I don't think windows 7 does. To be honest I havn't plugged the newly created device into my win7 box to see. I guess that's two steps forward two steps back progress that comes with major changes in infrastructure.Worst news: the USB device is no longer recognized as a flash drive in my regular, non-UEFI machine. Not even the 1st partition!! Thus no way to show you the NIC config screen print image I saved to it.
You can return the USB to it's former glory by using the commands:
parted /dev/sdX
mklabel msdos
quit
Then partition it using gparted or whatever your tool of preference is.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.