Lohman's Blog
Posts mit dem Label
shell
werden angezeigt.
Alle Posts anzeigen
Posts mit dem Label
shell
werden angezeigt.
Alle Posts anzeigen
Mittwoch, 28. März 2018
How to find out all ip-adresses in your network
to find out all used ip-adresses in my network I use:
nmap -sn 192.168.1.0/24
Dienstag, 3. Oktober 2017
uncompressing, editing and recompressing an initrd
Create a directory and switch into it:
# mkdir test
# cd test
Then uncompress and extract the initrd:
# zcat /boot/initrd.img | cpio -idmv
Edit the contents (if needed)
Repack and compress the initrd image:
# find . | cpio -o -c | gzip -9 > /boot/test.img
For image compressed with xz format, use commands below to extract the initrd image.
# mkdir /tmp/initrd
# cd /tmp/initrd
# xz -dc < initrd.img | cpio --quiet -i --make-directories
Edit the contents (if needed)
Repack and compress the initrd image:
# cd /tmp/initrd
# find . 2>/dev/null | cpio --quiet -c -o | xz -9 --format=lzma >"initrd.img"
found on: https://access.redhat.com/solutions/24029
Ältere Posts
Startseite
Abonnieren
Posts (Atom)