en:linux:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:linux:start [2023/01/27 16:46] – [tar] frank | en:linux:start [2024/04/07 19:12] – [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 251: | Line 262: | ||
SUBSYSTEM==" | SUBSYSTEM==" | ||
</ | </ | ||
+ | |||
+ | this udev rules i use for ftdi 4xuart adapter (FT4232H Quad RS232-HS) | ||
+ | < | ||
+ | SUBSYSTEM==" | ||
+ | SUBSYSTEM==" | ||
+ | SUBSYSTEM==" | ||
+ | SUBSYSTEM==" | ||
+ | </ | ||
+ | |||
+ | easier way to get the main-properties of a device | ||
+ | |||
+ | udevadm info /dev/sdb1 | ||
====== sshd ====== | ====== sshd ====== | ||
===== qnap (entware) ===== | ===== qnap (entware) ===== | ||
Line 383: | 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: | ||
+ | </ | ||
+ |
en/linux/start.txt · Last modified: 2024/04/07 19:40 by frank