Das neue Auswendig lernen und die neuen Übungen - 0003

Benutzeravatar
davidvajda.de
Site Admin
Beiträge: 1482
Registriert: Di Jul 18, 2023 8:36 pm
Wohnort: D-72072, Tübingen
Kontaktdaten:

Re: Das neue Auswendig lernen und die neuen Übungen - 0003

Beitrag von davidvajda.de »

Code: Alles auswählen

1.) Rechne die Zahl in binaer Darstellung  in eine Dezimale Darstellung um
0110101011101010b 27370d
2.) Rechne die Zahl in dezimal darstellung in eine Binaerdarstellung um
1321 0000010100101001
3.) Addiere die drei Zahlen schriftlich
            63432
+           60948
+           19340
-----------------
           143720
4.) Subtrahiere die letzten drei Zahlen schriftlich von der ersten schriftlich
            29655
-           10521
-            3592
-            6337
-----------------
             9205
5.) Rechne die Zahl ins zweier komplement um, mit 8 Bit - und subtrahiere diese zahl von der ersten und rechne das Ergebnis nach dezimal
-109 -17 = -126
10010011 11101111 = 10000010
6.) Multipliziere die zwei Zahlen schriftlich
50877*24106 = 1226440962
7.) Dividiere die zwei Zahlen schriftlich
35320/39754 = 0
8.) Errechne x Logarithmisch mit dem Taschenrechner
40868^x = 448306750
Rechne die Zahl in IEEE-754 um 9646.062500
Bild

Bild

Bild

Bild

Bild

Bild


Bild

Code: Alles auswählen

global      _start
section     .data
            toSrtArray:         db  "gasjdhasdjahdsjadjasd", 0x00
            toSrtArrayLen:      equ $-toSrtArray
section     .text
            _start:

            mov esi, toSrtArray
            loop1:
                mov ah, [esi]
                cmp ah, 0x00
                je loop1end
                mov ah, [esi]
                mov edi, esi
                loop2:
                    inc edi
                    mov al, [edi]
                    cmp al, 0x00
                    je loop2end
                    mov al, [edi]
                    cmp al, ah
                    jge noexchange
                        mov [esi], al
                        mov [edi], ah
                    noexchange:
                    mov ah, [esi]
                    jm
                    p loop2
                loop2end:
                inc esi
            jmp loop1

            loop1end:

            mov edx, toSrtArrayLen
            mov ecx, toSrtArray
            mov ebx, 1
            mov eax, 4
            int 0x80

            mov ebx, 0
            mov eax, 1
            int 0x80

Code: Alles auswählen

compile:
	nasm -f elf32 -g asm20240322.asm
link:
	ld -m elf_i386 -g asm20240322.o -o asm20240322
run:
	./asm20240322

Bild

Code: Alles auswählen

global      _start

section     .data
            outstr:     db      "____________"
            outstrlen:  equ 0x0C
section     .text
            _start:

            mov eax, 0x00
            cpuid
            mov esi, outstr
            mov [esi], ebx
            inc esi
            inc esi
            inc esi
            inc esi
            mov [esi], ecx
            inc esi
            inc esi
            inc esi
            inc esi
            mov [esi], edx
            inc esi
            inc esi
            inc esi
            inc esi

            mov edx, outstrlen
            mov ecx, outstr
            mov ebx, 1
            mov eax, 4
            int 0x80

            mov ebx, 0
            mov eax, 1
            int 0x80






Code: Alles auswählen

assemble:
	nasm -f elf32 -g asm20240322cpuid.asm
link:
	ld -m elf_i386 -g asm20240322cpuid.o -o asm20240322cpuid
run:
	./asm20240322cpuid

Code: Alles auswählen

david@laptop-peaq:~$ make -f ma
mail/                  makefile20240322cpuid  matlab/                
david@laptop-peaq:~$ make -f makefile20240322cpuid assemble
nasm -f elf32 -g asm20240322cpuid.asm
david@laptop-peaq:~$ make -f makefile20240322cpuid link
ld -m elf_i386 -g asm20240322cpuid.o -o asm20240322cpuid
david@laptop-peaq:~$ make -f makefile20240322cpuid run
./asm20240322cpuid
GenuntelineIdavid@laptop-peaq:~$ 

So, jetzt probiere ich mich an MMX und zwar ohne Abfrage mittels CPUID Befehls. Eigentlich ist MMX ist nicht schwer

Wir brauchen nur die Register MM0 bis MM7

Und wir müssen das irgendwie laden. Leider hat MOVQ bei letzten Mal den Dienst versagt

Wir brauchen noch den Mathematischen Befehl

Ich würde sagen, PADD.

Ich weiss, woran das lag, daran fehlten die Klammern - also Klammern sind halt indirekte Addressierung

Und wenn man schreibt,

movq mm0, Addresse

Dann findet statt

Direkte Addressiernug

movq mm0, Addresse

dann ist die Addresse drin. Viel mehr gehört der Speicherplatz rein.

In dem falle, war einiges von dem Beispiel von mir. Allerdings das mit movq hatte ich übernommen, deswegen weil ich wollte MMX kennen lernen, das kam nicht von mir. Ich habe das jetzt frei aufgeschrieben und weiss, wo der Fehler ist

Ich wollte MMX kennen lernen. Im Geiste im Gedanken, habe ich MMX jetzt kennen gelernt und ich denke, meist Geist hat MMX sehr genau kennen gelernt. Ich werde weiter fleissig üben, aber das ist kein Problem.

Ich habe herausgefunden, dass es nicht
padd heisst, sondern paddb. Es scheint zu gehen und meine Logik scheint auf zu gehen.

Code: Alles auswählen

;; Dieses Programm hat auch eine gewisse Eleganz - dabei verhält es sich wie versprochen, an einer Stelle allerdings ein wenig interessant, ich sage um so besser, ich sage das deswegen, weil, ich sage mal, es ist wohl die Stelle, wo wir neben bei Intel HEX, Little-Endian oder etwas anderes kennen lernen. Richtig ist es in jedem Fall, das zeigt es

global          _start
section         .data
                summand1:       dq  0x0102030405060708
                summand2:       db  '0', '0', '0', '0', '0', '0', '0', '0'
                summe:          dq  0x0000000000000000
                len:            equ 8
section         .text
                _start:

                movq mm0, [summand1]
                movq mm1, [summand2]
                paddb mm0, mm1
                movq [summe], mm0

                mov edx, len
                mov ecx, summe
                mov ebx, 1
                mov eax, 4
                int 0x80

                mov ebx, 0
                mov eax, 1
                int 0x80

Code: Alles auswählen

david@laptop-peaq:~$ make -f makefile20240322mmx 
nasm -f elf32 -g asm20240322mmx.asm
david@laptop-peaq:~$ make -f makefile20240322mmx link
ld -m elf_i386 -g asm20240322mmx.o -o asm20240322mmx
david@laptop-peaq:~$ make -f makefile20240322mmx run
./asm20240322mmx
87654321david@laptop-peaq:~$
Die Ausgabe ist deswegen interessant, weil die Zahlen verkehrt herum erscheinen. Richtig ist es alle male. Ich tippe auf Little-endian
Interessant ist das Programm, weil es zum einen eine Addition vollzieht, die spührbar vollzogen werden soll. Ohne diese Addition, kommt das Programm zu nicht dem Ergebnis
Gleichzeitig wollen wir eine Ausgabe erzeugen, die man lesen kann. dafür müssten wir Zahlen umrechnen. Es geht auch so. somit haben wir Addition und Ausgabe in einem vollzogen.

Bild
Bild
Bild

Bild

Bild

Bild

Bild

Bild

Bild




Code: Alles auswählen

#!/bin/bash

if [[ "$1" == "David" && "$2" == "Vajda" ]]
then
    echo "Das bin ich!"
elif [[ "$1" == "David Vajda" && -z "$2" ]]
then
    echo "Das bin ich!"
elif [[ "$1" == "David" && -z "$2" ]]
then
    echo "Das koennte ich sein"
elif [[ "$1" == "Vajda" && -z "$2" ]]
then
    echo "Das koennte ich sein"
elif [ -n "$1" ]
then
    echo "Das bin ich mit an grosser Wahrscheinlichkeit grenzender Sicherheit nicht ich"
else
    echo "Hallo Welt!"

    i=0
    while [ $i -lt 10 ]
    do
        echo "Hallo zum $(($i+1))."
        i=$(($i+1))
    done

    strns=(Hallo heute haben wir die Variable umbenannt)
    strns+=(Sind aber beim Prinzip geblieben)

    i=0
    while [ $i -lt 12 ]
    do
        echo "${strns[$i]}"
        i=$(($i+1))
    done

    for s in "${strns[@]}"
    do
        echo "$s"
    done

    l=$(ls)
    for s in $l
    do
        echo "$s"
    done
fi

Code: Alles auswählen

Hallo Welt!
Hallo zum 1.
Hallo zum 2.
Hallo zum 3.
Hallo zum 4.
Hallo zum 5.
Hallo zum 6.
Hallo zum 7.
Hallo zum 8.
Hallo zum 9.
Hallo zum 10.
Hallo
heute
haben
wir
die
Variable
umbenannt
Sind
aber
beim
Prinzip
geblieben
Hallo
heute
haben
wir
die
Variable
umbenannt
Sind
aber
beim
Prinzip
geblieben
a01.sql
a02.sql
a03.sql
a04.sql
a05.sql
a06.sql
a07.sql
a08.sql
addressdecodertestbench.c
alldo.txt
alllinks.sh
a.out
asm15
asm16
asm20240313.asm
asm20240313.o
asm20240322
asm20240322.asm
asm20240322cpuid
asm20240322cpuid.asm
asm20240322cpuid.o
asm20240322mmx
asm20240322mmx.asm
asm20240322mmx.o
asm20240322.o
auswendig20240320a.txt
auswendig20240320b.txt
auswendig20240320c.txt
auswendig20240321a.txt
auswendig20240321b.txt
auswendig20240321c.txt
auswendig20240322a.txt
auswendig20240322b.txt
auswendig20240322c.txt
auswendig20240322d.txt
auswendig20240322e.txt
automat15
automat15.c
bash20240322.out
bash20240322.sh
Bilder
bin20240322.txt
binary2
binary2.c
binomialkoeffizient.asm
cpuid001.asm
cpuid001.o
davidvajda_dephpbb3.sql
debian-12.5.0-amd64-netinst.iso
deepsearch1.c
deepsearch2
deepsearch2.c
doc
Dokumente
dos-inst
Downloads
facebookpassword.txt
files.lst
float.c
fsmprogs
generatetestbench2
generatetestbench3
generatetestbench4
generatetestbench5
gnu-hello
ieee754aufgabe
ieee754aufgabe.c
ieee754aufgabe.o
imgout.txt
inst
ituenix_dephpbb3a.sql
ituenix_dephpbb3b.sql
k.jpg
mail
Makefile
makefile20240322cpuid
makefile20240322mmx
Mars
matlab
mips32singlecycle2.vhdl
mips32singlecycle.vhdl
mmx001.asm
mörder.txt
multdiv.c
Musik
mysqldata.php
names.txt
node_modules
Öffentlich
out.txt
password
password46.txt
pc.txt
quine
replace.sh
savesql.txt
save.txt
Schreibtisch
Screenshot_20240319_055421.png
Screenshot_20240319_162029.png
Screenshot_20240319_163720.png
Screenshot_20240319_163922.png
Screenshot_20240319_170825.png
Screenshot_20240319_171639.png
Screenshot_20240319_183417.png
Screenshot_20240319_183434.png
Screenshot_20240319_183448.png
Screenshot_20240319_183456.png
Screenshot_20240319_183504.png
Screenshot_20240319_192644.png
Screenshot_20240319_200753.png
Screenshot_20240320_122854.png
Screenshot_20240321_060641.png
Screenshot_20240321_060820.png
Screenshot_20240322_170446.png
Screenshot_20240322_172918.png
Screenshot_20240322_175448.png
state3
svg
test.png.vcd
todo2.txt
todo.txt
Videos
VirtualBox
VMs
Vorlagen
wave.ghw
work-obj93.cf
Ach, ja, jetzt kommen die Linux Übungen, Bash-Programmierung, wenn ich das habe, verschlüsselung mit gpg.

Code: Alles auswählen

#!/bin/bash

if [[ "$1" == "David" && "$2" == "Vajda" ]]
then
    echo "Das bin ich!"
elif [[ "$1" == "David Vajda" && -z "$2" ]]
then
    echo "Das bin ich!"
elif [[ "$1" == "David" && -z "$2" ]]
then
    echo "Das koennte ich sein"
elif [[ "$1" == "Vajda" && -z "$2" ]]
then
    echo "Das koennte ich sein"
elif [ -n "$1" ]
then
    echo "Das bin ich mit an grosser Wahrscheinlichkeit grenzender Sicherheit nicht ich"
else
    echo "Hallo Welt!"

    i=0
    while [ $i -lt 10 ]
    do
        echo "Hallo zum $(($i+1))."
        i=$(($i+1))
    done

    strns=(Hallo heute haben wir die Variable umbenannt)
    strns+=(Sind aber beim Prinzip geblieben)

    i=0
    while [ $i -lt 12 ]
    do
        echo "${strns[$i]}"
        i=$(($i+1))
    done

    for s in "${strns[@]}"
    do
        echo "$s"
    done

    l=$(ls)
    for s in $l
    do
        echo "$s"
    done
fi

Code: Alles auswählen

Hallo Welt!
Hallo zum 1.
Hallo zum 2.
Hallo zum 3.
Hallo zum 4.
Hallo zum 5.
Hallo zum 6.
Hallo zum 7.
Hallo zum 8.
Hallo zum 9.
Hallo zum 10.
Hallo
heute
haben
wir
die
Variable
umbenannt
Sind
aber
beim
Prinzip
geblieben
Hallo
heute
haben
wir
die
Variable
umbenannt
Sind
aber
beim
Prinzip
geblieben
a01.sql
a02.sql
a03.sql
a04.sql
a05.sql
a06.sql
a07.sql
a08.sql
addressdecodertestbench.c
alldo.txt
alllinks.sh
a.out
asm15
asm16
asm20240313.asm
asm20240313.o
asm20240322
asm20240322.asm
asm20240322cpuid
asm20240322cpuid.asm
asm20240322cpuid.o
asm20240322mmx
asm20240322mmx.asm
asm20240322mmx.o
asm20240322.o
auswendig20240320a.txt
auswendig20240320b.txt
auswendig20240320c.txt
auswendig20240321a.txt
auswendig20240321b.txt
auswendig20240321c.txt
auswendig20240322a.txt
auswendig20240322b.txt
auswendig20240322c.txt
auswendig20240322d.txt
auswendig20240322e.txt
automat15
automat15.c
bash20240322.out
bash20240322.sh
Bilder
bin20240322.txt
binary2
binary2.c
binomialkoeffizient.asm
cpuid001.asm
cpuid001.o
davidvajda_dephpbb3.sql
debian-12.5.0-amd64-netinst.iso
deepsearch1.c
deepsearch2
deepsearch2.c
doc
Dokumente
dos-inst
Downloads
facebookpassword.txt
files.lst
float.c
fsmprogs
generatetestbench2
generatetestbench3
generatetestbench4
generatetestbench5
gnu-hello
ieee754aufgabe
ieee754aufgabe.c
ieee754aufgabe.o
imgout.txt
inst
ituenix_dephpbb3a.sql
ituenix_dephpbb3b.sql
k.jpg
mail
Makefile
makefile20240322cpuid
makefile20240322mmx
Mars
matlab
mips32singlecycle2.vhdl
mips32singlecycle.vhdl
mmx001.asm
mörder.txt
multdiv.c
Musik
mysqldata.php
names.txt
node_modules
Öffentlich
out.txt
password
password46.txt
pc.txt
quine
replace.sh
savesql.txt
save.txt
Schreibtisch
Screenshot_20240319_055421.png
Screenshot_20240319_162029.png
Screenshot_20240319_163720.png
Screenshot_20240319_163922.png
Screenshot_20240319_170825.png
Screenshot_20240319_171639.png
Screenshot_20240319_183417.png
Screenshot_20240319_183434.png
Screenshot_20240319_183448.png
Screenshot_20240319_183456.png
Screenshot_20240319_183504.png
Screenshot_20240319_192644.png
Screenshot_20240319_200753.png
Screenshot_20240320_122854.png
Screenshot_20240321_060641.png
Screenshot_20240321_060820.png
Screenshot_20240322_170446.png
Screenshot_20240322_172918.png
Screenshot_20240322_175448.png
state3
svg
test.png.vcd
todo2.txt
todo.txt
Videos
VirtualBox
VMs
Vorlagen
wave.ghw
work-obj93.cf
Jetzt kommt die Verschlüsselung. Also, gpg - ich habe vergessen was zu tun ist, aber ich kann schnell nachgucken.

Also, als, erstes muss man machen

Code: Alles auswählen

gpg --list-secret-keys
Und damit werden alle schlüssel aufgelistet. Mal gucken, was kommt

Code: Alles auswählen

gpg: "Trust-DB" wird überprüft
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: Tiefe: 0  gültig:   1  signiert:   0  Vertrauen: 0-, 0q, 0n, 0m, 0f, 1u
/home/david/.gnupg/pubring.kbx
------------------------------
sec   rsa3072 2023-11-21 [SC]
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - DIES IST GEHEIM - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx
uid        [ ultimativ ] David Vajda (Standard Schlüssel auf meinem Peak Laptop) <david@ituenix.de>
ssb   rsa3072 2023-11-21 [E]
Jetzt brauchen wir ein generate Full Key. Wir müssen vollen Key generieren

Code: Alles auswählen

gpg --full-gen-key
Jetzt müssen wir aufpassen, jetzt kommt der Psychodoktor - das ist so - jetzt gebe ich ein passwort - das kriegen sie mit - das wird komplett, so, dass man sagen würde, nein, da steckt nichts dahinter

Sie müssen aber, der Psychodok - der taucht in 2000 Jahren auf. In jedem Passwort, auch, wenn sie noch meinen, es sei der Komplette Standard - was bedeutet, dass es jeder verwendet um zu erklären, wie es nicht geht, steckt eine geheime Information. Über ihren Charakter, ihre Persönlichkeit, ihre Denkstruktur

Unabhängig, davon, dass der Psychodok vielleicht das Passwort nicht knackt, trotzdem

Sie meinen, die hacker hätten damit etwas erraten

Code: Alles auswählen

gpg: "Trust-DB" wird überprüft
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: Tiefe: 0  gültig:   1  signiert:   0  Vertrauen: 0-, 0q, 0n, 0m, 0f, 1u
/home/david/.gnupg/pubring.kbx
------------------------------
sec   rsa3072 2023-11-21 [SC]
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - DIES IST GEHEIM - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx
uid        [ ultimativ ] David Vajda (Standard Schlüssel auf meinem Peak Laptop) <david@ituenix.de>
ssb   rsa3072 2023-11-21 [E]
Falsch, da kann man nichts erraten. Aber, wenn ich was falsches sagen, ich weiss nicht, wer was denkt

ich nehme, nichts was normalerweise nimmt

Ich nehme aliajactasunt das wäre die eigene möglichkeit, oder Lampenschirm - angeblich kann man daraus was ablesen, ja bei ir steht eine Lampe auf den Tisch, ich verwende als Beispiel was sie normalerweise im Netz nehmen würden.

Code: Alles auswählen

david@laptop-peaq:~$ gpg --full-gen-key
gpg (GnuPG) 2.2.40; Copyright (C) 2022 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Bitte wählen Sie, welche Art von Schlüssel Sie möchten:
   (1) RSA und RSA (voreingestellt)
   (2) DSA und Elgamal
   (3) DSA (nur signieren/beglaubigen)
   (4) RSA (nur signieren/beglaubigen)
   (14) Vorhandener Schlüssel auf der Karte
Ihre Auswahl? 1
RSA-Schlüssel können zwischen 1024 und 4096 Bit lang sein.
Welche Schlüssellänge wünschen Sie? (3072) 
Die verlangte Schlüssellänge beträgt 3072 Bit
Bitte wählen Sie, wie lange der Schlüssel gültig bleiben soll.
         0 = Schlüssel verfällt nie
      <n>  = Schlüssel verfällt nach n Tagen
      <n>w = Schlüssel verfällt nach n Wochen
      <n>m = Schlüssel verfällt nach n Monaten
      <n>y = Schlüssel verfällt nach n Jahren
Wie lange bleibt der Schlüssel gültig? (0) 
Schlüssel verfällt nie
Ist dies richtig? (j/N) j

GnuPG erstellt eine User-ID, um Ihren Schlüssel identifizierbar zu machen.

Ihr Name ("Vorname Nachname"): David Vajda
Email-Adresse: david@ituenix.de
Kommentar: Das ist ein Testschlüssel, der jedem bekannt ist
Sie benutzen den Zeichensatz `utf-8'
Sie haben diese User-ID gewählt:
    "David Vajda (Das ist ein Testschlüssel, der jedem bekannt ist) <david@ituenix.de>"

Ändern: (N)ame, (K)ommentar, (E)-Mail oder (F)ertig/(A)bbrechen? 
Ändern: (N)ame, (K)ommentar, (E)-Mail oder (F)ertig/(A)bbrechen? F
Wir müssen eine ganze Menge Zufallswerte erzeugen.  Sie können dies
unterstützen, indem Sie z.B. in einem anderen Fenster/Konsole irgendetwas
tippen, die Maus verwenden oder irgendwelche anderen Programme benutzen.
Wir müssen eine ganze Menge Zufallswerte erzeugen.  Sie können dies
unterstützen, indem Sie z.B. in einem anderen Fenster/Konsole irgendetwas
tippen, die Maus verwenden oder irgendwelche anderen Programme benutzen.
gpg: Widerrufzertifikat wurde als '/home/david/.gnupg/openpgp-revocs.d/71CF788AEF29221645B71538976ED1715AB89FC1.rev' gespeichert.
Öffentlichen und geheimen Schlüssel erzeugt und signiert.

pub   rsa3072 2024-03-22 [SC]
      71CF788AEF29221645B71538976ED1715AB89FC1
uid                      David Vajda (Das ist ein Testschlüssel, der jedem bekannt ist) <david@ituenix.de>
sub   rsa3072 2024-03-22 [E]

david@laptop-peaq:~$
Also, der Schlüssel heisst, "Lampenschirm"

Jetzt verschlüsseln wir was, wir schreiben einen Text.

Das ist der Klartext:

Code: Alles auswählen

"Lampenschirm" oder "alia jacta sunt", das ist hier die Frage?

Code: Alles auswählen

david@laptop-peaq:~$ gpg --encrypt -a --recipient 71CF788AEF29221645B71538976ED1715AB89FC1  klartext20240322.txt 
gpg: "Trust-DB" wird überprüft
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: Tiefe: 0  gültig:   2  signiert:   0  Vertrauen: 0-, 0q, 0n, 0m, 0f, 2u
david@laptop-peaq:~$

Code: Alles auswählen

david@laptop-peaq:~$ ls *.asc
klartext20240322.txt.asc
david@laptop-peaq:~$

Code: Alles auswählen

-----BEGIN PGP MESSAGE-----

hQGMA+COSt6Cpww1AQv/eOPzOJW6XZNjr/Czo/xmvBFF9J7XugQp/i30KFsuHAqp
JSBM/8QdLLBuWl7VV0kYaZa9QdtwXXi+x9EDvg3RF+YJdFqiO1t2ytmYNv+SY0Jr
6s1pWfBdN5YzV3a5hgS52aq9I6GhlFZokQQK2XvKyYUHAIokBsrjiiHwXCO2wOFE
AaxkWc7ELY8mBBaTSD4OvjjWq/I3RJMW28/DWpPM25Oqvj1yvmTcBQSU2GujBHkC
VrQJfnPRt2N1g9968wbBalssExGSu9u2rlvmPnu1fjfehU9UQcDiVpjjdZIICfhG
kO08C8Nxcfqzmbg2OCAek1D/61B9TjhiEGPfyDp/K7eWfgtRcyY+t8+oX8KNTfXt
bHrWXmcbVEYygjbeIXY09LDAFCeHGHP/GPVrmAYXVJzjKIIPk8hCcnD0/nWVRZ0h
CVXlsfX01Z1DcQpxMMAH3jmL/lRfYLPHEh3ZH7WvLhQmYqW+zHbUaWP9KeVBWQrR
dpDKy+BsRTxLvHLbUTsF0o0Bcn1Xlz5vu6QsrxfdzjuHSOaK2Dyja7RiTaIV7eB2
4GNX8Fhp/QYEmGdCawVvjguag/N34TBDOXzg0vhBnR2dkTTxBME0Fgyvx+40diWN
jKWkbRcz29DyoHZ/HiEe9AVYBv4i+eRa0EO+6wXOJANS4r3y96iw1axRme9qLhES
CxVy4WLNqWranlJHDug=
=XDf3
-----END PGP MESSAGE-----
Jetzt müsse wir aber die Meldung umbennen

Code: Alles auswählen

mv klartext20240322.txt.asc encoded20240322.txt.asc
das muss encrypted heissen, nicht encoded - big error. Encoded ist wenn sie was kodiert. Ich diskutiere nicht jetzt nicht. Encrypted. Und das muss nicht mv heissen, nebenbei, sondern - cp - weil sonst ist das Original weg. das ist nicht gut, auch in der Realität. Daran wird es nachher Probleme geben.

das muss encrypted heissen, nicht encoded - big error. Encoded ist wenn sie was kodiert. Ich diskutiere nicht jetzt nicht. Encrypted. Und das muss nicht mv heissen, nebenbei, sondern - cp - weil sonst ist das Original weg. das ist nicht gut, auch in der Realität. Daran wird es nachher Probleme geben.

Code: Alles auswählen

david@laptop-peaq:~$ cp klartext20240322.txt.asc encoded20240322.txt.asc
david@laptop-peaq:~$ gpg --decrypt --output decrypted20240322.txt encoded20240322.txt.asc 
gpg: verschlüsselt mit 3072-Bit RSA Schlüssel, ID E08E4ADE82A70C35, erzeugt 2024-03-22
      "David Vajda (Das ist ein Testschlüssel, der jedem bekannt ist) <david@ituenix.de>"
david@laptop-peaq:~$
Die entschlüsselte Meldung:

Code: Alles auswählen

"Lampenschirm" oder "alia jacta sunt", das ist hier die Frage?
Ich kann das genauer machen:

Code: Alles auswählen

      "David Vajda (Das ist ein Testschlüssel, der jedem bekannt ist) <david@ituenix.de>"
david@laptop-peaq:~$ cat decrypted20240322.txt 
"Lampenschirm" oder "alia jacta sunt", das ist hier die Frage?
david@laptop-peaq:~$
Damit passt das. Jetzt gibt es Pause. Jetzt mit LVM getestet werden. Aber erst Pause.

Jetzt muss ich das erst auf meine Seite tun und dann kommt LVM anwendung und darauf habe ich gerade keine Lust. Aber ich mache es. Eigentlich ist LVM spannend, aber so gesehen jetzt gerade nicht unbedingt.

Code: Alles auswählen

root@laptop-peaq:/home/david# pvcreate /dev/sdb1 /dev/sdc1 
File descriptor 25 (anon_inode:inotify) leaked on pvcreate invocation. Parent PID 5589: bash
  Can't initialize physical volume "/dev/sdb1" of volume group "DUAL_STICK_0001" without -ff
  /dev/sdb1: physical volume not initialized.
  Can't initialize physical volume "/dev/sdc1" of volume group "DUAL_STICK_0001" without -ff
  /dev/sdc1: physical volume not initialized.
root@laptop-peaq:/home/david# fdisk /dev/sdb
sdb   sdb1  
root@laptop-peaq:/home/david# fdisk /dev/sdb
sdb   sdb1  
root@laptop-peaq:/home/david# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): 


Command (m for help): m

Help:

  GPT
   M   enter protective/hybrid MBR

  Generic
   d   delete a partition
   F   list free unpartitioned space
   l   list known partition types
   n   add a new partition
   p   print the partition table
   t   change a partition type
   v   verify the partition table
   i   print information about a partition

  Misc
   m   print this menu
   x   extra functionality (experts only)

  Script
   I   load disk layout from sfdisk script file
   O   dump disk layout to sfdisk script file

  Save & Exit
   w   write table to disk and exit
   q   quit without saving changes

  Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty MBR (DOS) partition table
   s   create a new empty Sun partition table


Command (m for help): o

Created a new DOS (MBR) disklabel with disk identifier 0x97ae43a2.
The device contains 'gpt' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.

Command (m for help): m

Help:

  DOS (MBR)
   a   toggle a bootable flag
   b   edit nested BSD disklabel
   c   toggle the dos compatibility flag

  Generic
   d   delete a partition
   F   list free unpartitioned space
   l   list known partition types
   n   add a new partition
   p   print the partition table
   t   change a partition type
   v   verify the partition table
   i   print information about a partition

  Misc
   m   print this menu
   u   change display/entry units
   x   extra functionality (experts only)

  Script
   I   load disk layout from sfdisk script file
   O   dump disk layout to sfdisk script file

  Save & Exit
   w   write table to disk and exit
   q   quit without saving changes

  Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty MBR (DOS) partition table
   s   create a new empty Sun partition table


Command (m for help): g

Created a new GPT disklabel (GUID: 51C4ADE8-D24C-574E-A188-52EEE3D58D46).
The device contains 'gpt' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.

Command (m for help): n
Partition number (1-128, default 1): 
First sector (2048-60125150, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60125150, default 60123135): 

Created a new partition 1 of type 'Linux filesystem' and of size 28,7 GiB.
Partition #1 contains a LVM2_member signature.

Do you want to remove the signature? [Y]es/[N]o: Y

The signature will be removed by a write command.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@laptop-peaq:/home/david# fdisk /dev/sdc

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): m

Help:

  GPT
   M   enter protective/hybrid MBR

  Generic
   d   delete a partition
   F   list free unpartitioned space
   l   list known partition types
   n   add a new partition
   p   print the partition table
   t   change a partition type
   v   verify the partition table
   i   print information about a partition

  Misc
   m   print this menu
   x   extra functionality (experts only)

  Script
   I   load disk layout from sfdisk script file
   O   dump disk layout to sfdisk script file

  Save & Exit
   w   write table to disk and exit
   q   quit without saving changes

  Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty MBR (DOS) partition table
   s   create a new empty Sun partition table


Command (m for help): g
Created a new GPT disklabel (GUID: 9B4894EA-9D37-5143-8EE1-4026D86E6185).

Command (m for help): n
Partition number (1-128, default 1): 
First sector (2048-60125150, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60125150, default 60123135): 

Created a new partition 1 of type 'Linux filesystem' and of size 28,7 GiB.
Partition #1 contains a LVM2_member signature.

Do you want to remove the signature? [Y]es/[N]o: Y

The signature will be removed by a write command.

Command (m for help): n
Partition number (2-128, default 2): 
No enough free sectors available.

Command (m for help): g

Created a new GPT disklabel (GUID: D3B460F3-F07A-3E4E-9038-90A1578CA746).

Command (m for help): n
Partition number (1-128, default 1): 
First sector (2048-60125150, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60125150, default 60123135): 

Created a new partition 1 of type 'Linux filesystem' and of size 28,7 GiB.
Partition #1 contains a LVM2_member signature.

Do you want to remove the signature? [Y]es/[N]o: Y

The signature will be removed by a write command.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@laptop-peaq:/home/david# pvcreate /dev/sdb1 /dev/sdc1 
File descriptor 25 (anon_inode:inotify) leaked on pvcreate invocation. Parent PID 5589: bash
  Physical volume "/dev/sdb1" successfully created.
  Physical volume "/dev/sdc1" successfully created.
root@laptop-peaq:/home/david# 

Code: Alles auswählen

root@laptop-peaq:/home/david# vgcreate MYTEST /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 5589: bash
  Volume group "MYTEST" successfully created
root@laptop-peaq:/home/david# lvcreate -L 26G VOL MYTEST
File descriptor 25 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 5589: bash
  Volume group "VOL" not found
  Cannot process volume group VOL
root@laptop-peaq:/home/david# mkfs
mkfs         mkfs.cramfs  mkfs.ext2    mkfs.ext4    mkfs.minix   mkfs.ntfs    
mkfs.bfs     mkfs.exfat   mkfs.ext3    mkfs.fat     mkfs.msdos   mkfs.vfat    
root@laptop-peaq:/home/david# mkfs.ext4 /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/
acpi_thermal_rel  dm-1         hpet            loop5         pps0    sdb1      tty    tty20  tty33  tty46  tty59  uinput       vcsa1  vcsu7
autofs            dm-2         hugepages       loop6         psaux   sdc       tty0   tty21  tty34  tty47  tty6   urandom      vcsa2  vfio
block             dri          hwrng           loop7         ptmx    sdc1      tty1   tty22  tty35  tty48  tty60  userfaultfd  vcsa3  vga_arbiter
bsg               drm_dp_aux0  initctl         loop-control  ptp0    sg0       tty10  tty23  tty36  tty49  tty61  v4l          vcsa4  vhci
btrfs-control     drm_dp_aux1  input           mapper        pts     sg1       tty11  tty24  tty37  tty5   tty62  vboxusb      vcsa5  vhost-net
bus               fb0          kmsg            media0        random  sg2       tty12  tty25  tty38  tty50  tty63  vcs          vcsa6  vhost-vsock
char              fd           kvm             mei0          rfkill  shm       tty13  tty26  tty39  tty51  tty7   vcs1         vcsa7  video0
console           full         laptop-peaq-vg  mem           rtc     snapshot  tty14  tty27  tty4   tty52  tty8   vcs2         vcsu   video1
core              fuse         log             mqueue        rtc0    snd       tty15  tty28  tty40  tty53  tty9   vcs3         vcsu1  watchdog
cpu               gpiochip0    loop0           net           sda     stderr    tty16  tty29  tty41  tty54  ttyS0  vcs4         vcsu2  watchdog0
cpu_dma_latency   gpiochip1    loop1           null          sda1    stdin     tty17  tty3   tty42  tty55  ttyS1  vcs5         vcsu3  zero
cuse              gpiochip2    loop2           nvram         sda2    stdout    tty18  tty30  tty43  tty56  ttyS2  vcs6         vcsu4
disk              gpiochip3    loop3           port          sda3    tpm0      tty19  tty31  tty44  tty57  ttyS3  vcs7         vcsu5
dm-0              hidraw0      loop4           ppp           sdb     tpmrm0    tty2   tty32  tty45  tty58  uhid   vcsa         vcsu6
root@laptop-peaq:/home/david# ls /dev/dm-
dm-0  dm-1  dm-2  
root@laptop-peaq:/home/david# ls /dev/dm-
dm-0  dm-1  dm-2  
root@laptop-peaq:/home/david# ls /dev/dm-0 
Display all 165 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/dm-2 
/dev/dm-2
root@laptop-peaq:/home/david# vgcreate 
Display all 165 possibilities? (y or n)
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 5589: bash
  Physical volume '/dev/sdb1' is already in volume group 'MYTEST'
  Unable to add physical volume '/dev/sdb1' to volume group 'MYTEST'
  /dev/sdb1: physical volume not initialized.
  Physical volume '/dev/sdc1' is already in volume group 'MYTEST'
  Unable to add physical volume '/dev/sdc1' to volume group 'MYTEST'
  /dev/sdc1: physical volume not initialized.
root@laptop-peaq:/home/david# ls /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/
acpi_thermal_rel  dm-1         hpet            loop5         pps0    sdb1      tty    tty20  tty33  tty46  tty59  uinput       vcsa1  vcsu7
autofs            dm-2         hugepages       loop6         psaux   sdc       tty0   tty21  tty34  tty47  tty6   urandom      vcsa2  vfio
block             dri          hwrng           loop7         ptmx    sdc1      tty1   tty22  tty35  tty48  tty60  userfaultfd  vcsa3  vga_arbiter
bsg               drm_dp_aux0  initctl         loop-control  ptp0    sg0       tty10  tty23  tty36  tty49  tty61  v4l          vcsa4  vhci
btrfs-control     drm_dp_aux1  input           mapper        pts     sg1       tty11  tty24  tty37  tty5   tty62  vboxusb      vcsa5  vhost-net
bus               fb0          kmsg            media0        random  sg2       tty12  tty25  tty38  tty50  tty63  vcs          vcsa6  vhost-vsock
char              fd           kvm             mei0          rfkill  shm       tty13  tty26  tty39  tty51  tty7   vcs1         vcsa7  video0
console           full         laptop-peaq-vg  mem           rtc     snapshot  tty14  tty27  tty4   tty52  tty8   vcs2         vcsu   video1
core              fuse         log             mqueue        rtc0    snd       tty15  tty28  tty40  tty53  tty9   vcs3         vcsu1  watchdog
cpu               gpiochip0    loop0           net           sda     stderr    tty16  tty29  tty41  tty54  ttyS0  vcs4         vcsu2  watchdog0
cpu_dma_latency   gpiochip1    loop1           null          sda1    stdin     tty17  tty3   tty42  tty55  ttyS1  vcs5         vcsu3  zero
cuse              gpiochip2    loop2           nvram         sda2    stdout    tty18  tty30  tty43  tty56  ttyS2  vcs6         vcsu4
disk              gpiochip3    loop3           port          sda3    tpm0      tty19  tty31  tty44  tty57  ttyS3  vcs7         vcsu5
dm-0              hidraw0      loop4           ppp           sdb     tpmrm0    tty2   tty32  tty45  tty58  uhid   vcsa         vcsu6
root@laptop-peaq:/home/david# ls
 a01.sql                     auswendig20240322c.txt            gnu-hello                  replace.sh
 a02.sql                     auswendig20240322d.txt            gpgprotokoll20240322.txt   savesql.txt
 a03.sql                     auswendig20240322e.txt            ieee754aufgabe             save.txt
 a04.sql                     automat15                         ieee754aufgabe.c           Schreibtisch
 a05.sql                     automat15.c                       ieee754aufgabe.o           Screenshot_20240319_055421.png
 a06.sql                     bash20240322.out                  imgout.txt                 Screenshot_20240319_162029.png
 a07.sql                     bash20240322.sh                   inst                       Screenshot_20240319_163720.png
 a08.sql                     Bilder                            ituenix_dephpbb3a.sql      Screenshot_20240319_163922.png
 addressdecodertestbench.c   bin20240322.txt                   ituenix_dephpbb3b.sql      Screenshot_20240319_170825.png
 alldo.txt                   binary2                           k.jpg                      Screenshot_20240319_171639.png
 alllinks.sh                 binary2.c                         klartext20240322.txt       Screenshot_20240319_183417.png
 a.out                       binomialkoeffizient.asm           klartext20240322.txt.asc   Screenshot_20240319_183434.png
 asm15                       cpuid001.asm                      mail                       Screenshot_20240319_183448.png
 asm16                       cpuid001.o                        Makefile                   Screenshot_20240319_183456.png
 asm20240313.asm             davidvajda_dephpbb3.sql           makefile20240322cpuid      Screenshot_20240319_183504.png
 asm20240313.o               debian-12.5.0-amd64-netinst.iso   makefile20240322mmx        Screenshot_20240319_192644.png
 asm20240322                 decrypted20240322.txt             Mars                       Screenshot_20240319_200753.png
 asm20240322.asm             deepsearch1.c                     matlab                     Screenshot_20240320_122854.png
 asm20240322cpuid            deepsearch2                       mips32singlecycle2.vhdl    Screenshot_20240321_060641.png
 asm20240322cpuid.asm        deepsearch2.c                     mips32singlecycle.vhdl     Screenshot_20240321_060820.png
 asm20240322cpuid.o          doc                               mmx001.asm                 Screenshot_20240322_170446.png
 asm20240322mmx              Dokumente                         mörder.txt                 Screenshot_20240322_172918.png
 asm20240322mmx.asm          dos-inst                          multdiv.c                  Screenshot_20240322_175448.png
 asm20240322mmx.o            Downloads                         Musik                      state3
 asm20240322.o               encoded20240322.txt.asc           mysqldata.php              svg
 auswendig20240320a.txt      facebookpassword.txt              names.txt                  test.png.vcd
 auswendig20240320b.txt      files.lst                         node_modules               todo2.txt
 auswendig20240320c.txt      float.c                           Öffentlich                 todo.txt
 auswendig20240321a.txt      fsmprogs                          out.txt                    Videos
 auswendig20240321b.txt      generatetestbench2                password                  'VirtualBox VMs'
 auswendig20240321c.txt      generatetestbench3                password46.txt             Vorlagen
 auswendig20240322a.txt      generatetestbench4                pc.txt                     wave.ghw
 auswendig20240322b.txt      generatetestbench5                quine                      work-obj93.cf
root@laptop-peaq:/home/david# ls /dev/
Display all 193 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/
acpi_thermal_rel  dm-1         hpet            loop5         pps0    sdb1      tty    tty20  tty33  tty46  tty59  uinput       vcsa1  vcsu7
autofs            dm-2         hugepages       loop6         psaux   sdc       tty0   tty21  tty34  tty47  tty6   urandom      vcsa2  vfio
block             dri          hwrng           loop7         ptmx    sdc1      tty1   tty22  tty35  tty48  tty60  userfaultfd  vcsa3  vga_arbiter
bsg               drm_dp_aux0  initctl         loop-control  ptp0    sg0       tty10  tty23  tty36  tty49  tty61  v4l          vcsa4  vhci
btrfs-control     drm_dp_aux1  input           mapper        pts     sg1       tty11  tty24  tty37  tty5   tty62  vboxusb      vcsa5  vhost-net
bus               fb0          kmsg            media0        random  sg2       tty12  tty25  tty38  tty50  tty63  vcs          vcsa6  vhost-vsock
char              fd           kvm             mei0          rfkill  shm       tty13  tty26  tty39  tty51  tty7   vcs1         vcsa7  video0
console           full         laptop-peaq-vg  mem           rtc     snapshot  tty14  tty27  tty4   tty52  tty8   vcs2         vcsu   video1
core              fuse         log             mqueue        rtc0    snd       tty15  tty28  tty40  tty53  tty9   vcs3         vcsu1  watchdog
cpu               gpiochip0    loop0           net           sda     stderr    tty16  tty29  tty41  tty54  ttyS0  vcs4         vcsu2  watchdog0
cpu_dma_latency   gpiochip1    loop1           null          sda1    stdin     tty17  tty3   tty42  tty55  ttyS1  vcs5         vcsu3  zero
cuse              gpiochip2    loop2           nvram         sda2    stdout    tty18  tty30  tty43  tty56  ttyS2  vcs6         vcsu4
disk              gpiochip3    loop3           port          sda3    tpm0      tty19  tty31  tty44  tty57  ttyS3  vcs7         vcsu5
dm-0              hidraw0      loop4           ppp           sdb     tpmrm0    tty2   tty32  tty45  tty58  uhid   vcsa         vcsu6
root@laptop-peaq:/home/david# 
Display all 4369 possibilities? (y or n)
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 5589: bash
  Physical volume '/dev/sdb1' is already in volume group 'MYTEST'
  Unable to add physical volume '/dev/sdb1' to volume group 'MYTEST'
  /dev/sdb1: physical volume not initialized.
  Physical volume '/dev/sdc1' is already in volume group 'MYTEST'
  Unable to add physical volume '/dev/sdc1' to volume group 'MYTEST'
  /dev/sdc1: physical volume not initialized.
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/mapper/
control  laptop--peaq--vg-root  laptop--peaq--vg-swap_1  sda3_crypt
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/dm-
dm-0  dm-1  dm-2  
root@laptop-peaq:/home/david# ls /dev/dm-
dm-0  dm-1  dm-2  
root@laptop-peaq:/home/david# ls /dev/dm-2 
Display all 165 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  sda3_crypt               
root@laptop-peaq:/home/david# ls /dev/mapper/control 
Display all 165 possibilities? (y or n)
root@laptop-peaq:/home/david# ls /dev/
acpi_thermal_rel  dm-1         hpet            loop5         pps0    sdb1      tty    tty20  tty33  tty46  tty59  uinput       vcsa1  vcsu7
autofs            dm-2         hugepages       loop6         psaux   sdc       tty0   tty21  tty34  tty47  tty6   urandom      vcsa2  vfio
block             dri          hwrng           loop7         ptmx    sdc1      tty1   tty22  tty35  tty48  tty60  userfaultfd  vcsa3  vga_arbiter
bsg               drm_dp_aux0  initctl         loop-control  ptp0    sg0       tty10  tty23  tty36  tty49  tty61  v4l          vcsa4  vhci
btrfs-control     drm_dp_aux1  input           mapper        pts     sg1       tty11  tty24  tty37  tty5   tty62  vboxusb      vcsa5  vhost-net
bus               fb0          kmsg            media0        random  sg2       tty12  tty25  tty38  tty50  tty63  vcs          vcsa6  vhost-vsock
char              fd           kvm             mei0          rfkill  shm       tty13  tty26  tty39  tty51  tty7   vcs1         vcsa7  video0
console           full         laptop-peaq-vg  mem           rtc     snapshot  tty14  tty27  tty4   tty52  tty8   vcs2         vcsu   video1
core              fuse         log             mqueue        rtc0    snd       tty15  tty28  tty40  tty53  tty9   vcs3         vcsu1  watchdog
cpu               gpiochip0    loop0           net           sda     stderr    tty16  tty29  tty41  tty54  ttyS0  vcs4         vcsu2  watchdog0
cpu_dma_latency   gpiochip1    loop1           null          sda1    stdin     tty17  tty3   tty42  tty55  ttyS1  vcs5         vcsu3  zero
cuse              gpiochip2    loop2           nvram         sda2    stdout    tty18  tty30  tty43  tty56  ttyS2  vcs6         vcsu4
disk              gpiochip3    loop3           port          sda3    tpm0      tty19  tty31  tty44  tty57  ttyS3  vcs7         vcsu5
dm-0              hidraw0      loop4           ppp           sdb     tpmrm0    tty2   tty32  tty45  tty58  uhid   vcsa         vcsu6
root@laptop-peaq:/home/david# lvcreate -L 42G -n VOL GROUP
File descriptor 25 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 5589: bash
  Volume group "GROUP" not found
  Cannot process volume group GROUP
root@laptop-peaq:/home/david# lvcreate -L 42G -n VOL TEST
File descriptor 25 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 5589: bash
  Volume group "TEST" not found
  Cannot process volume group TEST
root@laptop-peaq:/home/david# vgcreate MYGRP20240322 /dev/sdb1 /dev/sdc1
File descriptor 25 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 5589: bash
  Physical volume '/dev/sdb1' is already in volume group 'MYTEST'
  Unable to add physical volume '/dev/sdb1' to volume group 'MYTEST'
  /dev/sdb1: physical volume not initialized.
  Physical volume '/dev/sdc1' is already in volume group 'MYTEST'
  Unable to add physical volume '/dev/sdc1' to volume group 'MYTEST'
  /dev/sdc1: physical volume not initialized.
root@laptop-peaq:/home/david# lvcreate -L 42G -n VOL MYTEST
File descriptor 25 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 5589: bash
  Logical volume "VOL" created.
root@laptop-peaq:/home/david# ls /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  MYTEST-VOL               sda3_crypt
root@laptop-peaq:/home/david# mkfs.ext4 /dev/mapper/MYTEST-VOL 
mke2fs 1.47.0 (5-Feb-2023)
Creating filesystem with 11010048 4k blocks and 2752512 inodes
Filesystem UUID: baeb6953-1ad6-4176-9252-b18de71637c8
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done   

root@laptop-peaq:/home/david# mount /dev/m
mapper/ media0  mei0    mem     mqueue/ 
root@laptop-peaq:/home/david# mount /dev/
Display all 195 possibilities? (y or n)
root@laptop-peaq:/home/david# mount /dev/m
mapper/ media0  mei0    mem     mqueue/ 
root@laptop-peaq:/home/david# mount /dev/mapper/
control                  laptop--peaq--vg-root    laptop--peaq--vg-swap_1  MYTEST-VOL               sda3_crypt
root@laptop-peaq:/home/david# mount /dev/mapper/MYTEST-VOL /mnt
root@laptop-peaq:/home/david# 
Antworten