Skip to content

Category «Linux»

How to extract and repack initram

To unpack initram you could use the following command gunzip < initramfs.img|cpio -i after make the change you can repack with the following command find | cpio -H newc -o|gzip > ../initramfs.img

How to mount LVM partition

Connect the drive First plug in the drive as normal and let Gnome/KDE mount the partitions it can see. My USB connected disk gets mounted to /media and is device /dev/sdb. $ cd /media $ ls -l total 14 drwxr-xr-x 4 root root 1024 2007-12-05 07:10 _boot drwxr-xr-x 11 bobpeers root 4096 1970-01-01 01:00 DATA …

Debian Lenny install hung at 1%

This is mostly meant as a note to myself, in case I need to reinstall Debian Lenny on my VPS. The installer stalls at 1%, when at the screen titled “Selecting and installing packages”. To fix this, do the following: Press ALT+CTRL+F2 ps aux | grep aptitude # note down the PID (proccess ID) of …

Traffic shaping on Linux

#!/bin/bash # # tc uses the following units when passed as a parameter. # kbps: Kilobytes per second # mbps: Megabytes per second # kbit: Kilobits per second # mbit: Megabits per second # bps: Bytes per second # Amounts of data can be specified in: # kb or k: Kilobytes # mb or m: …

SATA RAID

Setting up Debian on a Serial ATA RAID device This page explains how to use Debian Installer to set up Debian on a Serial ATA (SATA) RAID disk (using dmraid).Note that support for SATA RAID is experimental and is only available in the Lenny version of the installer.SATA RAID support has been significantly improved after …

Bonding

This article will show how to “bond” two Ethernet connections together to create an auto failover interface. Bonding   Install packages First install the ifenslave-2.6 package, necessary to enable bonding: # apt-get install ifenslave-2.6   Shutdown / Unconfigure Existing Interfaces   # ifdown eth0 (Repeat for all interfaces included in the bond) # /etc/init.d/networking stop …