Code: Alles auswählen
vid@laptop-peaq:~$ su
Passwort:
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3 sdb sdb1
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3 sdb sdb1
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3 sdb sdb1
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3 sdb sdb1
root@laptop-peaq:/home/david# fdisk /dev/sd
sda sda1 sda2 sda3 sdb sdb1
root@laptop-peaq:/home/david# fdisk /dev/sdb
bash: fdisk: Kommando nicht gefunden.
root@laptop-peaq:/home/david# PATH="$PATH:/usr/sbin"
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): 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: 2149C504-0D3D-E642-8713-A072D9CEA878).
The device contains 'dos' 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): 10000000
Created a new partition 1 of type 'Linux filesystem' and of size 4,8 GiB.
Command (m for help): n
Partition number (2-128, default 2):
First sector (10000001-60125150, default 10000384):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (10000384-60125150, default 60123135): 20000000
Created a new partition 2 of type 'Linux filesystem' and of size 4,8 GiB.
Command (m for help): n
Partition number (3-128, default 3):
First sector (10000001-60125150, default 20000768):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (20000768-60125150, default 60123135): 30000000
Created a new partition 3 of type 'Linux filesystem' and of size 4,8 GiB.
Command (m for help): n
Partition number (4-128, default 4):
First sector (10000001-60125150, default 30001152):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (30001152-60125150, default 60123135):
Created a new partition 4 of type 'Linux filesystem' and of size 14,4 GiB.
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# mkfs /dev/sd
sda sda1 sda2 sda3 sdb sdb1 sdb2 sdb3 sdb4
root@laptop-peaq:/home/david# mkfs /dev/sd
sda sda1 sda2 sda3 sdb sdb1 sdb2 sdb3 sdb4
root@laptop-peaq:/home/david# mkfs /dev/sdb1
mke2fs 1.47.0 (5-Feb-2023)
Creating filesystem with 1249744 4k blocks and 312624 inodes
Filesystem UUID: e22e15e4-8fd5-4850-95a6-deed3219a051
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
root@laptop-peaq:/home/david# mkfs /dev/sdb2
mke2fs 1.47.0 (5-Feb-2023)
Creating filesystem with 1249952 4k blocks and 312624 inodes
Filesystem UUID: a535d010-3dbc-4e0a-a1a9-a5d7704a971b
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
root@laptop-peaq:/home/david# mkfs /dev/sdb3
mke2fs 1.47.0 (5-Feb-2023)
Creating filesystem with 1249904 4k blocks and 312624 inodes
Filesystem UUID: 93d9ebc0-ce9a-42e7-86a2-0bc9bf93171d
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
root@laptop-peaq:/home/david# mkfs /dev/sdb4
mke2fs 1.47.0 (5-Feb-2023)
Creating filesystem with 3765248 4k blocks and 942080 inodes
Filesystem UUID: 16f33196-ce23-4143-9c6a-95aa9c28212a
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
root@laptop-peaq:/home/david# pv
pv pvchange pvck pvcreate pvdisplay pvmove pvremove pvresize pvs pvscan
root@laptop-peaq:/home/david# pvc
pvchange pvck pvcreate
root@laptop-peaq:/home/david# pvc
pvchange pvck pvcreate
root@laptop-peaq:/home/david# pvcreate /dev/sdb
sdb sdb1 sdb2 sdb3 sdb4
root@laptop-peaq:/home/david# pvcreate /dev/sdb1 /dev/sdb2 /dev/sdb3 /dev/sdb4
File descriptor 41 (anon_inode:inotify) leaked on pvcreate invocation. Parent PID 7972: bash
WARNING: ext2 signature detected on /dev/sdb1 at offset 1080. Wipe it? [y/n]: y
Wiping ext2 signature on /dev/sdb1.
WARNING: ext2 signature detected on /dev/sdb2 at offset 1080. Wipe it? [y/n]: y
Wiping ext2 signature on /dev/sdb2.
WARNING: ext2 signature detected on /dev/sdb3 at offset 1080. Wipe it? [y/n]: y
Wiping ext2 signature on /dev/sdb3.
WARNING: ext2 signature detected on /dev/sdb4 at offset 1080. Wipe it? [y/n]: y
Wiping ext2 signature on /dev/sdb4.
Physical volume "/dev/sdb1" successfully created.
Physical volume "/dev/sdb2" successfully created.
Physical volume "/dev/sdb3" successfully created.
Physical volume "/dev/sdb4" successfully created.
root@laptop-peaq:/home/david# vgcreate THE_FIRST_GROUP /dev/sdb1 /dev/sdb2 /dev/sdb3 /dev/sdb4
File descriptor 41 (anon_inode:inotify) leaked on vgcreate invocation. Parent PID 7972: bash
Volume group "THE_FIRST_GROUP" successfully created
root@laptop-peaq:/home/david# lvcreate -L 28G -n THE_FIRST_VOL THE_FIRST_GROUP
File descriptor 41 (anon_inode:inotify) leaked on lvcreate invocation. Parent PID 7972: bash
Logical volume "THE_FIRST_VOL" created.
root@laptop-peaq:/home/david# ls /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt THE_FIRST_GROUP-THE_FIRST_VOL
root@laptop-peaq:/home/david# ls /dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL
20231201_113553.mp4 generatetestbench2 Musik/ quine.c
a.out generatetestbench2.c node_modules/ save2.txt
aufg-synthese-analyse.c generatetestbench3 .npm/ save3.txt
automat .gnupg/ Öffentlich/ save.txt
automat0047.ghw .gtkrc-2.0 package.json .save.txt.kate-swp
automat0047.txt inst/ package-lock.json Schreibtisch/
automat0047.vhdl .java/ passwd squirrelmail-20220919_0200-SVN.devel.tar
.bash_history k.jpg passwd.c .ssh/
.bash_logout Koala_climbing_tree.jpg passwort44.txt svg/
.bashrc .lesshst passwort45.txt text.txt
Bilder/ .local/ phpBB3/ unzip
.cache/ mail/ .pki/ Videos/
.config/ makefile .profile Vorlagen/
Dokumente/ makefile2 quine wave0047.ghw
Downloads/ makefile3 .quine0043b.txt.kate-swp wave.gwh
.face Mars/ quine0047.txt work-obj93.cf
.face.icon .mozilla/ quine0047.vhdl .yosys_history
root@laptop-peaq:/home/david# ls /dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL
20231201_113553.mp4 generatetestbench2 Musik/ quine.c
a.out generatetestbench2.c node_modules/ save2.txt
aufg-synthese-analyse.c generatetestbench3 .npm/ save3.txt
automat .gnupg/ Öffentlich/ save.txt
automat0047.ghw .gtkrc-2.0 package.json .save.txt.kate-swp
automat0047.txt inst/ package-lock.json Schreibtisch/
automat0047.vhdl .java/ passwd squirrelmail-20220919_0200-SVN.devel.tar
.bash_history k.jpg passwd.c .ssh/
.bash_logout Koala_climbing_tree.jpg passwort44.txt svg/
.bashrc .lesshst passwort45.txt text.txt
Bilder/ .local/ phpBB3/ unzip
.cache/ mail/ .pki/ Videos/
.config/ makefile .profile Vorlagen/
Dokumente/ makefile2 quine wave0047.ghw
Downloads/ makefile3 .quine0043b.txt.kate-swp wave.gwh
.face Mars/ quine0047.txt work-obj93.cf
.face.icon .mozilla/ quine0047.vhdl .yosys_history
root@laptop-peaq:/home/david# ls /dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL
/dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL
root@laptop-peaq:/home/david# ls /dev/
Display all 194 possibilities? (y or n)
root@laptop-peaq:/home/david# mkfs /dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL
mke2fs 1.47.0 (5-Feb-2023)
Creating filesystem with 7340032 4k blocks and 1835008 inodes
Filesystem UUID: db2b5a2f-8839-45fc-874c-984873fdab4e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
root@laptop-peaq:/home/david# mount /dev/mapper/
control laptop--peaq--vg-root laptop--peaq--vg-swap_1 sda3_crypt THE_FIRST_GROUP-THE_FIRST_VOL
root@laptop-peaq:/home/david# mount /dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL /media/
cdrom/ david/
root@laptop-peaq:/home/david# mount /dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL /media/
cdrom/ david/
root@laptop-peaq:/home/david# mount /dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL /media/david/stick/
root@laptop-peaq:/home/david# cd /media/david/stick/
root@laptop-peaq:/media/david/stick# du -h
16K ./lost+found
20K .
root@laptop-peaq:/media/david/stick# df -h
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
udev 1,8G 0 1,8G 0% /dev
tmpfs 373M 1,7M 372M 1% /run
/dev/mapper/laptop--peaq--vg-root 115G 85G 25G 78% /
tmpfs 1,9G 0 1,9G 0% /dev/shm
tmpfs 5,0M 12K 5,0M 1% /run/lock
/dev/sda2 456M 81M 350M 19% /boot
/dev/sda1 511M 5,9M 506M 2% /boot/efi
tmpfs 373M 2,5M 371M 1% /run/user/1000
/dev/mapper/THE_FIRST_GROUP-THE_FIRST_VOL 28G 24K 27G 1% /media/david/stick
root@laptop-peaq:/media/david/stick#