Porteux 0.7 - USB thumbdrive issues

PorteuX - The Next Experience. It's inspired by Slax and Porteus but with heaps of improvements
User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteux 0.7 - USB thumbdrive issues

Post#1 by Rava » 19 Oct 2023, 16:29

I was looking for one of my several 4 GB USB thumbdrives to install Porteux 0.7 but only found one that I want to keep as save boot media and will not touch it boot-sector-wise.

I then choose a 8GB stick I never formatted myself, and it has enough free space, but seems the manufacturer did a weird thing when setting up the drive. Now I wonder if that can be repaired without formatting it (formatting=I have to copy all its data off it first)

Code: Select all

root@rava:/mnt/sde/boot# ./porteux-installer-for-linux.run 
Creating directory /tmp/porteux-installer
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing PorteuX Installer  100%  
Only 'dos' or 'msdos' partition table is supported.
Format your storage media using partition table 'dos' or 'msdos' and try again.
fdisk tells me this:

Code: Select all

Disk /dev/sde: 7.53 GiB, 8086618112 bytes, 15794176 sectors
Disk model: FlashDisk       
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: 0x69737369

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sde1       1869771365 2038460886  168689522  80.4G 69 unknown
/dev/sde2       1701519481 3571400945 1869881465 891.6G 73 unknown
/dev/sde3             2573       2573          0     0B 74 unknown
/dev/sde4       2885681152 2885733566      52415  25.6M  0 Empty

Partition table entries are not in disk order.
while gparted only sees one partition on /dev/sde
Image
Can there something be done aside from making the filesystem new from the beginning with the need to copy all of its data off it first and copy all of its data on it afterwards?
Cheers!
Yours Rava

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

Porteux 0.7 - USB thumbdrive issues

Post#2 by beny » 19 Oct 2023, 17:35

with gparted check the filesystem the zero on start is a bit weird,fat 32 only for the smart tv

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

Porteux 0.7 - USB thumbdrive issues

Post#3 by Ed_P » 19 Oct 2023, 17:47

GPart shows your 8 GB disk as fat32 and 7.53 GB, which is normal with formatting. The disk looks fine. Your fdisk shows your 8 GB disk as having 4 partitions, 3 with unknown format types and one Empty but the good news is it shows the drive is 912 GB not just 8 GB. :good: :lol:
Ed

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

Porteux 0.7 - USB thumbdrive issues

Post#4 by beny » 19 Oct 2023, 18:10

the fat 32 kingston that i have the start sector is at 2048 Rava check the filesystem you need the dosfstools and mtools requaired by gparted to work with fat 32 system

User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteux 0.7 - USB thumbdrive issues

Post#5 by Rava » 19 Oct 2023, 18:24

Ed_P wrote:
19 Oct 2023, 17:47
the good news is it shows the drive is 912 GB not just 8 GB.
If I only could use the 912 GB :ROFL:
beny wrote:
19 Oct 2023, 18:10
the fat 32 kingston that i have the start sector is at 2048 Rava check the filesystem you need the dosfstools and mtools requaired by gparted to work with fat 32 system
Which mtools could help me?

Code: Select all

root@rava:/# mtools
Supported commands:
mattrib, mbadblocks, mcat, mcd, mclasserase, mcopy, mdel, mdeltree
mdir, mdoctorfat, mdu, mformat, minfo, mlabel, mmd, mmount
mpartition, mrd, mread, mmove, mren, mshowfat, mshortname, mtoolstest
mtype, mwrite, mzip
Added in 1 minute 12 seconds:

Code: Select all

root@rava:/# mdoctorfat
-su: mdoctorfat: command not found
:(
Seems Port 5.01 has only a partial installation of the mtools. :crazy:
Cheers!
Yours Rava

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

Porteux 0.7 - USB thumbdrive issues

Post#6 by donald » 19 Oct 2023, 18:59

Rava wrote:
19 Oct 2023, 16:29
I was looking for one of my several 4 GB USB thumbdrives to install Porteux 0.7 but only found one that I want to keep as save boot media and will not touch it boot-sector-wise.
Make an image of that drive [clonezilla] -- you can use the drive for something new then.
Rava wrote:
19 Oct 2023, 16:29
I then choose a 8GB stick.... weird thing ....I wonder if that can be repaired without formatting it (formatting=I have to copy all its data off it first)
messing with partitions / filesystems of a drive without a [safe] copy of the data
on it = bad idea!
....and if you have a copy, I would not waste my time trying to repair the shown
[fdisk] mess....dd the whole drive and start fresh/clean.

....it would take 1hr and you're set.

User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteux 0.7 - USB thumbdrive issues

Post#7 by Rava » 19 Oct 2023, 19:21

^
I took donald's advice and used gparted to create a new partition table and format all of the drive as fat32.

This is what fdisk shows now:

Code: Select all

root@rava:/Porteus_modules# fdisk -l /dev/sde
Disk /dev/sde: 7.53 GiB, 8086618112 bytes, 15794176 sectors
Disk model: FlashDisk       
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: 0x68a68b68

Device     Boot Start      End  Sectors  Size Id Type
/dev/sde1        2048 15794175 15792128  7.5G  b W95 FAT32
Copying the data back to the thumbdrive right now.
And then hopefully the porteux installer script will work.

Added in 5 hours 25 minutes 23 seconds:
Rava wrote:
19 Oct 2023, 19:21
And then hopefully the porteux installer script will work.
It did work:
(Now the drive is sde1 instead of sde when formatted the manufacturer weird way)

Code: Select all

root@rava:/mnt/sde1/boot# ./porteux-installer-for-linux.run 
Creating directory /tmp/porteux-installer
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing PorteuX Installer  100%  

PorteuX is going to be installed in /dev/sde1

Press Enter to continue

Flushing filesystem buffers...
Installing extlinux bootloader...
Updating initrd with Porteux partition unique ID...
6111 blocks
6111 blocks
Setting permissions...














Installation finished successfully


You may reboot your system now and start using PorteuX.
Don't forget to set your BIOS to boot from this storage media.
root@rava:/mnt/sde1/boot# 
Am I hallucinating things?
I am sure it reads

Code: Select all

Verifying archive integrity...  100%   MD5 checksums are OK. All good.
even when porteux stated this:
porteux wrote:
17 Oct 2023, 10:39
1- we don't use checksum.
The world works in mysterious ways it seems. :ROFL:
Cheers!
Yours Rava

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

Porteux 0.7 - USB thumbdrive issues

Post#8 by beny » 20 Oct 2023, 23:26

hi, the system core don't have, but the installer yes

Code: Select all

 
ORIG_UMASK=`umask`
if test "n" = n; then
    umask 077
fi

CRCsum="503613798"
MD5="b715bd36f5c5224cf33910e5aeee23dd"
SHA="0000000000000000000000000000000000000000000000000000000000000000"
SIGNATURE=""
TMPROOT=${TMPDIR:=/tmp}
USER_PWD="$PWD"
export USER_PWD
ARCHIVE_DIR=`dirname "$0"`
export ARCHIVE_DIR

label="PorteuX Installer"
script="./installer.sh"
scriptargs="$PWD"
cleanup_script=""
licensetxt=""
helpheader=""
targetdir="/tmp/porteux-installer"
filesizes="219417"
totalsize="219417"
keep="y"
nooverwrite="n"
quiet="n"
accept="n"
nodiskspace="n"
export_conf="n"
decrypt_cmd=""
skip="722"
                                                                                                            

Post Reply