installation failed with the error code '1'[SOLVED]

Post here if you are a new Porteus member and you're looking for some help.
BKG
White ninja
White ninja
Posts: 20
Joined: 04 Jun 2023, 18:51
Distribution: v.5

installation failed with the error code '1'[SOLVED]

Post#1 by BKG » 04 Jun 2023, 19:23

hi all, not sure if this thread is still active, but having the same issue as the thread title. When trying to install porteus v.5.0 on the usb in the linux evironment (porteus) I get an error - installation failed with the error code '1'. Quick explanation of what was done:
-took usb 2 formated fat32 and copied the content of the iso (boot and porteus) to the usb
-ran windows installer as admin
-booted into porteus
-inserted a new usb 2 drive and formated it ext4
-copied the boot and porteus on to the new usb drive
-in the porteus terminal went to /mnt/sdb/boot and executed the sh script(Porteus-installer-for-Linux.com)
-got an error - Installation failed with error code `1'

So, my porteus install runs fine if i use windows install method , but I do want to run porteus from the usb with linux install so i dont have to create .dat containers for saving changes.

New to porteus. Pleasae advise. Thanks.

debug text:
partition: /dev/sdb
partition mount point: /mnt/sdb
installation path: /mnt/sdb/boot
filesystem: ext4
bootloader: lilo
error code: 1
system: porteus.example.net 5.18.8-porteus x86_64
mount details: /dev/sdb /mnt/sdb ext4 rw,relatime 0 0
full partition scheme:
Disk /dev/loop0: 74.39 MiB, 78004224 bytes, 152352 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: 121.59 MiB, 127496192 bytes, 249016 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: 111.49 MiB, 116903936 bytes, 228328 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: 17.46 MiB, 18309120 bytes, 35760 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: 13.7 MiB, 14368768 bytes, 28064 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/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG MZVLB256HBHQ-000L7
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


Disk /dev/sda: 14.32 GiB, 15376318464 bytes, 30031872 sectors
Disk model: Cruzer Blade
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: 0x7bbd8062

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 30031871 30029824 14.3G c W95 FAT32 (LBA)


Disk /dev/sdb: 14.32 GiB, 15376318464 bytes, 30031872 sectors
Disk model: Cruzer Blade
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

installation failed with the error code '1'

Post#2 by Ed_P » 04 Jun 2023, 20:19

Hello BKG, welcome to the forum.

To create a bootable USB drive that supports saving changes without a save.dat file there are a couple of options.

1. Partition a USB drive to have 2 partitions. A couple of hundred MB for the 1st partition and the rest for the 2nd partition.
Format the 1st partition as FAT32 and copy all the ISO files to it except for the porteus folder.
Format the 2nd partition as ext4 and Copy the porteus folder to it.

2. Partition a USB drive to a single partition as FAT32 and copy ALL files and folders to it.
Boot the USB drive, make whatever changes you want then go to the Porteus Menu's Admin > Porteus Settings Centre, the 5th option to the right and choose the Save Your Current Porteus Session. Save it as a module and save it to the /porteus/modules folder. The next time you boot your changes will be applied.

3. An alternative to the #2 option is to create a script to save the changes you make and want to keep and have it create a module you store in the /porteus/modules folder.

Hope these help. :)
Ed

BKG
White ninja
White ninja
Posts: 20
Joined: 04 Jun 2023, 18:51
Distribution: v.5

installation failed with the error code '1'

Post#3 by BKG » 04 Jun 2023, 21:33

thank you Ed_p, i figured it out :). I used gparted to create partition and the to install linux method. all good now! I now learn the system and what i can and can not do depending on different boot method :). Curently trying to install vbox.

Post Reply