Install Porteus on SD card

Post here if you are a new Porteus member and you're looking for some help.
beny
Full of knowledge
Full of knowledge
Posts: 785
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Install Porteus on SD card

Post#16 by beny » 24 Feb 2019, 13:49

hi is strange that p1 partition seem a loop mounted device i have seen something like that when we need to change the size of an iso.img with gparted,if you mount the device into a mnt or tmp directory cd into the boot directory and run the script linux or the other you have the boot loader ready to use....maybe.mmc isn't a sd card:

Disk /dev/sdc: 57,7 GiB, 61907927040 bytes, 120913920 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
Disklabel type: dos
Disk identifier: 0x05a8425f

Dispositivo Avvio Start Fine Settori Size Id Tipo
/dev/sdc1 * 2048 120913919 120911872 57,7G 83 Linux

Disk /dev/sda: 59,7 GiB, 64087916544 bytes, 125171712 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
Disklabel type: dos
Disk identifier: 0xe093eece

Dispositivo Avvio Start Fine Settori Size Id Tipo
/dev/sda1 * 2048 125171711 125169664 59,7G 83 Linux

the first is a tdk usb pen the second one a lexar sd

User avatar
Ed_P
Contributor
Contributor
Posts: 5101
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: Install Porteus on SD card

Post#17 by Ed_P » 24 Feb 2019, 14:22

Ok, the missing .cfg file is definitely on the mcc drive. :good:

A lot of us use multiboot loaders that are installed on the machine doing the loading. It makes booting other devices more convenient than changing the BIOS each time. It also allows for creating debug code to help with booting problems. And the problem I think you're having is root isn't being assigned to the mcc drive when it's being booted.

-edit-

user0815 wrote:
24 Feb 2019, 08:30
And I am using Dell Latitude Bios and legacy boot, not UEFI.
Legacy boot! So the machine does support UEFI! Try just disabling the Secure Boot option and not using the Legacy option.
beny wrote:
24 Feb 2019, 13:49
hi is strange that p1 partition seem a loop mounted device
Where are you seeing that beny? I can't find it.
Ed

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#18 by user0815 » 02 Mar 2019, 17:23

Ed_P wrote:
24 Feb 2019, 14:22
Try just disabling the Secure Boot option and not using the Legacy option.
secure boot is disabled. EFI does not work, too. I think this kind of hopeless case. Thanks anyway for all the advises.
cheers.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 5101
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Install Porteus on SD card

Post#19 by Ed_P » 02 Mar 2019, 23:35

Giving up!! Well, your call. However if you boot Porteus on your UEFI machine, with Secure Boot disabled, and format the SD to FAT32 and reinstall Porteus to the SD it just might work. :happy62:

But it's okay if you want to call it quits. :)
Ed

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#20 by user0815 » 04 Mar 2019, 14:47

I dont want to give up, but I dont know what to do. You gave me lots of advise and we already tried every possible combinations.

1. Classic boot, FAT32, strictly following this installation guide. System booted to Porteus menu, but after that the message I get is "Porteus data not found...", here is the screenshot:
https://ibb.co/ctftk2p

2. EFI boot, FAT32: boot not possible, it says "Failed to load COM32 file vesamenu.c32, screenshot here:
https://ibb.co/9vjsVs4

3. Classic boot, format ext2 using Porteus-installer-for-Linux.com. Executing installer.com failed with error code 2, screenshot here:
https://ibb.co/58n8qm8

For me, the most promising option to continue is 1. where boot is possible, but whatever reason, the porteus folder cannot be found.
All above options work flawlessly with usb flash drives.

What do you suggest me to do?
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 5101
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Install Porteus on SD card

Post#21 by Ed_P » 04 Mar 2019, 15:32

user0815 wrote:
04 Mar 2019, 14:47
What do you suggest me to do?
Ed_P wrote:
02 Mar 2019, 23:35
boot Porteus on your UEFI machine, with Secure Boot disabled, and format the SD to FAT32 and reinstall Porteus to the SD it just might work.
The installation guide you refer to in your #1 is outdated. It was written before Porteus's UEFI support; REFind, UEFI Boot Confusion [Solved] and the current system. I believe if you do as I suggested the Porteus install will put 3 folders on the SD drive; /porteus, /boot and /EFI and the latter will resolve the missing Porteus cfg problem. (At least that is my hope. I could be wrong. :( )

Also post as root the results of a ls -gd --color=never /mnt/sdb?/* and a parted -l of the SD device. :)

BTW I envy your picture taking ability. :happy62:
Ed

raja
Shogun
Shogun
Posts: 213
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and v5.0-rc1-zstd-64
Location: Chennai,India

Install Porteus on SD card

Post#22 by raja » 05 Mar 2019, 06:47

user0815, Get "Etcher" iso burning software for Windows .

Insert your card and burn ISO image.

You could see your smile in the mirror. :)
Linux Kernel-4.4.120-32 bit; Linux kernel-5.2-64 bit.

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#23 by user0815 » 05 Mar 2019, 10:07

Ed_P wrote:
04 Mar 2019, 15:32
Also post as root the results of a ls -gd --color=never /mnt/sdb?/* and a parted -l of the SD device.
hi Ed, here you are

Code: Select all

root@porteus:/mnt/mmcblk0p1# ls -gd --color=never /mnt/mmcblk0p1
drwxr-xr-x 3 root 4096 Mar  5 08:28 /mnt/mmcblk0p1/
root@porteus:/mnt/mmcblk0p1# 
and

Code: Select all

root@porteus:/mnt/mmcblk0p1# parted -l /mnt/mmcblk0p1
Model: SanDisk Ultra (scsi)
Disk /dev/sda: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  15.6GB  15.6GB  primary  ext4         boot

Model: SD SU04G (sd/mmc)
Disk /dev/mmcblk0: 3965MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  3965MB  3964MB  primary  ext2

root@porteus:/mnt/mmcblk0p1# 
raja wrote:
05 Mar 2019, 06:47
user0815, Get "Etcher" iso burning software for Windows .

Insert your card and burn ISO image.
Hi Raja, Etcher crashed when trying to select iso, on both porteus and puppy bionicdog. Will try windows later on.

cheers.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 5101
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Install Porteus on SD card

Post#24 by Ed_P » 05 Mar 2019, 15:32

I meant for the displays to be done after the format and Porteus install. Sorry I wasn't clear.
Ed

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#25 by user0815 » 05 Mar 2019, 16:04

Ed_P wrote:
05 Mar 2019, 15:32
I meant for the displays to be done after the format and Porteus install. Sorry I wasn't clear.
Sorry, your last message is not clear to me what I should do, can you pls describe each single steps? Thanks.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 5101
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Install Porteus on SD card

Post#26 by Ed_P » 05 Mar 2019, 16:29

user0815 wrote:
05 Mar 2019, 16:04
Sorry, your last message is not clear to me what I should do, can you pls describe each single steps? Thanks.
  • Disable Secure Boot on your EFI machine.
  • Boot Porteus on the EFI machine with Secure Boot disabled.
  • Format the SD card as FAT32 on the EFI machine.
  • Execute the Porteus install on the EFI machine and direct it to install to the SD drive.
  • After the install of Porteus to the SD drive run these two commands as root:
    ls -gd --color=never /mnt/mmcblk0p1
    parted -l /mnt/mmcblk0p1
  • Post the output of the two commands.
  • Boot the SD drive on the EFI machine.
  • Report the results.
:)
user0815 wrote:
05 Mar 2019, 10:07
Hi Raja, Etcher crashed when trying to select iso, on both porteus and puppy bionicdog. Will try windows later on.
Beginning to wonder about the machine's shortcomings. BTW If you have Windows and multi-boot frequently you should consider installing Grub2Win on Windows. It's what I use.
Ed

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#27 by user0815 » 05 Mar 2019, 17:46

ok, understood.
Ed_P wrote:
05 Mar 2019, 16:29
Disable Secure Boot on your EFI machine.
. done.
Ed_P wrote:
05 Mar 2019, 16:29
Boot Porteus on the EFI machine with Secure Boot disabled
: done.
Ed_P wrote:
05 Mar 2019, 16:29
Format the SD card as FAT32 on the EFI machine
: done.
Ed_P wrote:
05 Mar 2019, 16:29
Execute the Porteus install on the EFI machine and direct it to install to the SD drive.
: Trying, but stuck here. The porteus installer cannot see the SD drive. There is a button saying something like "mount other drive.." and in the pop-up window, you can see the SD mounted as sda, but after mounting and go back to porteus installer windows, SD drive is not visible. The only visible drive inside porteus installer is the usb flash drive from where I EFI-booted porteus.
BTW, I did this several times before, but now again as you advised to make sure. I think the problem is a missing driver at certain stage for that particular SD card reader from Dell latitude. Porteus can "see" the SD driver once successfully booted, but not "inside" the porteus installer and during boot.
Ed_P wrote:
05 Mar 2019, 16:29
Beginning to wonder about the machine's shortcomings
Have you tried the Etcher AppImage for linux 64 yourself?
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 5101
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: Install Porteus on SD card

Post#28 by Ed_P » 05 Mar 2019, 20:29

:o "in the pop-up window, you can see the SD mounted as sda, but after mounting"

The SD is mounted as sda! What's the hard drive mounted as?? :%) And if you can see it mounted as sda why are you remounting it? :%) :%) :unknown:

No I have never used Etcher AppImage. I have used Easy2Boot though and recommend it. When I have installed Porteus, it has been to USB drives and the Porteus install apps work for me. I do however run most of my Porteus from my hard drive as ISOs using Grub2Win. :)



-update-

I have booted my Dell Inspiron off my Porteus USB drive and have a SD card inserted into the machine. This is what I see:

Code: Select all

guest@porteus:~$ ls -dgl --color=none /mnt/sd*
drwxrwxrwx  3 root  4096 Dec 31  1969 /mnt/sda1/
drwxrwxrwx  1 root  8192 Feb 15 03:06 /mnt/sda3/
drwxrwxrwx  1 root  4096 Dec  7 02:09 /mnt/sda4/
drwxrwxrwx  1 root  4096 Jan 12  2018 /mnt/sda5/
drwxrwxrwx  1 root  4096 Feb 15 03:06 /mnt/sda6/
drwxrwxrwx  1 root  4096 Feb 15 03:06 /mnt/sda7/
drwxrwxrwx  1 root  4096 Feb 15 03:06 /mnt/sda8/
drwxrwxrwx 13 root 16384 Dec 31  1969 /mnt/sdb1/
drwxrwxrwx  5 root 16384 Dec 31  1969 /mnt/sdc1/
guest@porteus:~$ 
sda is my hard drive, sdb is my USB drive and sdc is my SD card.
Ed

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Re: Install Porteus on SD card

Post#29 by user0815 » 05 Mar 2019, 21:41

yeah, in the popup window „partition mounter“, sd card is shown as /dev/sda1, the usb drive /dev/sdb1. The hard drive is not mounted as it is full-encrypted. Only gparted can access it.
The strange thing is, porteus installer says, drive successfully mounted, but its list in main window does not show it.

I would assume your built in sd card reader is connected via usb bus whereas mine is via PCIe
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 5101
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Re: Install Porteus on SD card

Post#30 by Ed_P » 06 Mar 2019, 06:18

:hmmm: I'm running out of ideas at this point. :(
Ed

Post Reply