en:linux:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:linux:start [2023/02/08 18:59] – [udev] frank | en:linux:start [2024/04/07 19:40] (current) – [LVM] frank | ||
---|---|---|---|
Line 135: | Line 135: | ||
sudo badblocks -nsv /dev/sdb | sudo badblocks -nsv /dev/sdb | ||
+ | http:// | ||
====== NTP ====== | ====== NTP ====== | ||
Line 183: | Line 184: | ||
tar -xzf file.tar.gz --strip-components 1 -C DESTINATION | tar -xzf file.tar.gz --strip-components 1 -C DESTINATION | ||
+ | |||
+ | ====== sed ====== | ||
+ | |||
+ | extract text between patterns: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | example (extract frequencies from iw command): | ||
+ | |||
+ | iw list | sed -n '/ | ||
====== irssi ====== | ====== irssi ====== | ||
Line 250: | Line 261: | ||
#cp2104 KERNELS==" | #cp2104 KERNELS==" | ||
SUBSYSTEM==" | SUBSYSTEM==" | ||
+ | </ | ||
+ | |||
+ | this udev rules i use for ftdi 4xuart adapter (FT4232H Quad RS232-HS) | ||
+ | < | ||
+ | SUBSYSTEM==" | ||
+ | SUBSYSTEM==" | ||
+ | SUBSYSTEM==" | ||
+ | SUBSYSTEM==" | ||
</ | </ | ||
Line 387: | Line 406: | ||
Solution using / | Solution using / | ||
+ | |||
+ | ===== LVM ===== | ||
+ | https:// | ||
+ | |||
+ | prepared initrd | ||
+ | < | ||
+ | apt install initramfs-tools | ||
+ | kernelversion=$(uname -r) | ||
+ | echo $kernelversion | ||
+ | zcat / | ||
+ | less / | ||
+ | update-initramfs -k $kernelversion -c | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | root@bpi-r3-mini: | ||
+ | root@bpi-r3-mini: | ||
+ | #changed type of partition 3 to lvm | ||
+ | root@bpi-r3-mini: | ||
+ | root@bpi-r3-mini: | ||
+ | Volume group " | ||
+ | root@bpi-r3-mini: | ||
+ | --- Volume group --- | ||
+ | VG Name | ||
+ | System ID | ||
+ | Format | ||
+ | Metadata Areas 1 | ||
+ | Metadata Sequence No 1 | ||
+ | VG Access | ||
+ | VG Status | ||
+ | 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 | ||
+ | | ||
+ | root@bpi-r3-mini: | ||
+ | Logical volume " | ||
+ | root@bpi-r3-mini: | ||
+ | root@bpi-r3-mini: | ||
+ | [ 5279.856899] EXT4-fs (dm-0): mounted filesystem 520d434d-fdfc-48f3-823d-77e602 | ||
+ | 7e84e7 r/w with ordered data mode. Quota mode: disabled. | ||
+ | root@bpi-r3-mini: | ||
+ | </ | ||
+ |
en/linux/start.1675879144.txt.gz · Last modified: 2023/06/08 17:06 (external edit)