Install Porteus on SD card

Post here if you are a new Porteus member and you're looking for some help.
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#1 by user0815 » 19 Feb 2019, 10:54

Dear Porteus Experts,
Is there any quick installation guide how to do it? I followed the official guides herehttp://www.porteus.org/component/conten ... guide.html, both for Windows and Linux, but no success. Bios is supporting boot from SD slot. But the system does not even come to Porteus boot screen. The error message says: "...no operating system found, press.. to reboot".
I also tried the following posts
Porteus on a Memory Card
but this is somehow a work-around, you still need the usb when booting.
Also other posts such as
Installing porteus to an SDHC card
or
[SOLVED] Problems with booting from SD card
do not help.
Thanks in advance for your advise.
Cheers
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

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

Re: Install Porteus on SD card

Post#2 by Ed_P » 19 Feb 2019, 15:13

Have you read the USB_INSTALLATION.txt file in the ISO? It's more current than some of the links you've read.

Is your machine a UEFI system? If so you need to disable the Secure Boot boot option.
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#3 by user0815 » 19 Feb 2019, 16:56

Yes, I have read and followed the instruction in USB_INSTALLATION.txt, and also in /boot/docs/install.txt. This works fine for usb flash drive, and I already play around with Porteus booted from usb drive for a while. But it does not work for SD card. What is the difference and what do I have to adjust?
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

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

Re: Install Porteus on SD card

Post#4 by Ed_P » 19 Feb 2019, 17:30

What is the format of the bootable USB drive? What is the format of the SD drive?

What folders are on the bootable USB drive? What folders are on the non-bootable SD drive?

Is your machine EFI capable? Have you disabled Secure Boot?
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#5 by user0815 » 19 Feb 2019, 17:38

Ed_P wrote:
19 Feb 2019, 17:30
What is the format of the bootable USB drive?
Fat32 and ext4, I am using two flash drives.
What is the format of the SD drive?
tried both fat32 and ext2 and also ext4, both not working.
What folders are on the bootable USB drive? What folders are on the non-bootable SD drive?
boot and porteus
Is your machine EFI capable? Have you disabled Secure Boot?
no, and no.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

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

Re: Install Porteus on SD card

Post#6 by Ed_P » 19 Feb 2019, 20:05

Is the SD drive's boot partition flagged as boot,lba? Use GParted to check.
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#7 by user0815 » 19 Feb 2019, 20:17

yes, checked flagged as boot. I think there is nothing wrong with the SD, tried other distros and it worked
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

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

Re: Install Porteus on SD card

Post#8 by Ed_P » 19 Feb 2019, 20:51

And both boot and porteus folders on the boot drive? If so I am out of ideas. :(
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#9 by user0815 » 23 Feb 2019, 10:56

Hi, I tried to do it from scratch as instructed here for Linux, but when executing the Porteus-installer-for-Linux.com, it ends up with error code 2, here the debug.txt:

Code: Select all

device: /dev/mmcblk0
partition: /dev/mmcblk0p1
partition number: p1
partition mount point: /mnt/mmcblk0p1
installation path: /mnt/mmcblk0p1/boot
subfolder: 
filesystem: ext2
bootloader: lilo
error code: 2
system: porteus 4.16.8-porteus x86_64
mount details: /dev/mmcblk0p1 /mnt/mmcblk0p1 ext2 rw,noatime,nodiratime,block_validity,barrier,user_xattr,acl 0 0
full partition scheme:
Disk /dev/loop0: 52.6 MiB, 55111680 bytes, 107640 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 /dev/loop1: 106.2 MiB, 111321088 bytes, 217424 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 /dev/loop2: 90.8 MiB, 95227904 bytes, 185992 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 /dev/loop3: 48.8 MiB, 51142656 bytes, 99888 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 /dev/loop4: 16.8 MiB, 17547264 bytes, 34272 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 /dev/loop5: 52.3 MiB, 54816768 bytes, 107064 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 /dev/loop6: 306.2 MiB, 321058816 bytes, 627068 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 /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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: 0x00000000

Device     Boot Start    End Sectors  Size Id Type
/dev/sda1  *        1 128582  128582 62.8M  7 HPFS/NTFS/exFAT


Disk /dev/sdb: 14.5 GiB, 15597568000 bytes, 30464000 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: 0x2a9988c3

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 30463999 30461952 14.5G 83 Linux


Disk /dev/mmcblk0: 3.7 GiB, 3965190144 bytes, 7744512 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: 0x0002d93f

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk0p1 *     2048 7743487 7741440  3.7G 83 Linux
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

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

Re: Install Porteus on SD card

Post#10 by Ed_P » 23 Feb 2019, 16:08

user0815 wrote:
23 Feb 2019, 10:56

Code: Select all

device: /dev/mmcblk0
partition: /dev/mmcblk0p1

filesystem: ext2
bootloader: lilo

Try formatting the drive as FAT32 then following these steps.
brokenman wrote:
14 May 2015, 01:18
From a standard porteus install (and assuming your USB partition is at sdb1)

Code: Select all

mloop /path/to/my/porteus.iso
cp -a /mnt/loop/* /mnt/sdb1
sync
cd /mnt/sdb1/boot
./Porteus-installer-for-Linux.com
That's all.
The problem may lay in the device's name, mmcblk0. The Porteus installer may be looking for a 4 character id, sdxy.

-update-

The picture card from my camera shows up as /dev/sdb1 on my notebook, not mmcblk0.

Maybe one of these links will help:
https://bbs.archlinux.org/viewtopic.php?id=184873
https://ubuntuforums.org/showthread.php?t=1146962
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#11 by user0815 » 23 Feb 2019, 21:20

I am desperate, trying FAT32 takes me indeed to the boot menu from Porteus (where you can choose to boot graphical, copy2ram, fresh etc.), but after choosing whatever menu, it tells me system cannot find porteus-v4.0-x86_64.cfg.
The problem may lay in the device's name, mmcblk0. The Porteus installer may be looking for a 4 character id, sdxy.
I have no clue how to get rid of this mmcblk0, using gparted does not help, you can only change the label. On my other usb flash drive, I am using the from= cheat code with the UUID which has much more than 4 characters but it works flawlessly.
The picture card from my camera shows up as /dev/sdb1 on my notebook, not mmcblk0
Are you using an adapter to connect it to your notebook via usb, or is it a built-in card reader as mine?

-edit-
The problem may be already described here Install fails on mmcblk device Porteus-KDE4-v3.1-x86_64.iso. If yes, I hope the installer is fixed meanwhile and can be found somewhere.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

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

Re: Install Porteus on SD card

Post#12 by Ed_P » 24 Feb 2019, 00:51

Ok, we're making progress. You are able to boot. The .cfg problem is a separate issue.

My card reader is built into the notebook, same as yours.

The link you refer to is 4 yrs old and refers to the Kiosk system which is a different OS.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2057
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

Re: Install Porteus on SD card

Post#13 by ncmprhnsbl » 24 Feb 2019, 03:37

Ed_P wrote:
24 Feb 2019, 00:51
The link you refer to is 4 yrs old and refers to the Kiosk system which is a different OS.
take another look : Porteus-KDE4-v3.1-x86_64.iso
and
"partition number: p1"
seems like the same problem..
perhaps this never actually got fixed (though maybe it's only a problem with some sd cards or reader?)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

Re: Install Porteus on SD card

Post#14 by Ed_P » 24 Feb 2019, 04:09

Good point ncmp. I was going by fanthom being the responder. But the thread is still 4 yrs old and pre 3.2.2 and 4.0. We need to concentrate on the missing .cfg problem which I believe has been fixed since I haven't experienced it. Have you?

user0815 post an ls of your /porteus directory on the SD drive. And are you using a multiboot loader like grub?
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#15 by user0815 » 24 Feb 2019, 08:30

user0815 post an ls of your /porteus directory on the SD drive
here you go

Code: Select all

guest@porteus:~$ cd /mnt/mmcblk0p1
guest@porteus:/mnt/mmcblk0p1$ ls -rtla
total 28
drwxrwxrwx 6 root root 4096 Jan  1  1970 ./
drwxrwxrwx 6 root root 4096 Apr 29  2018 porteus/
drwxrwxrwx 3 root root 4096 Apr 29  2018 EFI/
-rwxrwxrwx 1 root root 1512 Apr 29  2018 USB_INSTALLATION.txt*
drwxrwxrwx 4 root root 4096 Feb 24 09:07 boot/
drwxrwxrwx 2 root root 4096 Feb 24 09:10 System\ Volume\ Information/
drwxr-xr-x 5 root root 4096 Feb 24 09:22 ../
guest@porteus:/mnt/mmcblk0p1$ cd port*
guest@porteus:/mnt/mmcblk0p1/porteus$ ls -rtla
total 32
drwxrwxrwx 6 root root 4096 Jan  1  1970 ../
drwxrwxrwx 2 root root 4096 Apr 29  2018 rootcopy/
-rwxrwxrwx 1 root root  681 Apr 29  2018 porteus-v4.0-x86_64.cfg*
drwxrwxrwx 2 root root 4096 Apr 29  2018 optional/
drwxrwxrwx 2 root root 4096 Apr 29  2018 modules/
-rwxrwxrwx 1 root root 1015 Apr 29  2018 make_iso.sh*
drwxrwxrwx 6 root root 4096 Apr 29  2018 ./
drwxrwxrwx 2 root root 4096 Apr 29  2018 base/
guest@porteus:/mnt/mmcblk0p1/porteus$ 
And are you using a multiboot loader like grub?
No, there is nothing else on the sd card except what is from Porteus ISO. And I am using Dell Latitude Bios and legacy boot, not UEFI.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

Post Reply