User Tools

Site Tools



en:linux:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:linux:start [2023/02/12 18:50] – [tar] franken:linux:start [2024/04/07 19:12] – [LVM] frank
Line 135: Line 135:
   sudo badblocks -nsv /dev/sdb   sudo badblocks -nsv /dev/sdb
  
 +http://www.das-werkstatt.com/forum/werkstatt/viewtopic.php?t=2346
 ====== NTP ====== ====== NTP ======
  
Line 260: Line 261:
 #cp2104 KERNELS=="1-3.1" #cp2104 KERNELS=="1-3.1"
 SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{serial}=="0001", SYMLINK+="tty_r2" SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{serial}=="0001", SYMLINK+="tty_r2"
 +</code>
 +
 +this udev rules i use for ftdi 4xuart adapter (FT4232H Quad RS232-HS)
 +<code>
 +SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ENV{ID_USB_INTERFACE_NUM}=="00", SYMLINK+="ftdi_r2"
 +SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ENV{ID_USB_INTERFACE_NUM}=="01", SYMLINK+="ftdi_r64"
 +SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ENV{ID_USB_INTERFACE_NUM}=="02", SYMLINK+="ftdi_r3"
 +SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", ENV{ID_USB_INTERFACE_NUM}=="03", SYMLINK+="ftdi_r4"
 </code> </code>
  
Line 397: Line 406:
  
 Solution using /etc/default/locale was not working for me Solution using /etc/default/locale was not working for me
 +
 +===== LVM =====
 +https://wiki.debian.org/LVM#Create_a_PV
 +
 +prepared initrd
 +<code>
 +  apt install initramfs-tools
 +  kernelversion=$(uname -r)
 +  echo $kernelversion
 +  zcat /proc/config.gz > /boot/config-$kernelversion
 +  less /boot/config-$kernelversion
 +  update-initramfs -k $kernelversion -c
 +</code>
 +
 +<code>
 +root@bpi-r3-mini:~# apt install lvm2
 +root@bpi-r3-mini:~# fdisk /dev/nvme0n1
 +#changed type of partition 3 to lvm
 +root@bpi-r3-mini:~# pvcreate /dev/nvme0n1p3
 +root@bpi-r3-mini:~# vgcreate vg-nvme /dev/nvme0n1p3                             
 +  Volume group "vg-nvme" successfully created
 +root@bpi-r3-mini:~# vgdisplay
 +  --- Volume group ---
 +  VG Name               vg-nvme
 +  System ID             
 +  Format                lvm2
 +  Metadata Areas        1
 +  Metadata Sequence No  1
 +  VG Access             read/write
 +  VG Status             resizable
 +  MAX LV                0
 +  Cur LV                0
 +  Open LV               0
 +  Max PV                0
 +  Cur PV                1
 +  Act PV                1
 +  VG Size               80.74 GiB                                               
 +  PE Size               4.00 MiB                                                
 +  Total PE              20670                                                   
 +  Alloc PE / Size       0 / 0                                                   
 +  Free  PE / Size       20670 / 80.74 GiB                                       
 +  VG UUID               w22Wdx-Fhch-YNsA-roWh-Zq81-qv0R-d5fnvw                  
 +                                                                                
 +root@bpi-r3-mini:~# lvcreate -n var -L 10g vg-nvme                              
 +  Logical volume "var" created.
 +root@bpi-r3-mini:~#
 +</code>
 +
en/linux/start.txt · Last modified: 2024/04/07 19:40 by frank