new install to usb, doesnt make it bootable

Post here if you are a new Porteus member and you're looking for some help.
zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

new install to usb, doesnt make it bootable

Post#1 by zander » 19 Aug 2015, 16:48

hello
im new here, just installed porteus 3.1 to usb, through GUI 'install porteus' from another porteus USB drive, which i installed with UUI from windows.
so USB is partitioned in two: ext4(flagged bootable), and SWAP. mounting ext4, and marked it with bootloader install,

after successful install, reboot starts windows, not usb. ( i modified win BIOS to boot from usb, its working with other flash drive)
please help
what could go wrong
thnx

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: new install to usb, doesnt make it bootable

Post#2 by donald » 19 Aug 2015, 17:15

Hello zander
Sometimes it doesn't work when the target thumbdrive is mounted at /run/media/somewhat.
mount it at e.g. /mnt/sdXN, cd into /mnt/sdXN/boot and run the "installer for linux.com"

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#3 by zander » 19 Aug 2015, 17:38

wish i knew how to follow :))((:
can u give step by step how make it happened? (how can i mount it during boot , if all i see is windows boot??)
also linux.com installe? do i have to reinstall something?
thnx

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: new install to usb, doesnt make it bootable

Post#4 by donald » 19 Aug 2015, 17:58

boot the other porteus thumbdrive, mount the target thumbdrive at
/mnt/sdXN
(sdXN = X = device (a,b,c etc.), N = partition number (sdb1 for example)

(to make it easier, log in as root for this task)
you have to create that folder first.If you don't know your target drive/partion
name, open a terminal type su, Pw is toor and then type fdisk -l (lowercase L)

mount the target drive at that folder, go into this folder, there should be a
porteus and a boot folder, go into boot and execute the "Installer for linux.com"
please doublecheck that you install the bootloader to the right device.

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#5 by zander » 19 Aug 2015, 20:33

thnx for yr help!
not clear what folder do i have to create, is it /mnt/sdNX? fdisk gave me name : sdc1
so when : mount /mnt/sdc1, it was already there : /mnt/sdc1, ?
how can icheck where bootlodader installed?
anyway, i did this : sh /mnt/sdc1/boot/Porteus-installer-for-Linux.com
let see what happenes on reboot

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#6 by zander » 19 Aug 2015, 20:41

so after reboot i got windows again, ... :((( :wall:

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: new install to usb, doesnt make it bootable

Post#7 by beny » 19 Aug 2015, 20:53

hi try to use the porteus that work for you,after you have boot the porteus system plug in the usb that not work open console and type fdisk -l you have a list of the devices, you have to mount the device manually with mount /dev/sdx1 /mnt/a directory you choose,after this you can run the linux installer script inside the mounted directory, look if the installer choose the right device,

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: new install to usb, doesnt make it bootable

Post#8 by donald » 19 Aug 2015, 21:15

Hmmm....
--> i modified win BIOS to boot from usb <--
what does this mean?
Q:Is this Pc using UEFI or normal / legacy bios?
Is it possible to check if this thumb drive will boot a different PC?

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: new install to usb, doesnt make it bootable

Post#9 by beny » 19 Aug 2015, 21:20

hi maybe have the F11 or other F key to choose the boot device......

zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#10 by zander » 19 Aug 2015, 21:35

hi beny,
installation failed with error code 3
so below is what i did, and after that content of DEBUG.txt


root@porteus:/home/guest# cd /mnt
root@porteus:/mnt# ls
live/ sda1/ sda2/ sda4/ sda6/ sda7/ sdb1/ sdc1/ sdc3/
root@porteus:/mnt# mkdir porteus-boot
root@porteus:/mnt# ls
live/ porteus-boot/ sda1/ sda2/ sda4/ sda6/ sda7/ sdb1/ sdc1/ sdc3/
root@porteus:/mnt# mount /dev/sdc1 /mnt/porteus-boot
root@porteus:/mnt# ls porteus-boot
USB_INSTALLATION.txt* boot/ porteus/
Uni-USB-Installer-Copying.txt* license.txt*
Uni-USB-Installer-Readme.txt* lost+found/
root@porteus:/mnt# cd porteus-boot
root@porteus:/mnt/porteus-boot# ls
USB_INSTALLATION.txt* boot/ porteus/
Uni-USB-Installer-Copying.txt* license.txt*
Uni-USB-Installer-Readme.txt* lost+found/
root@porteus:/mnt/porteus-boot# ls boot
Porteus-installer-for-Linux.com* docs/
Porteus-installer-for-Windows.exe* syslinux/
root@porteus:/mnt/porteus-boot# sh boot/Porteus-installer-for-Linux.com
Verifying archive integrity... All good.
Uncompressing Porteus Installer......chown: changing ownership of ‘./boot/syslinux/ldlinux.sys’: Operation not permitted
chgrp: changing group of ‘./boot/syslinux/ldlinux.sys’: Operation not permitted


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

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

Installing Porteus to /dev/sdc1
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 failed with error code '3'.
Please ask for help on the Porteus forum: http://www.porteus.org/forum
and provide the information from /mnt/porteus-boot/debug.txt

Exiting now...

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.



DEBUG.txt


device: /dev/sdc
partition: /dev/sdc1
partition number: 1
partition mount point: /mnt/porteus-boot
installation path: /mnt/porteus-boot
subfolder:
filesystem: ext4
bootloader: extlinux
error code: 3
system: porteus 3.17.4-porteus x86_64
mount details: /dev/sdc1 /mnt/porteus-boot ext4 rw,relatime,data=ordered 0 0
full partition scheme:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
256 heads, 63 sectors/track, 60563 cylinders, total 976773168 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
Disk identifier: 0x6df2e357

Device Boot Start End Blocks Id System
/dev/sda1 1 4294967295 2147483647+ ee GPT

Disk /dev/sdb: 32.0 GB, 32044482560 bytes
35 heads, 35 sectors/track, 51091 cylinders, total 62586880 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
Disk identifier: 0x22afecc2

Device Boot Start End Blocks Id System
/dev/sdb1 * 8064 62586879 31289408 c W95 FAT32 (LBA)

Disk /dev/sdc: 30.8 GB, 30752000000 bytes
255 heads, 63 sectors/track, 3738 cylinders, total 60062500 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
Disk identifier: 0x0002f26c

Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 53032959 26515456 83 Linux
/dev/sdc3 53032960 60061695 3514368 82 Linux swap


zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#11 by zander » 19 Aug 2015, 21:41

donald wrote:Hmmm....
--> i modified win BIOS to boot from usb <--
what does this mean?
Q:Is this Pc using UEFI or normal / legacy bios?
Is it possible to check if this thumb drive will boot a different PC?

yes this is UEFI BIOS, on HP envy, m6
so it means that i changed the boot priority
not really possible to check other PC, im on MAC

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: new install to usb, doesnt make it bootable

Post#12 by beny » 19 Aug 2015, 22:01

hi have you read this tread viewtopic.php?f=81&t=3556

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: new install to usb, doesnt make it bootable

Post#13 by donald » 19 Aug 2015, 22:25


zander
Black ninja
Black ninja
Posts: 37
Joined: 19 Aug 2015, 16:36
Distribution: 3.1
Location: usa

Re: new install to usb, doesnt make it bootable

Post#14 by zander » 19 Aug 2015, 23:48

francois wrote:Did you ensure that your bios is set so to boot USB instead of hdd?

To apply Donald solution, you need to proceed from a Linux installation. And your bios has to be set to USB first.

well yes im sure , becz it works with other porteus USB that i created from windows, which is totally bootable. im just trying to install porteus on linux partition,

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

Re: new install to usb, doesnt make it bootable

Post#15 by brokenman » 20 Aug 2015, 01:13

Be sure you download the LATEST Porteus from build.porteus.org and be sure to include the UEFI option. You will know because when you mount the sdc1 partition there should be a folder EFI on the root of the partition. The sdc1 partition MUST be fat32. Using a linux partition won't work if you are trying to boot via UEFI.

Then please try this.

root@porteus:/home/guest# cd /mnt
root@porteus:/mnt# ls
live/ sda1/ sda2/ sda4/ sda6/ sda7/ sdb1/ sdc1/ sdc3/
root@porteus:/mnt# mkdir sdc1
root@porteus:/mnt# mount /dev/sdc1 /mnt/sdc1
root@porteus:/mnt# cd /mnt/sdc1/boot <----- make sure you go exactly here
root@porteus:/mnt/porteus-boot# ./Porteus-installer-for-Linux.com

Once you get this working we can work on using a second linux partition on which you save your changes. A FAT32 partition is only needed to get the UEFI booted.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply